From: Matthias A. <mat...@gm...> - 2017-07-28 17:13:47
|
Am 28.07.2017 um 03:12 schrieb Carlos E. R.: > > > Config is: > > poll imap.telefonica.net with proto imap timeout 20, and tracepolls > user USERNAME, with password PASSWORD, is cer here, and > fetchall, expunge 20, folders Inbox, Spam, Junk > > > > > The log goes thus: > > ... > <2.6> 2017-07-28 02:48:45 minas-tirith fetchmail 11858 - - IMAP> > A0064 FETCH 20 BODY.PEEK[TEXT] > <2.6> 2017-07-28 02:48:45 minas-tirith fetchmail 11858 - - IMAP< * 20 > FETCH (BODY[TEXT] {275} > <2.6> 2017-07-28 02:48:45 minas-tirith fetchmail 11858 - - (275 body > octets) (log message incomplete) > <2.6> 2017-07-28 02:48:45 minas-tirith fetchmail 11858 - - IMAP< ) > <2.6> 2017-07-28 02:48:45 minas-tirith fetchmail 11858 - - IMAP< > A0064 OK Fetch completed. > <2.6> 2017-07-28 02:48:45 minas-tirith fetchmail 11858 - - SMTP>. (EOM) > <2.6> 2017-07-28 02:48:45 minas-tirith fetchmail 11858 - - SMTP< 250 > 2.0.0 Ok: queued as 85D5A188139 > <2.6> 2017-07-28 02:48:45 minas-tirith fetchmail 11858 - - flushed > <2.6> 2017-07-28 02:48:45 minas-tirith fetchmail 11858 - - IMAP> > A0065 STORE 20 +FLAGS (\Seen \Deleted) > <2.6> 2017-07-28 02:48:45 minas-tirith fetchmail 11858 - - IMAP< * 20 > FETCH (FLAGS (\Deleted \Seen NonJunk)) > <2.6> 2017-07-28 02:48:45 minas-tirith fetchmail 11858 - - IMAP< > A0065 OK Store completed. > <2.6> 2017-07-28 02:48:45 minas-tirith fetchmail 11858 - - IMAP> > A0066 EXPUNGE > <2.6> 2017-07-28 02:48:45 minas-tirith fetchmail 11858 - - IMAP< * 87 > EXPUNGE > <2.6> 2017-07-28 02:48:45 minas-tirith fetchmail 11858 - - IMAP< * 20 > EXPUNGE > [...] > <2.6> 2017-07-28 02:48:45 minas-tirith fetchmail 11858 - - IMAP< * 1 > EXPUNGE > <2.6> 2017-07-28 02:48:45 minas-tirith fetchmail 11858 - - IMAP< > A0066 OK Expunge completed. > <2.3> 2017-07-28 02:48:45 minas-tirith fetchmail 11858 - - mail > expunge mismatch (21 actual != 20 expected) > <2.6> 2017-07-28 02:48:45 minas-tirith fetchmail 11858 - - IMAP> > A0067 LOGOUT > <2.6> 2017-07-28 02:48:45 minas-tirith fetchmail 11858 - - IMAP< * > BYE Logging out > <2.6> 2017-07-28 02:48:45 minas-tirith fetchmail 11858 - - IMAP< > A0067 OK Logout completed. > <2.3> 2017-07-28 02:48:45 minas-tirith fetchmail 11858 - - > client/server synchronization error while fetching from > ...@imap.telefonica.net > <2.6> 2017-07-28 02:48:45 minas-tirith fetchmail 11858 - - 6.3.26 > querying imap.telefonica.net (protocol IMAP) at 2017-07-28T02:48:45 > CEST: poll completed > <2.6> 2017-07-28 02:48:45 minas-tirith fetchmail 11858 - - Query > status=7 (ERROR) > > > Looking at previous instances: > > ... > <2.6> 2017-07-28 02:30:07 minas-tirith fetchmail 10071 - - IMAP< * 12 > FETCH (RFC822.HEADER {6969} > <2.6> 2017-07-28 02:30:07 minas-tirith fetchmail 10071 - - reading > message ...@gma...@gm...:12 of 89 (6969 header > octets) (log message incomplete) > <2.6> 2017-07-28 02:30:07 minas-tirith fetchmail 10071 - - SMTP> MAIL > FROM:<opensuse-factory+bounces-78582-...=gma...@op...> > BODY=7BIT SIZE=8786 > <2.6> 2017-07-28 02:30:07 minas-tirith fetchmail 10071 - - SMTP< 250 > 2.1.0 Ok > <2.6> 2017-07-28 02:30:07 minas-tirith fetchmail 10071 - - SMTP> RCPT > TO:<cer@localhost> > <2.6> 2017-07-28 02:30:07 minas-tirith fetchmail 10071 - - SMTP< 250 > 2.1.5 Ok > <2.6> 2017-07-28 02:30:07 minas-tirith fetchmail 10071 - - SMTP> DATA > <2.6> 2017-07-28 02:30:07 minas-tirith fetchmail 10071 - - SMTP< 354 > End data with <CR><LF>.<CR><LF> > <2.6> 2017-07-28 02:30:07 minas-tirith fetchmail 10071 - - IMAP< ) > <2.6> 2017-07-28 02:30:07 minas-tirith fetchmail 10071 - - IMAP< > A0039 OK Success > <2.6> 2017-07-28 02:30:07 minas-tirith fetchmail 10071 - - IMAP> > A0040 FETCH 12 BODY.PEEK[TEXT] > <2.6> 2017-07-28 02:30:08 minas-tirith fetchmail 10070 - - IMAP< * > 106 EXPUNGE > <2.6> 2017-07-28 02:30:08 minas-tirith fetchmail 10070 - - IMAP< * 20 > EXPUNGE > [..] > <2.6> 2017-07-28 02:30:08 minas-tirith fetchmail 10070 - - IMAP< * 1 > EXPUNGE > <2.6> 2017-07-28 02:30:08 minas-tirith fetchmail 10070 - - IMAP< > A0066 OK Expunge completed. > <2.3> 2017-07-28 02:30:08 minas-tirith fetchmail 10070 - - mail > expunge mismatch (21 actual != 20 expected) > <2.6> 2017-07-28 02:30:08 minas-tirith fetchmail 10070 - - IMAP> > A0067 LOGOUT > <2.6> 2017-07-28 02:30:08 minas-tirith fetchmail 10071 - - IMAP< * 12 > FETCH (BODY[TEXT] {1631} > <2.6> 2017-07-28 02:30:08 minas-tirith fetchmail 10071 - - (1631 > body octets) (log message incomplete) > <2.6> 2017-07-28 02:30:08 minas-tirith fetchmail 10071 - - IMAP< ) > <2.6> 2017-07-28 02:30:08 minas-tirith fetchmail 10071 - - IMAP< > A0040 OK Success > <2.6> 2017-07-28 02:30:08 minas-tirith fetchmail 10071 - - SMTP>. (EOM) > <2.6> 2017-07-28 02:30:08 minas-tirith fetchmail 10070 - - IMAP< * > BYE Logging out > <2.6> 2017-07-28 02:30:08 minas-tirith fetchmail 10070 - - IMAP< > A0067 OK Logout completed. > <2.3> 2017-07-28 02:30:08 minas-tirith fetchmail 10070 - - > client/server synchronization error while fetching from > ...@imap.telefonica.net > <2.6> 2017-07-28 02:30:08 minas-tirith fetchmail 10070 - - 6.3.26 > querying imap.telefonica.net (protocol IMAP) at 2017-07-28T02:30:08 > CEST: poll completed > <2.6> 2017-07-28 02:30:08 minas-tirith fetchmail 10070 - - Query > status=7 (ERROR) > > I have to run fetchmail several times in order to fetch it all, > because it aborts at each error. > > Can I do something? Hi Carlos, is there anything accessing the mailboxes at the same time, for instance another e-mail client (thunderbird, kmail, evolution) that is also deleting messages? Fetchmail is downloading and marking 20 messages as deleted, issues "EXPUNGE" and the server reports 21 or more messages expunged, which confuses fetchmail (meaning: nobody has written code to deal with something else accessing the mailbox at the same time). If you are 100% sure fetchmail is the only client accessing the server at the same time, then file a report to the server's operators, otherwise, the workaround would be to not make fetchmail delete messages so it doesn't expunge either. The relevant source code comment is: > /* if there is a mismatch between the number of mails which should > * have been expunged and the number of mails actually expunged, > * another email client may be deleting mails. Quit here, > * otherwise fetchmail gets out-of-sync with the imap server, > * reports the wrong size to the SMTP server on MAIL FROM: and > * triggers a "message ... was not the expected length" error on > * every subsequent mail */ > if (deletions > 0 && deletions != actual_deletions) > { > report(stderr, > GT_("mail expunge mismatch (%d actual != %d expected)\n"), > actual_deletions, deletions); > deletions = 0; > return(PS_ERROR); > } |