
From: "Mark A. Hershberger" https://bugs.launchpad.net/ubuntu/+source/offlineimap/+bug/96710 the locked() method isn't implemented for non-interactive UIs, so exceptions are thrown on cron jobs. Ubuntu's new apport catches these and ? well, you get the idea. patch provided.