From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (cD572BF51.dhcp.as2116.net. [81.191.114.213]) by mx.google.com with ESMTPSA id jh4sm4210475lbb.26.2014.04.03.13.24.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Apr 2014 13:24:27 -0700 (PDT) From: Gaute Hope To: sup-talk Subject: Re: [sup-talk] Automatic watch of IMAP folder In-reply-to: <1396555234-sup-5195@kpad> References: <1396555234-sup-5195@kpad> Date: Thu, 03 Apr 2014 22:23:14 +0200 Message-Id: <1396556506-sup-5287@qwerzila> User-Agent: Sup/git Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="=-1396556594-791025-24639-654-4-=" --=-1396556594-791025-24639-654-4-= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Excerpts from Matthieu Rakotojaona's message of 2014-04-03 22:12:38 +0200= : > Hello suppers, > = > I'm pretty sure some of you sync their mails from some IMAP server > somewhere, maybe Gmail even. I've written a little script that: > = > - allows you to watch your favorite IMAP folder ("[Gmail]/All mail" by > default) > - on your favorite server ("imaps://imap.gmail.com" by default) > - with your login/password > - run a custom command("offlineimap -u Quiet") whenever a new mail > arrives (triggered by an IDLE message) > = > The script is very simple, but should fit your needs without problems > (feel free to make it a little bit more flexible if you want to) > = > I've been running it in a tmux for a few days now, and it works good. > The real magic though is done by OfflineIMAP, which makes sure your > mails aren't eaten... and that allows me to be dirty on the details of > external script calls. > = > The script lives at > https://github.com/rakoo/idlewatch/blob/master/idlewatch.rb > = Excellent! I had something pretty hackish set up a while ago [0], didn't really work - so gave it up! This will make a huge difference for me. - gaute [0] https://gist.github.com/gauteh/7942217 --=-1396556594-791025-24639-654-4-= Content-Disposition: attachment; filename="signature.asc" Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJTPcMyAAoJEJgnp+igdJAjwT4P/2IBf6e7fIuo2L92Ue+lexA5 XXCPniQrt+PlwYL0tltKUQcoqkDX7w1Hi0rOvF7+FSbNY+8vu9N1F7RfSCDfbcaX nGHlI54Zgb3aegKFyNW2e3fRPSXUkyITYksUmobLGo1Yi7mFxGn0sFoDsPhwQvrv yGYaemwHuQvs00DyJVVIesZPQGqq13WDqg5eyN8XjTTq4nJDhYf0YcjHh4NuHXkS Skp7MqXqibk2Xxz+SpWLTytTp+pnHjsLgVjdFy9vrKxfQf7JdwW0cokVHO5hVxz5 P36+Qo7gNfBobeg6wBZuO8gVlJhdVnW+jBQcKeliy0oIZCG2pVacLjLd3CogfGa0 FLe3rAAYHjc/Oei5NVxJmuXPLH+FqAjzGTvfl/odpI5+S7IlTaH4iQvp4KXUcZMq FbIMMx6YaO7wWWXiCOd5LhOeNezQ+kFKgxRpJS1ZngYeS6/0UaR0IHaxZpsirTQE CeLWjtjSnkj4OVcpkLPM2rm512A3Ld2Wa2tf9iDI5W+OmJYw0tYA2M223nT99upw 0ZjupJwc8PgdrzkuiufyxVSAjQ5oqv4MbDAuEmzn89sntF9fjWLvk3bFj8ADss85 RvRAG1TIY9GDfUtL1CGF05cCGevoKONZOHapnpXFRdVSVk92jxLgAdqmW6jp6grk Rk8gRT9WyXLAj7bVksFT =CnZ8 -----END PGP SIGNATURE----- --=-1396556594-791025-24639-654-4-=--