Subject: quickly check if there is new mail in a gmail account

From: Gaute Hope <[email-masked]>
Date: Sat, 21 Dec 2013 11:12:43 +0100

hi suppers,

gmails imap service is throttled and it takes a long time for
offlineimap to run through and check if there are new messages.
therefore this solution might be of interest to more suppers:

http://cpbl.wordpress.com/2011/11/16/how-to-alpine-maildir-offlineimap/

where curl is used to quickly check if there has been a change since the
last check.

a cleaned up script is available here:
https://gist.github.com/gauteh/7942217

use the return status to determine whether it is necessary to run
offlineimap.

cheers, gaute