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 BF823431FB6 for ; Thu, 25 Nov 2010 00:55:00 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.09 X-Spam-Level: X-Spam-Status: No, score=-0.09 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, T_MIME_NO_TEXT=0.01] 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 LPKmRmqTGfZa for ; Thu, 25 Nov 2010 00:55:00 -0800 (PST) Received: from homiemail-a15.g.dreamhost.com (caiajhbdcaib.dreamhost.com [208.97.132.81]) by olra.theworths.org (Postfix) with ESMTP id 5734A431FB5 for ; Thu, 25 Nov 2010 00:55:00 -0800 (PST) Received: from homiemail-a15.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a15.g.dreamhost.com (Postfix) with ESMTP id 88DED76C065; Thu, 25 Nov 2010 00:54:59 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=SSpaeth.de; h=from:to:subject :in-reply-to:references:date:message-id:mime-version: content-type; q=dns; s=sspaeth.de; b=KJsY1zA7Dja++8EDTboepXOIQvL KvcuOgPDSg5Y7elgiaQLThcvXvWgggm2SjQhMZc2ekxNUF36uceRBt8vJazC44Gf AH0BQXRG9tj7uGk8e7jlVkSglcX5qHhS8JZOhUaio+3br25N1x/z6tmECrpR8aCN KDai6YjWana8VFdE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=SSpaeth.de; h=from:to :subject:in-reply-to:references:date:message-id:mime-version: content-type; s=sspaeth.de; bh=XtKDyynOJbFufUiMGW0/xby5UqM=; b=E wgVS/dMMoMGr38ASilFrmq1nI2d4SuOrNeIMFXsACyogcVrq1QX9duXmU7pFV1gY L93TQnBqkQqB7lXi7my/8WtKGBYb2AvUSWbaGLV8BZIAmfpyBGV7kIF3gJUN81yk cDQLd/srU8mc3Pvpa5c6Q2kBBoCOMYMVzsloFKnLu0= Received: from spaetzbook.sspaeth.de (unknown [84.55.209.24]) (Authenticated sender: fax@sspaeth.de) by homiemail-a15.g.dreamhost.com (Postfix) with ESMTPA id EAE2A76C058; Thu, 25 Nov 2010 00:54:57 -0800 (PST) Received: by spaetzbook.sspaeth.de (sSMTP sendmail emulation); Thu, 25 Nov 2010 09:54:54 +0100 From: Sebastian Spaeth To: Xavier Maillard , notmuch@notmuchmail.org Subject: Re: [FEATURE REQUEST]: post-processing on notmuch new In-Reply-To: References: <8739qqufzu.fsf@gmail.com> <87bp5dga6k.fsf@SSpaeth.de> User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.1.1 (x86_64-pc-linux-gnu) Date: Thu, 25 Nov 2010 09:54:54 +0100 Message-ID: <8739qpg4v5.fsf@SSpaeth.de> 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: Thu, 25 Nov 2010 08:55:00 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Thu, 25 Nov 2010 09:20:39 +0100, Xavier Maillard wr= ote: >=20 > On Thu, 25 Nov 2010 08:00:03 +0100, Sebastian Spaeth wrote: > > On Thu, 25 Nov 2010 00:30:45 -0500, Ben Gamari wrot= e: > > > I, for one, simply have a get-mail script > > > which calls offlineimap, notmuch new, and finally my sorting > > > script. This seems like a more straightforward way to manage this; > >=20 > > I have notmuch new and my sorting script run as posthooks in my > > offlineimap, so I simply invoke offlineimap to get my mail and run > > notmuch new (and do some tagging) >=20 > Interesting. Could you share your setup here ? Easy, it's pretty hacky, but works: This is in my .offlinesyncrc in the [Account x] section: #----------------------------------------------------------- #currently not needed #presynchook =3D notmuch new > /dev/null && /home/spaetz/src/notmuchsync/no= tmuchsync -q -s postsynchook =3D notmuch new && callanothernotmuchscripthere && notmuch search --output=3Dthreads tag:ignore | xargs notmuch tag +ignore -- not tag= :ignore and=20 #not needed anymore #&& /home/spaetz/src/notmuchsync/notmuchsync -r -q #----------------------------------------------------------- I simply run offlineimap in a cron script, or via 'G' (ie M-x notmuch-poll) or asynchron via another key binding with offlineimap.el that I downloaded from somewhere. Sebastian --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkzuJF4ACgkQVYX1jMgnoGJNAgCfWXIxPRNbeEK/OjOElqgQUeiX iv0Anjg3SrGt+QqkdJixjkBkhVE/ouG/ =PTPF -----END PGP SIGNATURE----- --=-=-=--