From: Jeremy C. <jd...@ko...> - 2014-11-19 00:07:10
|
Hi, I'm hoping this is a config mistake or brain fart on my part, but I've spent a lot of time looking at fetchmail(1) and can't find anything that would explain this behaviour. I'm using fetchmail 6.3.26 on FreeBSD 9.3-STABLE. The following is in my .fetchmailrc: set daemon 120 poll imap.server protocol imap username user password pass idle ssl sslfingerprint "aa:bb..." poll pop3.server protocol pop3 username user password pass ssl sslfingerprint "cc:dd..." The behaviour I expect from this, based on the fetchmail(1) man page, is that because I'm using daemon mode, fetchmail should remain running and keep an active IMAP IDLE connection to imap.server, but then periodically (every 120 seconds) poll (via POP3) pop3.server. These are two completely different servers, just to clarify. Well, pop3.server never gets polled. Using "set logfile blah.log" then looking at that logfile never shows the daemon never attempting to communicate to pop3.server barring this one scenario: If I reverse the order of the two sections (i.e. put the pop3 one first) and start fetchmail, it polls pop3.server once -- and only once -- then proceeds to do IMAP IDLE to imap.server from that point forward. It never re-polls pop3.server. Things I've tried: * Setting "interval 60" (or some equivalent) inside of the pop3.server polling block -- no difference (and fetchmail --configdump shows that the parameter changes from 'interval':0 to 'interval':60) * Running "fetchmail" by itself, which should "wake up" the daemon and attempt polling from defined servers -- it never does, meaning it acts as if the pop3.server poll section doesn't exist * fetchmail --configdump shows both imap.server and pop3.server, and both are 'active':TRUE If I remove use of the IMAP IDLE feature, things behave as I'd expect. (I see the "sleeping at {date} for N seconds" message in the log, etc.) It's almost as if use of IMAP IDLE causes the daemon to effectively ignore any other poll sections. Thoughts? -- | Jeremy Chadwick jd...@ko... | | UNIX Systems Administrator http://jdc.koitsu.org/ | | Making life hard for others since 1977. PGP 4BD6C0CB | |