From: Sunil S. <sun...@ro...> - 2012-05-09 10:35:15
|
Hi, > > Problem: > > I have recently been migrated to Demon's new service which appears to be > > based on Microsoft Exchange Server 2010. The migration appeared to have > > been successful with messages being fetched. Then fetching of messages > > ceased. I added "-vvv" to /etc/init.d/fetchmail and restarted > > fetchmail. Here are edited highlights from /var/log/fetchmail: ... > > fetchmail: IMAP> A0009 FETCH 1 RFC822.HEADER > > fetchmail: IMAP< A0009 OK FETCH completed. > > fetchmail: Incorrect FETCH response: OK FETCH COMPLETED.. Attached is a patch to fix this problem. Please note that this patch will not change the behaviour for mails with such responses. It will ensure that mails after the current mail will be fetched as is expected. > Sunil, for resilience towards massive faults on the server side, we'll > probably have to add an error counter so that fetchmail won't attempt to > fetch hundreds of messages' headers and skip over all of them when the > server exhibits systematic faults (and not just some individual > messages, as your report suggests). I have added a counter to this patch to log the number of transient errors. I am tempted to add a open_warning_by_mail() instead of just logging it for too many transient errors. However, if such mails are accumulating, there will be a warning mail per poll leading to excessive warning mails. Also note that the bug is that fetchmail currently stops fetching the remaining mails from the folder the moment it gets an unexpected response. As this problematic mail is not removed, fetchmail stops fetching mails from the folder completely across polls. This patch ensures that fetching of the remaining mails continues. -- Sunil Shetye. |