Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 698E5431FD0 for ; Tue, 25 Oct 2011 11:29:14 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.1 X-Spam-Level: X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UnU5WlVS2t+6 for ; Tue, 25 Oct 2011 11:29:13 -0700 (PDT) Received: from ks3536.kimsufi.com (schnouki.net [87.98.217.222]) by olra.theworths.org (Postfix) with ESMTP id 56EF7431FB6 for ; Tue, 25 Oct 2011 11:29:13 -0700 (PDT) Received: from odin.local (nancy.schnouki.net [78.238.0.45]) by ks3536.kimsufi.com (Postfix) with ESMTPSA id E94F86A0005; Tue, 25 Oct 2011 20:29:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=schnouki.net; s=key-schnouki; t=1319567352; bh=ypM6mbqyIGmg8gnQSOC3zh9yCWg9HsWnHSrgsN2rHSY=; h=From:To:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=h8vyq0sRDlq54FyNV2Xa/3WSdvNOCkjChvi9NuJMnioUMA32ET54JOU+9Rio9MyYU CZJCY9SFdSAqM0FdF8MtcNiAuam+WBW3HLTccvCJNDD6JbNWqwA6bfbGfCjaAE9c9R uJNWGA+A5CLTjtx6wLsRul4mkEm6WuVbgeyZ87uA= From: Thomas Jost To: Gregor Zattler , notmuch Subject: Re: how do you do everyday mail catchup with notmuch? (was: Re: search for date received possible?) In-Reply-To: <20111025173101.GA30342@shi.workgroup> References: <20111023145329.GB21842@shi.workgroup> <87vcrfvemq.fsf@nausicaa.localdomain> <87ehy35qqp.fsf@shi.workgroup> <87wrbufvvv.fsf@tredergarh.home.box> <20111025173101.GA30342@shi.workgroup> User-Agent: Notmuch/0.9-39-ge84ff5d (http://notmuchmail.org) Emacs/24.0.90.1 (x86_64-unknown-linux-gnu) Date: Tue, 25 Oct 2011 20:29:06 +0200 Message-ID: <87lis96i31.fsf@schnouki.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Oct 2011 18:29:14 -0000 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 25 Oct 2011 19:31:01 +0200, Gregor Zattler wrot= e: > With a convectional email setup, emails are filtered in > one/several folders and one looks in these folders for new emails > which weren't there last time. (Especially outlook) users get > fooled if important emails have for one reason or another a wrong > date and are therefore not sorted at the end/beginning of their > emails so they are missed. Best way to not miss newly arrived > email for me is to sort them chronologically according to time of > arrival. >=20 > Is there another solution to this email handling problem which > works with notmuch (and of which I'm not aware ATM)? >=20 > How do you make sure you don't miss emails while using notmuch? Here's my setup: =2D on my server, mails are sorted with Dovecot sieve module. They are put in several folders so that I have something usable when I use my webmail (RoundCube) or my phone (with IMAP access). =2D on my PC, I run a script every few minutes which does the following: - run offlineimap to sync mails between the remote IMAP server and my local Maildir - run "notmuch new", configured to add the tags "inbox" and "new" to the new messages - run an autotag script inspired by [1] but *much* more complex and longer... I wrote it in Python, which is faster than running notmuch several dozens of times. It only filters mails with the "new" tag, and removes this tag after that, so that they are only sorted once. - after new mails are tagged, run a "notify" script that displays a notification with a list of unread messages (using libnotify, so nicely integrated to the desktop). - once per day, run "notmuch dump" to a backup dir. =2D I then read mails in Emacs, with several saved searches: "tag:unread", "tag:inbox", "tag:flagged", "tag:todo", etc. Mails are sorted chronologically (oldest first). Using notmuch-search-line-faces, they are also displayed in several colors: unread with a specific background, "flagged" with another, "tag:todo" with yet another, etc., so that you can spot important messages instantly. =2D When I have read a message, I archive it by removing both the "unread" and "inbox" tags (I bound that to a single key in notmuch-search and notmuch-show). And of course I try to keep the numbers of mails in my "inbox" as low as possible :) The combination of the "inbox", "unread", "flagged" and "todo" tags and faces works quite well for me. I've been using this setup for several months without any problem. You can find my whole mailsync and notify scripts on Github [2], as well as my Emacs config [3]. However I keep my autotag script private because there are many email addresses in plaintext there, but if you want I can send you a copy off-list (or a stripped-down version on the list). Regards, [1]: http://notmuchmail.org/initial_tagging/ [2]: https://github.com/Schnouki/dotfiles/tree/master/notmuch [3]: https://github.com/Schnouki/dotfiles/blob/master/emacs/init-50-mail.el =2D-=20 Thomas/Schnouki --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAEBAgAGBQJOpv/yAAoJEMPdciX+bh5ItpQH/0WIxdct3jvaCWnIHt3+H1Xg mk/I8r5cVl54fV+ZWlfX4K3IZD86wIuMVuCMlvHMT9uFyUrEYFikGal44OptvmD6 HAdAjIlDF1FoCCRc//AC21r67qE5VI911v4K06q7GNFdlZADC+xXfDApr1sX7Oi3 d/1wmjzM/Y0qsxYILJ65pezA2FCP0BosrgfxpIPRX3HDqpQfrkim3MTDJXdDokYa F04UcN4fK/TmZ04xTRh/qQtEJisI7rcthxshNMBaySEBc8j7QcrrelyRhmg8FLTu GGo9gu8z0YL1jYHAuvEeBKwk8i5VfG0vB7jA6GfVsq8ztGaGj9yHs/6pj+BEvRM= =kJpm -----END PGP SIGNATURE----- --=-=-=--