fetchmail-friends
[Top] [All Lists]

Re: [fetchmail] [PATCH] Fetchmail repeatedly processing the same mail

2002-11-20 09:16:39
Quoting from Michael Abbott's mail on Wed, Nov 20, 2002 at 11:11:07AM +0000:
fetchmail: forwarding to localhost
fetchmail: SMTP> MAIL
FROM:<bounce-ns1-846773(_at_)mail1(_dot_)sarahsnaughtymail(_dot_)com> 
BODY=7BIT SIZE=2336
fetchmail: SMTP< 250 2.1.0 
<bounce-ns1-846773(_at_)mail1(_dot_)sarahsnaughtymail(_dot_)com>... Sender ok
fetchmail: SMTP> RCPT TO:<guest(_at_)localhost>
fetchmail: SMTP< 250 2.1.5 <guest(_at_)localhost>... 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 gAKAdB3x014087 Message accepted for delivery
fetchmail:  flushed
fetchmail: POP3> DELE 1

I think, I realise what the problem is. There is no timeout set for
the smtp transactions. Thus, if the smtp server takes its own sweet
time, the POP3 server gets disconnected in the meantime.

This patch sets a timeout on the smtp ok response. Also, it fixes the
following problems:

* repeated calculation of strlen(smtp_response) removed.

* if there are less than 4 characters in the response, treat it as a
protocol error and do not delete the mail.

Please try this patch and report if any change has occurred.

Sunil Shetye.

Attachment: fetchmail-6.1.2-smtpok.patch
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>