Why not run offlineimap from cron? Works for me, though it may be a little more overhead if you're running it very often. --bma


Running offlineimap would indeed solve the issue of forcing syncs. The reason I didn't that is that when the network is not available offlineimap exits with a backtrace and I don't want that in my mailbox delivered by cron :-) , but I still do want to see other error messages returned by offlineimap. If I had a decent way of detecting whether the network is up or not it would be fine, any tip on how to query network-manager asking him whether he has currently set-up connectivity or not? --Zack