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 4C247431FB6 for ; Wed, 24 Nov 2010 21:30:50 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.099 X-Spam-Level: X-Spam-Status: No, score=-0.099 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001] 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 Y8Lld5zvhjUC for ; Wed, 24 Nov 2010 21:30:49 -0800 (PST) Received: from mail-qw0-f45.google.com (mail-qw0-f45.google.com [209.85.216.45]) by olra.theworths.org (Postfix) with ESMTP id 856F1431FB5 for ; Wed, 24 Nov 2010 21:30:49 -0800 (PST) Received: by qwh5 with SMTP id 5so474801qwh.18 for ; Wed, 24 Nov 2010 21:30:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:in-reply-to :references:user-agent:date:message-id:mime-version:content-type; bh=JQKIyQTEwFFp2SRy8CQNtAb9Ic+QB9MbYyH9/nZv2x8=; b=LtF6d16yh8cv34WtbRIuGb6VRtoaNVHC20gBTqEumasGW2tAK2u/4WWwDzxnp4bVac Gk9KKdtL+4kve3IfvDQqm5JTb1ywoGhRQcNqdIZEsg2UPYBPjwwgZTitx0sFc+h17BOY uXCARLgFfXUI/3NujPzQ8ubAXlf9jqRTZ+12s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:in-reply-to:references:user-agent:date:message-id :mime-version:content-type; b=M9WIfeUTC4zxBsQrBQSG8onUtlmOnrZJqayXKz2BRKQuUb9RSECEbkL+Karuq/Na8U fDaxiZ3oAXpQGye+XrDvNrxvWcK2/u4zfMe6cN5mB5wJYtd9gBgfijhz8c9zKaMzTz20 8JhgkOIVGSZERthPZkgg3RZdqfolg1qgg1uC0= Received: by 10.229.241.194 with SMTP id lf2mr276981qcb.164.1290663047151; Wed, 24 Nov 2010 21:30:47 -0800 (PST) Received: from localhost (c-24-61-223-13.hsd1.nh.comcast.net [24.61.223.13]) by mx.google.com with ESMTPS id m7sm244598qck.1.2010.11.24.21.30.46 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 24 Nov 2010 21:30:46 -0800 (PST) From: Ben Gamari To: Xavier Maillard , notmuch@notmuchmail.org Subject: Re: [FEATURE REQUEST]: post-processing on notmuch new In-Reply-To: References: User-Agent: Notmuch/0.5-3-g22aadfc (http://notmuchmail.org) Emacs/23.1.1 (x86_64-pc-linux-gnu) Date: Thu, 25 Nov 2010 00:30:45 -0500 Message-ID: <8739qqufzu.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 05:30:50 -0000 On Wed, 24 Nov 2010 23:27:45 +0100, Xavier Maillard wrote: > Hi, > > Am I alone thinking it could be cool to specify a post-processing script > to run after 'notmuch new' ? > > Currently, one can tell notmuch to add a unique tag but I guess we could > extend this to something much smarter. I guess I am not alone using a > tagging script after each refresh. > You are certainly not alone, but I don't see why this needs to be implemented in notmuch itself. 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; afterall, there are times (although rare) that I wish to run notmuch new without running my sorting script (e.g. while debugging said script). Personally, I'd say this is something best left to the user. Cheers, - Ben