From: David Edmondson Date: Fri, 2 May 2014 08:15:50 +0000 (+0100) Subject: Add support for specifying tags during "notmuch new" X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b887e3b75a41825b7dfbaaf992bfd5afc91d84d1;p=notmuch-archives.git Add support for specifying tags during "notmuch new" --- diff --git a/f4/d450d6b97b437705996a01526faa59ccaf1cf1 b/f4/d450d6b97b437705996a01526faa59ccaf1cf1 new file mode 100644 index 000000000..20b46ee64 --- /dev/null +++ b/f4/d450d6b97b437705996a01526faa59ccaf1cf1 @@ -0,0 +1,69 @@ +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 29061431E84 + for ; Fri, 2 May 2014 01:23:25 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0.379 +X-Spam-Level: +X-Spam-Status: No, score=0.379 tagged_above=-999 required=5 + tests=[NO_DNS_FOR_FROM=0.379] 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 Coz6vLx2myv9 for ; + Fri, 2 May 2014 01:23:17 -0700 (PDT) +X-Greylist: delayed 423 seconds by postgrey-1.32 at olra; + Fri, 02 May 2014 01:23:17 PDT +Received: from disaster-area.hh.sledj.net (disaster-area.hh.sledj.net + [81.149.164.25]) + (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 8B1E8431FBD + for ; Fri, 2 May 2014 01:23:17 -0700 (PDT) +Received: from hotblack-desiato.hh.sledj.net (hotblack-desiato.hh.sledj.net + [172.16.100.105]) + by disaster-area.hh.sledj.net (Postfix) with ESMTPSA id F06CA501481 + for ; Fri, 2 May 2014 09:16:11 +0100 (BST) +Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000) + id B8D9C103452; Fri, 2 May 2014 09:16:10 +0100 (BST) +From: David Edmondson +To: notmuch@notmuchmail.org +Subject: Add support for specifying tags during "notmuch new" +Date: Fri, 2 May 2014 09:15:50 +0100 +Message-Id: <1399018555-1994-1-git-send-email-dme@dme.org> +X-Mailer: git-send-email 1.9.2 +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: Fri, 02 May 2014 08:23:25 -0000 + +This patch set allows a user to specify a list of tags to be +added/removed to messages discovered during "notmuch new". + +Two use-cases are envisaged: + 1) A chunk of messages was just dumped into the configured + directory by hand, and the user doesn't want the 'inbox' tag + applied to them. Run 'notmuch new -inbox'. + 2) A periodic mail processing script wants to add new messages to + the database, then process those newly added messages to add + convenience tags, etc. without worrying about the user or other + instances of the script manipulating tags at the same time. Use + this approach: + KEY=$RANDOM + notmuch new +$KEY + notmuch tag +notmuch tag:$KEY and to:notmuch@notmuchmail.org + notmuch tag +gnus tag:$KEY and to:ding@gnus.org + ... + notmuch tag -$KEY tag:$KEY +