From: Lars T. <ls...@gm...> - 2006-05-10 12:56:37
|
Hello! Using fetchmail successfully with polling by interval for several months I just tried to use the IMAP idle-extension to get my mails delivered immediately. Unfortunately only one message gets fetched - after that, fetchmail recognizes the arrival of a new one, but instead of downloading the message, it just triggers another idle. --------------------------------------------------------------------- lsr@lsr:# fetchmail -v -v fetchmail: 6.3.4 querying imap.strato.de (protocol IMAP) at Wed 10 May 2006 12:05:46 PM CEST: poll started fetchmail: IMAP< * OK IMAP server ready fetchmail: IMAP> A0001 CAPABILITY fetchmail: IMAP< * CAPABILITY IDLE IMAP4rev1 AUTH=CRAM-MD5 SORT QUOTA NAMESPACE fetchmail: IMAP< A0001 OK CAPABILITY completed fetchmail: Protocol identified as IMAP4 rev 1 fetchmail: will idle after poll fetchmail: IMAP> A0002 AUTHENTICATE CRAM-MD5 fetchmail: IMAP< + PDQ3NzgwMi4yMTY1Ni4xMTQ3MjU1NTMzQHBvc3Qud2VibWFpbGVyLmRlPg== fetchmail: decoded as <477...@po...> fetchmail: IMAP> bHNyQHZpZXctc291cmNlLmRlIGQ4Nzg1YzVjMzAxZjI4NTBjZTg4ZDA0ZWMxMmU2Y2E5 fetchmail: IMAP< A0002 OK LOGIN completed fetchmail: selecting or re-polling default folder fetchmail: IMAP> A0003 SELECT "INBOX" fetchmail: IMAP< * 0 EXISTS fetchmail: IMAP< * 0 RECENT fetchmail: IMAP< * FLAGS (\Answered \Flagged \Deleted \Seen \Draft \Forwarded) fetchmail: IMAP< * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \Forwarded)] Permanent flags fetchmail: IMAP< * OK [UIDVALIDITY 1116049368] UIDVALIDITY value fetchmail: IMAP< * OK [UIDNEXT 3216] may be the next UID value fetchmail: IMAP< A0003 OK [READ-WRITE] SELECT completed fetchmail: 0 messages waiting after first poll fetchmail: IMAP> A0004 IDLE fetchmail: IMAP< + will notify you of all changes > so far, so good: mailbox is empty. > sending first mail to this account now! fetchmail: IMAP< * 1 EXISTS fetchmail: IMAP> DONE fetchmail: IMAP< A0004 OK IDLE completed fetchmail: 1 message waiting after re-poll fetchmail: IMAP> A0005 SEARCH UNSEEN NOT DELETED fetchmail: IMAP< * SEARCH 1 fetchmail: 1 is unseen fetchmail: IMAP< A0005 OK SEARCH completed fetchmail: 1 is first unseen fetchmail: 1 message for ls...@vi... at imap.strato.de. fetchmail: IMAP> A0006 FETCH 1 RFC822.SIZE fetchmail: IMAP< * 1 FETCH (RFC822.SIZE 906) fetchmail: IMAP< A0006 OK Fetch complete fetchmail: IMAP> A0007 FETCH 1 RFC822.HEADER fetchmail: IMAP< * 1 FETCH (RFC822.HEADER {898} fetchmail: reading message ls...@vi...@imap.rzone.de:1 of 1 (898 header octets) fetchmail: About to rewrite From: Lars Tewes <ls...@gm...> Rewritten version is From: Lars Tewes <ls...@gm...> fetchmail: About to rewrite To: Lars Tewes <ls...@vi...> Rewritten version is To: Lars Tewes <ls...@vi...> fetchmail: about to deliver with: /usr/bin/procmail -d 'lsr' fetchmail: IMAP< ) fetchmail: IMAP< A0007 OK Fetch complete fetchmail: IMAP> A0008 FETCH 1 BODY.PEEK[TEXT] fetchmail: IMAP< * 1 FETCH (BODY[TEXT] {8} fetchmail: (8 body octets) fetchmail: IMAP< ) fetchmail: IMAP< A0008 OK Fetch complete fetchmail: flushed fetchmail: IMAP> A0009 STORE 1 +FLAGS (\Seen \Deleted) fetchmail: IMAP< * 1 FETCH (FLAGS (\Deleted \Seen \Recent)) fetchmail: IMAP< A0009 OK STORE completed fetchmail: IMAP> A0010 EXPUNGE fetchmail: IMAP< * 1 EXPUNGE fetchmail: IMAP< A0010 OK EXPUNGE completed fetchmail: selecting or re-polling default folder fetchmail: IMAP> A0011 IDLE fetchmail: IMAP< + will notify you of all changes > well done, fetchmail gets notified, stops "imap idle" and sends "A0005 SEARCH UNSEEN NOT DELETED", then downloads the message and negotiates idle again > sending second mail to this account now... fetchmail: IMAP< * 1 EXISTS fetchmail: IMAP> DONE fetchmail: IMAP< A0011 OK IDLE completed fetchmail: IMAP> A0012 IDLE fetchmail: IMAP< + will notify you of all changes > hmmm, idle is interuppted by fetchmail as before, but instead of polling the new message, it just sends anonther "idle". > sending third mail to this account now... fetchmail: IMAP< * 2 EXISTS fetchmail: IMAP> DONE fetchmail: IMAP< A0012 OK IDLE completed fetchmail: IMAP> A0013 IDLE fetchmail: IMAP< + will notify you of all changes etc. etc. --------------------------------------------------------------------- Who's to blame? My config, a stupid server or a bug in fetchmail? --------------------------------------------------------------------- .fetchmailrc: poll imap.strato.de protocol imap username "ls...@vi..." password "xxxxxxxx" mda "/usr/bin/procmail -d %s" idle --------------------------------------------------------------------- lsr@lsr:# fetchmail -V This is fetchmail release 6.3.4+RPA+NTLM+SDPS+SSL+NLS. Copyright (C) 2002, 2003 Eric S. Raymond Copyright (C) 2004 Matthias Andree, Eric S. Raymond, Rob F. Funk, Graham Wilson Copyright (C) 2005-2006 Matthias Andree, Sunil Shetye Fetchmail comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. For details, please see the file COPYING in the source or documentation directory. Fallback MDA: (none) Linux lsr 2.6.15.6 #4 PREEMPT Mon Apr 24 10:54:39 CEST 2006 i686 AMD Athlon(tm) 64 Processor 3400+ AuthenticAMD GNU/Linux Taking options from command line and /home/lsr/.fetchmailrc Idfile is /home/lsr/.fetchids Fetchmail will show progress dots even in logfiles. Fetchmail will forward misaddressed multidrop messages to lsr. Options for retrieving from ls...@vi...@imap.strato.de: True name of server is imap.strato.de. Protocol is IMAP. All available authentication methods will be tried. Server nonresponse timeout is 300 seconds (default). Default mailbox selected. Only new messages will be retrieved (--all off). Fetched messages will not be kept on the server (--keep off). Old messages will not be flushed before message retrieval (--flush off). Oversized messages will not be flushed before message retrieval (--limitflush off). Rewrite of server-local addresses is enabled (--norewrite off). Carriage-return stripping is enabled (stripcr on). Carriage-return forcing is disabled (forcecr off). Interpretation of Content-Transfer-Encoding is enabled (pass8bits off). MIME decoding is disabled (mimedecode off). Idle after poll is enabled (idle on). Nonempty Status lines will be kept (dropstatus off) Delivered-To lines will be kept (dropdelivered off) Fetch message size limit is 100 (--fetchsizelimit 100). Do binary search of UIDs during 3 out of 4 polls (--fastuidl 4). Messages will be delivered with "/usr/bin/procmail -d %s". Single-drop mode: 1 local name recognized. No UIDs saved from this host. --------------------------------------------------------------------- Regards Lars |