Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Probleme avec fetchmail ??

2 réponses
Avatar
s.baribeau
Bonjour,

J'ai un probleme je crois avec fetchmail.
J'utilise une distribution slackware 9.0
J'ai creer mon .fetchmailrc avec fetchmailconf, mais lorsque je fait un fetchmail, je recois il delete mon message automatiquement apres reception. voici ce qui me fait lorsque j'effectue un fetchmail en mode verbose

*** Ce qui se retrouve entre '' a ete changer de ma part.
---- sortie fetchmail -v --------
fetchmail: POP3< +OK s.baribeau's mailbox has 1 message(s) (1019 octets)
fetchmail: POP3> STAT
fetchmail: POP3< +OK 1 1019
1 message for 'utilisateur' at 'server pop3' (1019 octets).
fetchmail: POP3> LIST
fetchmail: POP3< +OK 1 messages (1019 octets)
fetchmail: POP3< 1 1019
fetchmail: POP3< .
fetchmail: POP3> RETR 1
fetchmail: POP3< +OK 1019 octets
reading message 'utilisateur'@'server pop3':1 of 1 (1019 octets)
fetchmail: SMTP< 220 'nom de ma machine' ESMTP Sendmail 8.12.8/8.12.8; Fri, 25
Jul 2003 11:20:46 -0400
fetchmail: SMTP> EHLO localhost
fetchmail: SMTP< 250-'nom de ma machine' Hello IDENT:1000@localhost [127.0.0.1], pleased to meet you
fetchmail: SMTP< 250-ENHANCEDSTATUSCODES
fetchmail: SMTP< 250-PIPELINING
fetchmail: SMTP< 250-EXPN
fetchmail: SMTP< 250-VERB
fetchmail: SMTP< 250-8BITMIME
fetchmail: SMTP< 250-SIZE
fetchmail: SMTP< 250-DSN
fetchmail: SMTP< 250-ETRN
fetchmail: SMTP< 250-DELIVERBY
fetchmail: SMTP< 250 HELP
...... *je saute quelque ligne que je crois inutile !
......
fetchmail: SMTP< 250 2.1.0 <s.baribeau@januq.com>... Sender ok
fetchmail: SMTP> RCPT TO:<'monutilisateur'@'nom de ma machine'>
fetchmail: SMTP< 250 2.1.5 <'monutilisateur'@'nom de ma machine'>... Recipient ok
fetchmail: SMTP> DATA
fetchmail: SMTP< 354 Enter mail, end with "." on a line by itself
#fetchmail: SMTP>. (EOM)
fetchmail: SMTP< 250 2.0.0 h6PFKkNm003085 Message accepted for delivery
flushed
fetchmail: POP3> DELE 1
fetchmail: POP3< +OK message 1 deleted
fetchmail: POP3> QUIT
fetchmail: POP3< +OK zytech.com.au POP3 server signing off (mailbox empty)
fetchmail: 6.2.2 querying mail.januq.com (protocol POP3) at Fri Jul 25 11:20:47
2003: poll completed
fetchmail: SMTP> QUIT
fetchmail: SMTP< 221 2.0.0 'nom de ma machine' closing connection
----- fin de ma sortie fetchmail -v -------

Lorsque par exemple je configure mon .fetchmailrc pour qu'il garde le message sur le server apres reception. Il ne semble pas effectuer le delete du message, mais je n'arrive pas a retrouver le message par la suite.

J'ai creer aussi un .forward et un .procmailrc avec .gnus (pour l'utilisation avec emacs).
Est-ce que ca pourrait etre ces 3 fichiers qui font en sorte que fetchmail delete le message apres reception ?

Merci de votre aide precieuse
Bye !

2 réponses

Avatar
Gael Mauleon
(Stéphane Baribeau) wrote in
news::

Bonjour,

J'ai un probleme je crois avec fetchmail.
J'utilise une distribution slackware 9.0
J'ai creer mon .fetchmailrc avec fetchmailconf, mais lorsque je fait
un fetchmail, je recois il delete mon message automatiquement apres
reception. voici ce qui me fait lorsque j'effectue un fetchmail en
mode verbose

*** Ce qui se retrouve entre '' a ete changer de ma part.
---- sortie fetchmail -v --------
fetchmail: POP3< +OK s.baribeau's mailbox has 1 message(s) (1019
octets) fetchmail: POP3> STAT
fetchmail: POP3< +OK 1 1019
1 message for 'utilisateur' at 'server pop3' (1019 octets).
fetchmail: POP3> LIST
fetchmail: POP3< +OK 1 messages (1019 octets)
fetchmail: POP3< 1 1019
fetchmail: POP3< .
fetchmail: POP3> RETR 1
fetchmail: POP3< +OK 1019 octets
reading message 'utilisateur'@'server pop3':1 of 1 (1019 octets)
fetchmail: SMTP< 220 'nom de ma machine' ESMTP Sendmail 8.12.8/8.12.8;
Fri, 25 Jul 2003 11:20:46 -0400
fetchmail: SMTP> EHLO localhost
fetchmail: SMTP< 250-'nom de ma machine' Hello IDENT:
[127.0.0.1], pleased to meet you fetchmail: SMTP<
250-ENHANCEDSTATUSCODES fetchmail: SMTP< 250-PIPELINING
fetchmail: SMTP< 250-EXPN
fetchmail: SMTP< 250-VERB
fetchmail: SMTP< 250-8BITMIME
fetchmail: SMTP< 250-SIZE
fetchmail: SMTP< 250-DSN
fetchmail: SMTP< 250-ETRN
fetchmail: SMTP< 250-DELIVERBY
fetchmail: SMTP< 250 HELP
...... *je saute quelque ligne que je crois inutile !
......
fetchmail: SMTP< 250 2.1.0 ... Sender ok
fetchmail: SMTP> RCPT TO:<'monutilisateur'@'nom de ma machine'>
fetchmail: SMTP< 250 2.1.5 <'monutilisateur'@'nom de ma machine'>...
Recipient ok fetchmail: SMTP> DATA
fetchmail: SMTP< 354 Enter mail, end with "." on a line by itself
#fetchmail: SMTP>. (EOM)
fetchmail: SMTP< 250 2.0.0 h6PFKkNm003085 Message accepted for
delivery
flushed
fetchmail: POP3> DELE 1
fetchmail: POP3< +OK message 1 deleted
fetchmail: POP3> QUIT
fetchmail: POP3< +OK zytech.com.au POP3 server signing off (mailbox
empty) fetchmail: 6.2.2 querying mail.januq.com (protocol POP3) at Fri
Jul 25 11:20:47 2003: poll completed
fetchmail: SMTP> QUIT
fetchmail: SMTP< 221 2.0.0 'nom de ma machine' closing connection
----- fin de ma sortie fetchmail -v -------

Lorsque par exemple je configure mon .fetchmailrc pour qu'il garde le
message sur le server apres reception. Il ne semble pas effectuer le
delete du message, mais je n'arrive pas a retrouver le message par la
suite.

J'ai creer aussi un .forward et un .procmailrc avec .gnus (pour
l'utilisation avec emacs). Est-ce que ca pourrait etre ces 3 fichiers
qui font en sorte que fetchmail delete le message apres reception ?

Merci de votre aide precieuse
Bye !



A mon avis ca ne peut venir que de ton fetchmailrc....
Verifie bien le que "keep" et que tu ne fait pas de "flush".

Ensuite (ca n'a rien a voir avec ton probleme) mais si tu mets
"keep" il est bon de mettre aussi "uidl", ca evite qu'il te download
a chaque fois les memes mails, il ne downloadera que le nouveaux a
chaque fois, m'enfin ca depend bien sur de tes besoins.

Sinon pas de bugs pour moi donc ca devrait marcher...

Avatar
Pascal

Si j'ai bien compris ton probleme, c'est que tu n'as pas bien compris le
fonctionnement de fetchmail.

Le fonctionnement de fetchmail se déroule en plusieurs étapes:

- Il récupère un message sur un serveur POP distant. (protocole POP3)
- Il reposte ce messages sur le serveur Sendmail de ta machine.
(protocole SMTP)
Ensuite sendmail place ce message sur la boite aux lettres locales
(généralement /var/spool/mail/utilisateur)

- Enfin selon la maniere dont il est configuré, il peut ou non effacer le
message sur le serveur distant.

Ton message est alors dans tous les cas dans le fichier
/var/spool/utilisateur. Tu peux viusualiser ce fichier directement ou
utiliser par exemple la commande 'mail' pour le faire.


Pour mieux t'expliquer je vais commenter ta sortie de fetchmail:



---- sortie fetchmail -v --------


Fetchmail se connecte sur le serveur POP3 distant
fetchmail: POP3< +OK s.baribeau's mailbox has 1 message(s) (1019 octets)
fetchmail: POP3> STAT
Il apprend qu'il y a un message dessus

fetchmail: POP3< +OK 1 1019
1 message for 'utilisateur' at 'server pop3' (1019 octets).
fetchmail: POP3> LIST
fetchmail: POP3< +OK 1 messages (1019 octets)
fetchmail: POP3< 1 1019
fetchmail: POP3< .
Il demande a le recuperer

fetchmail: POP3> RETR 1
fetchmail: POP3< +OK 1019 octets
reading message 'utilisateur'@'server pop3':1 of 1 (1019 octets)


Fetchmail se connecte au serveur sendmail local avec le protocole SMTP
fetchmail: SMTP< 220 'nom de ma machine' ESMTP Sendmail 8.12.8/8.12.8; Fri, 25
Jul 2003 11:20:46 -0400
Il commence par quelques formules de politesses : HELO, please to meet

you, et oui les serveurs sont commes les hommes, ils sont polis entre eux
fetchmail: SMTP> EHLO localhost
fetchmail: SMTP< 250-'nom de ma machine' Hello IDENT: [127.0.0.1], pleased to meet you
fetchmail: SMTP< 250-ENHANCEDSTATUSCODES
fetchmail: SMTP< 250-PIPELINING
fetchmail: SMTP< 250-EXPN
fetchmail: SMTP< 250-VERB
fetchmail: SMTP< 250-8BITMIME
fetchmail: SMTP< 250-SIZE
fetchmail: SMTP< 250-DSN
fetchmail: SMTP< 250-ETRN
fetchmail: SMTP< 250-DELIVERBY
fetchmail: SMTP< 250 HELP
...... *je saute quelque ligne que je crois inutile !
......
fetchmail: SMTP< 250 2.1.0 ... Sender ok


Maintenant fetchmail indique a Sendmail le nom du recepteur du messeage
(tu as supprime la commande 'mail from:' pour indiquer l'expediteur
fetchmail: SMTP> RCPT TO:<'monutilisateur'@'nom de ma machine'>
fetchmail: SMTP< 250 2.1.5 <'monutilisateur'@'nom de ma machine'>... Recipient ok


Puis envoie les données
fetchmail: SMTP> DATA
fetchmail: SMTP< 354 Enter mail, end with "." on a line by itself
#fetchmail: SMTP>. (EOM)
fetchmail: SMTP< 250 2.0.0 h6PFKkNm003085 Message accepted for delivery
Tout parrait avoir fonctionné : Sendmail a acceté le message


flushed


Maintenant fetchmail demande au serveur POP d'effacer le message (mais il
est normallement sur ta boite locale)
fetchmail: POP3> DELE 1
fetchmail: POP3< +OK message 1 deleted
fetchmail: POP3> QUIT
fetchmail: POP3< +OK zytech.com.au POP3 server signing off (mailbox empty)
fetchmail: 6.2.2 querying mail.januq.com (protocol POP3) at Fri Jul 25 11:20:47
2003: poll completed
fetchmail: SMTP> QUIT
fetchmail: SMTP< 221 2.0.0 'nom de ma machine' closing connection
----- fin de ma sortie fetchmail -v -------