From: Samy S. <sam...@ms...> - 2015-01-09 21:42:22
|
Hello guys, I think we have found a bug. We have systems that perform archiving messages via IMAP with fetchmail. We found that there are some e-mails that break the archiving routines. Analyzing the problem e-mails, we find that are automatic messages such as: auto response, accepted meetings, etc. Conducted tests via Telnet, and found that the calling execute the FETCH BODY no data return. So far so good, but if fetchmail try processing it occurs problems. Linux: CentOS release 5.11 (Final) -- 2.6.18-308.el5 #1 SMP Tue Feb 21 20:06:06 EST 2012 x86_64 x86_64 x86_64 GNU/Linux Fetchmail release: 6.3.17+GSS+RPA+NTLM+SDPS+SSL+HESIOD+NLS+KRB5. Hugs Samy ==== ##### TEST TELNET [root@s11p06a001 ~]# telnet 192.168.125.100 imap Trying 192.168.125.100... Connected to 192.168.125.100. Escape character is '^]'. * OK CAS01.mydomain a1 login dirsync_Base_G_09 MailPassword a1 OK LOGIN completed. a2 select troubleshoot * 2 EXISTS * 0 RECENT * FLAGS (\Seen \Answered \Flagged \Deleted \Draft $MDNSent) * OK [PERMANENTFLAGS (\Seen \Answered \Flagged \Deleted \Draft $MDNSent)] Permanent flags * OK [UNSEEN 2] Is the first unseen message * OK [UIDVALIDITY 119] UIDVALIDITY value * OK [UIDNEXT 7] The next unique identifier value a2 OK [READ-WRITE] SELECT completed. a3 expunge * 2 EXISTS a3 OK EXPUNGE completed. a4 fetch 1 RFC822.SIZE * 1 FETCH (RFC822.SIZE 4376) a4 OK FETCH completed. a5 fetch 1 RFC822.HEADER * 1 FETCH (RFC822.HEADER {730} MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="_225ffd60-c6cb-409b-93dd-abef398ee06f_" Subject: =?iso-8859-1?Q?Aceito:_SWOT_-_1=AA_Apresenta=E7=E3o_dos_Planos_de_A=E7=E3?= =?iso-8859-1?Q?o.?= To: Edson Shimada <eds...@my...> From: "Marcelo M. Vieira" <mar...@my...> Sender: <Mic...@la... > Message-ID: <edb...@jo...nerator> Date: Tue, 11 Feb 2014 22:45:14 +0000 Content-Transfer-Encoding: binary X-MS-Journal-Report: X-MS-Exchange-Organization-AuthSource: CAS01.la.ad X-MS-Exchange-Organization-AuthAs: Internal X-MS-Exchange-Organization-AuthMechanism: 05 Keywords: ) a5 OK FETCH completed. a6 fetch 1 BODY.PEEK[TEXT] a6 OK FETCH completed. a7 logout * BYE Microsoft Exchange Server 2010 IMAP4 server signing off. a7 OK LOGOUT completed. Connection closed by foreign host. ##### TEST FETCHMAIL [root@s11p06a001 ~]# cat fetchmailrc_troubleshoot poll 192.168.125.100 protocol imap: username "dirsync_Base_G_09" password "MailPassword" is "dirsync_troubleshoot" here options fetchall mda "/usr/bin/procmail -f %F -d %T"; [root@s11p06a001 ~]# fetchmail -f fetchmailrc_troubleshoot -rtroubleshoot -vvv --sslproto "" > test_body 2>&1 [root@s11p06a001 ~]# cat test_body fetchmail: WARNING: Running as root is discouraged. Old UID list from 192.168.125.100: <empty> Scratch list of UIDs: <empty> fetchmail: 6.3.17 querying 192.168.125.100 (protocol IMAP) at Thu 08 Jan 2015 10:28:51 PM BRST: poll started Trying to connect to 192.168.125.100/143...connected. fetchmail: IMAP< * OK CAS01.la.ad fetchmail: IMAP> A0001 CAPABILITY fetchmail: IMAP< * CAPABILITY IMAP4 IMAP4rev1 AUTH=NTLM AUTH=GSSAPI AUTH=PLAIN STARTTLS UIDPLUS CHILDREN IDLE NAMESPACE LITERAL+ fetchmail: IMAP< A0001 OK CAPABILITY completed. fetchmail: Protocol identified as IMAP4 rev 1 fetchmail: Using service name [imap@192.168.125.100] fetchmail: IMAP> A0002 AUTHENTICATE GSSAPI fetchmail: IMAP< + fetchmail: Sending credentials fetchmail: Error exchanging credentials fetchmail: IMAP< + YHYGBisGAQUFAqBsMGqgPDA6BgorBgEEAYI3AgIeBgkqhkiC9xIBAgIGCSqGSIb3EgECAgYKKoZIhvcSAQICAwYKKwYBBAGCNwICCqMqMCigJhskbm90X2RlZmluZWRfaW5fUkZDNDE3OEBwbGVhc2VfaWdub3Jl fetchmail: IMAP> A0003 * fetchmail: IMAP> A0004 AUTHENTICATE NTLM fetchmail: IMAP< A0002 NO AUTHENTICATE failed. fetchmail: IMAP> A0005 * fetchmail: IMAP> A0006 LOGIN "dirsync_Base_G_09" * fetchmail: IMAP< + fetchmail: IMAP< A0004 NO AUTHENTICATE failed. fetchmail: IMAP< A0006 OK LOGIN completed. fetchmail: selecting or re-polling folder troubleshoot fetchmail: IMAP> A0007 SELECT "troubleshoot" fetchmail: IMAP< * 2 EXISTS fetchmail: IMAP< * 2 RECENT fetchmail: IMAP< * FLAGS (\Seen \Answered \Flagged \Deleted \Draft $MDNSent) fetchmail: IMAP< * OK [PERMANENTFLAGS (\Seen \Answered \Flagged \Deleted \Draft $MDNSent)] Permanent flags fetchmail: IMAP< * OK [UNSEEN 2] Is the first unseen message fetchmail: IMAP< * OK [UIDVALIDITY 119] UIDVALIDITY value fetchmail: IMAP< * OK [UIDNEXT 7] The next unique identifier value fetchmail: IMAP< A0007 OK [READ-WRITE] SELECT completed. fetchmail: 2 messages waiting after first poll fetchmail: IMAP> A0008 EXPUNGE fetchmail: IMAP< * 2 EXISTS fetchmail: IMAP< A0008 OK EXPUNGE completed. fetchmail: 2 messages waiting after expunge 2 messages for dirsync_Base_G_09 at 192.168.125.100 (folder troubleshoot). fetchmail: IMAP> A0009 FETCH 1:2 RFC822.SIZE fetchmail: IMAP< * 1 FETCH (RFC822.SIZE 4376) fetchmail: IMAP< * 2 FETCH (RFC822.SIZE 5289) fetchmail: IMAP< A0009 OK FETCH completed. fetchmail: IMAP> A0010 FETCH 1 RFC822.HEADER fetchmail: IMAP< * 1 FETCH (RFC822.HEADER {730} reading message dirsync_Base_G_09@192.168.125.100:1 of 2 (730 header octets)About to rewrite To: Edson Shimada <eds...@my...>... ...rewritten version is To: Edson Shimada <eds...@my...>. About to rewrite From: "Marcelo M. Vieira" <mar...@my...>... ...rewritten version is From: "Marcelo M. Vieira" <mar...@my...>. About to rewrite Sender: <Mic...@la...>... ...rewritten version is Sender: <Mic...@la... >. fetchmail: about to deliver with: /usr/bin/procmail -f 'Mic...@la...' -d 'dirsync_troubleshoot' fetchmail: IMAP< ) fetchmail: IMAP< A0010 OK FETCH completed. fetchmail: IMAP> A0011 FETCH 1 BODY.PEEK[TEXT] fetchmail: IMAP< A0011 OK FETCH completed. fetchmail: IMAP> A0012 LOGOUT fetchmail: IMAP< * BYE Microsoft Exchange Server 2010 IMAP4 server signing off. fetchmail: IMAP< A0012 OK LOGOUT completed. fetchmail: client/server synchronization error while fetching from dirsync_Base_G_09@192.168.125.100 fetchmail: 6.3.17 querying 192.168.125.100 (protocol IMAP) at Thu 08 Jan 2015 10:28:51 PM BRST: poll completed Merged UID list from 192.168.125.100: <empty> fetchmail: Query status=7 (ERROR) fetchmail: normal termination, status 7 |