From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost ([128.39.46.106]) by mx.google.com with ESMTPSA id z3sm3206932lag.10.2013.12.13.02.28.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Dec 2013 02:28:40 -0800 (PST) From: Gaute Hope To: sup-talk Subject: quickly check if there is new mail in a gmail account Date: Fri, 13 Dec 2013 11:28:26 +0100 Message-Id: <1386930252-sup-3055@qwerzila> User-Agent: Sup/git Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="=-1386930506-807249-23173-8471-1-=" --=-1386930506-807249-23173-8471-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 --=-1386930506-807249-23173-8471-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) iQIcBAEBAgAGBQJSquFKAAoJEJgnp+igdJAj10EP/3lFw2sYvvCx9chwfNO88QU+ afTUVJbDV7pVJcZ6rvS98F/FFiFyuPGZ9cjp2nun4JnIT7mdFHLxghjbCnD1M7u3 m/OnL2IwoX352pzMYVnw1uxQY6sOSz/seFW9pOJzMhK8BU2O1NZMmzFz4IuC6let Y4Y3zZXBZjbrrTwx7dy8Qvx6kCX23Lg4JAQgUZvtCpvT9LJALtTxeQYSzdi8G6ip aQ69+2WOycWK1m3v7qV0KkA3A51+ej7rNoNUkPVkqCphLQ47HEUTGDX9SQZJp5nY 1I3PFkNBkCMb5DU+Hr1pPQL3pfZ443/37M+Z4oXLbQOVhjrZcQDuEjc9ExY9fYqP iG0ApgoL0Z2cDsmO73klcxgRFO+mSdKngOEqNdYxJN9L+GvpA8qF8MWiNkJlkYA0 6+9ibFjdsE6yOuHGHmLMmhk9a/xCVMUACiTOEDBF9rIoCnCSBBvK3GfT1YOixt+l ppSiFfkKtqk4fsvFjTDGVULCc3yfF0fgikXFWn8mz4XNwUSIAdU7V1yZLblgCZub XnJophqlW9GjHDzRNGuaqcJO0RCoxKjMCCSZYT6ZlnIP8qBIJ8iL0JR4BEWsi22C ydSur8NOjshk+rqvsry5vvB8MXW3tK+A1lIfCScuqz3lIgeYAQYnerV0N6qCU12G W8FCO5zRaZkrF+w4uD+G =16Km -----END PGP SIGNATURE----- --=-1386930506-807249-23173-8471-1-=--