IDLE command only runs once

Leon Bogaert leon at tim-online.nl
Fri Sep 23 23:34:49 BST 2011


As promised: the .offlineimaprc for an Exchange account with working
(onetime) IDLE.

Sebastian, I'll e-mail the right password to you. If anyone else needs
it, they can contact me.

Output (with two IDLE triggers):
        leon at polly:~/src/offlineimap/spaetz(next)$ ./offlineimap.py -c
        ~/offlineimap_idletest 
         OfflineIMAP 6.3.5-rc3
        Copyright 2002-2011 John Goerzen & contributors.
        Licensed under the GNU GPL v2+ (v2 or any later version).
        
        Account sync exchange:
         ***** Processing account exchange
         Copying folder structure from IMAP to Maildir
         Establishing connection to optimus.tim-online.nl:993.
        Folder sync [exchange]:
         Creating new Local Status db for local:Drafts
         Creating new Local Status db for local:INBOX
         Syncing INBOX: IMAP -> Maildir
         Syncing Drafts: IMAP -> Maildir
         Creating new Local Status db for local:Journal
         Creating new Local Status db for local:Junk
         Syncing Journal: IMAP -> Maildir
         Syncing Junk E-Mail: IMAP -> Maildir
         Creating new Local Status db for local:Notes
         Creating new Local Status db for local:Outbox
         Syncing Notes: IMAP -> Maildir
         Syncing Outbox: IMAP -> Maildir
         Creating new Local Status db for local:Sent Items
         Creating new Local Status db for local:Trash
         Syncing Sent Items: IMAP -> Maildir
         Syncing Deleted Items: IMAP -> Maildir
        Account sync exchange:
         Next refresh in 300 seconds
         Next refresh in 290 seconds
        Thread-4:
         Syncing INBOX: IMAP -> Maildir
        Copy message 4 from INBOX:
         Copy message 4 IMAP[INBOX] -> Maildir[INBOX]
        Thread-4:
         WARNING: zzzzzzzzzzzzzzzzzz!
        Account sync exchange:
         Next refresh in 280 seconds
         Next refresh in 270 seconds
        ^CCTRL-C pressed, aborting...
        


On vr, 2011-09-23 at 16:07 +0200, Leon Bogaert wrote:
> On vr, 2011-09-23 at 14:58 +0200, Sebastian Spaeth wrote:
> > On Thu, 22 Sep 2011 00:17:35 +0200, Leon Bogaert wrote:
> > > I'm currentyle using offlineimap against an Exchange server
> > > (Exchange<->Dovecot) with the IDLE extension.
> > > 
> > > The problem is the IDLE command is triggered only once per refresh. If a
> > > second new mail arrives before the refresh it isn't processed by
> > > offlineimap.
> > 
> > IMAP IDLE does not seem to work for me at all, I checked various recent
> > releases, and although stating that imaplib2 enters idle mode, it never
> > gets notified from my server :-(. Not having done the idle code in the
> > first place, (although having stared at it thoroughly by now) I am a bit
> > at a loss as to how to debug this. If you give me access to a test email
> > box where I could test a *working* IDLE, I might have better luck.
> 
> I had a few cases where IDLE didn't work for me either. If I specify 
> -f INBOX on the commandline it doesn't work. Also, but I'm not really
> sure about that one, if I adjust my folderfilter to one or two folders
> it doesn't work either.
> 
> I'm working in the garden right now but I'll set up a working Exchange
> IMAP / IDLE account and offlineimaprc for you tonight.
> 

-------------- next part --------------
[general]
accounts = exchange
fsync = false

[Account exchange]
status_backend = sqlite
localrepository = local
remoterepository = remote
autorefresh = 5
quick = 10

[Repository local]
type = Maildir
localfolders = ~/MaildirTestForExchange/

[Repository remote]
type = IMAP
remotehost = optimus.tim-online.nl
ssl = yes
holdconnectionopen = yes
keepalive = 660
remoteuser = offlineimap
remotepass = guess
folderfilter = lambda foldername: not re.search('^Calendar$|^Contacts$|^Tasks$|^Voorgestelde contactpersonen$|^RSS Feeds$|^Sync Issues|^Trash$|^Archief', foldername)
nametrans = lambda foldername: re.sub('^Junk E-Mail$', 'Junk',
							   re.sub('^Deleted Items$', 'Trash', foldername))
idlefolders = ['INBOX']


More information about the OfflineIMAP-project mailing list