From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (cC7885BC1.dhcp.as2116.net. [193.91.136.199]) by mx.google.com with ESMTPSA id r10sm8590052lag.7.2013.12.21.02.12.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Dec 2013 02:12:59 -0800 (PST) From: Gaute Hope To: sup-talk Subject: quickly check if there is new mail in a gmail account Date: Sat, 21 Dec 2013 11:12:43 +0100 Message-Id: <1387620752-sup-7123@qwerzila> User-Agent: Sup/git Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="=-1387620763-492752-3806-2704-1-=" --=-1387620763-492752-3806-2704-1-= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 --=-1387620763-492752-3806-2704-1-= Content-Disposition: attachment; filename="signature.asc" Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJStWmbAAoJEJgnp+igdJAjJMoP/i9GPtFVKoquBh1SuV6CAWta pbJ9mtE6uAe9u4I4Fdkd1xQFF2zM4ZR66c5XiTjoID2LWsD4ETBq/njo3M1An9j4 NP4KUmIPC0bl3bukJYyjCEx8sCUZKddQd/flwOFta1dljXcWAWjHDQ2ZJ/JviTYJ 6Ko6JBJkOqy66PhvkoEsFZ1P5TdegEOdbwqpVxjIyCcmLAVHONFta5PYKCSvZVTw vuTGidbXIdQYrA8kstCms/6Hw8z9mJ45iFdri+RUHfNHB0rvr5JqmEvW044brKSt o47GgVF/UFsrCYDCqFWflof8csaYR+R0sg/yb4gvKDKl1q+QjsDHhYBfKk99bUE9 W2QteiaMP0fJWT5DqIFKYzpprAXStUVMzyIM0GpbUcreRH8qP3IpZBEv89YKAiZe Ve+X7FDULLdm40pG7EXXNdyR8+fF7t+lvQOUwA97Ti+ek7i9l8vQyXYe4VVxp09X HolObaOlau0mortFvL8/EUiZe/3UC4IAF2JTsXTstfF6Mlv3j5ABIydAEGAoZC2D Ii1X6/WeMtTlc18LPJ7paDC/HLTKBc1FRarUbDhK732M1lP2duFDZH65SFb6sM2l zD/8w7h2795tu8ccp09+N5AbJJH86K9iYcxosLMr64OyQ8S8VdJr2Kj9CQdLcfth H7fC/CbxJafVcEjDH/+c =SgDz -----END PGP SIGNATURE----- --=-1387620763-492752-3806-2704-1-=--