[PATCH v2 0/5] Add support for specifying tags during "notmuch new"
authorDavid Edmondson <dme@dme.org>
Fri, 2 May 2014 12:11:30 +0000 (13:11 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:02:04 +0000 (10:02 -0800)
08/c8c5f6137dbb92baae5111ed4fe419574bc8be [new file with mode: 0644]

diff --git a/08/c8c5f6137dbb92baae5111ed4fe419574bc8be b/08/c8c5f6137dbb92baae5111ed4fe419574bc8be
new file mode 100644 (file)
index 0000000..efcaba2
--- /dev/null
@@ -0,0 +1,109 @@
+Return-Path: <dme@dme.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 1417F431FC0\r
+       for <notmuch@notmuchmail.org>; Fri,  2 May 2014 05:11:45 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id mVKzComNUIRE for <notmuch@notmuchmail.org>;\r
+       Fri,  2 May 2014 05:11:41 -0700 (PDT)\r
+Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com\r
+       [209.85.212.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 41FC9431FB6\r
+       for <notmuch@notmuchmail.org>; Fri,  2 May 2014 05:11:41 -0700 (PDT)\r
+Received: by mail-wi0-f181.google.com with SMTP id f8so2215575wiw.14\r
+       for <notmuch@notmuchmail.org>; Fri, 02 May 2014 05:11:39 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=1e100.net; s=20130820;\r
+       h=x-gm-message-state:to:subject:in-reply-to:references:user-agent\r
+       :from:date:message-id:mime-version:content-type;\r
+       bh=0j8pMLWf1sz6gnx/r84X+KrxFrcvMCAGXrmafKDGmwM=;\r
+       b=Ioxl8UN5BbdQ3lPWx4EyLSMabo/eHfVkhzPYyuGod7y/9ZW74uiAYFg159r2TnfecZ\r
+       oZj07ulIckVjd7d3G+BHdZkNH/FVIyV653RkIVPVNqIJ+g+31JOluZ42IqhKg7W+I4EJ\r
+       B62VtFhD6beCLMGhUbdbXM/innD/Y+cf/0gS3Tixv01G+nui0hb41Wuelen1YMktIDHV\r
+       72VbdsbxLETaIbcSzCVZ2OLg6FW0JFv/qIl1ceiF/bmH86Ge7ojEP1k2hMoLZc5LudAR\r
+       VYD5uC/zZ3jSNcoMqw1iNw+3yB8itHQmfQlsRW/uaLr/5dzX40QXNNUDRyf4+L0DUrTE\r
+       Cojw==\r
+X-Gm-Message-State:\r
+ ALoCoQmT+KVvq4nmmS4ZESRp2D7Pcc8g/R0gVABAwwozdJv6kML1S/GZJdrdyRTmuNrsdZ9j52WS\r
+X-Received: by 10.180.91.1 with SMTP id ca1mr2718922wib.32.1399032697790;\r
+       Fri, 02 May 2014 05:11:37 -0700 (PDT)\r
+Received: from localhost ([2a01:348:1a2:1:a288:b4ff:fe8a:77d8])\r
+       by mx.google.com with ESMTPSA id cw2sm1863274wjb.39.2014.05.02.05.11.36\r
+       for <notmuch@notmuchmail.org>\r
+       (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+       Fri, 02 May 2014 05:11:36 -0700 (PDT)\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v2 0/5] Add support for specifying tags during "notmuch new"\r
+In-Reply-To: <1399018555-1994-1-git-send-email-dme@dme.org>\r
+References: <1399018555-1994-1-git-send-email-dme@dme.org>\r
+User-Agent: Notmuch/0.18~rc0 (http://notmuchmail.org) Emacs/24.3.1\r
+       (x86_64-pc-linux-gnu)\r
+From: David Edmondson <dme@dme.org>\r
+Date: Fri, 02 May 2014 13:11:30 +0100\r
+Message-ID: <cuniopogz2l.fsf@hotblack-desiato.hh.sledj.net>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha1; protocol="application/pgp-signature"\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Fri, 02 May 2014 12:11:45 -0000\r
+\r
+--=-=-=\r
+Content-Type: text/plain\r
+\r
+v1:\r
+\r
+This patch set allows a user to specify a list of tags to be\r
+added/removed to messages discovered during "notmuch new".\r
+\r
+Two use-cases are envisaged:\r
+    1) A chunk of messages was just dumped into the configured\r
+       directory by hand, and the user doesn't want the 'inbox' tag\r
+       applied to them. Run 'notmuch new -inbox'.\r
+    2) A periodic mail processing script wants to add new messages to\r
+       the database, then process those newly added messages to add\r
+       convenience tags, etc. without worrying about the user or other\r
+       instances of the script manipulating tags at the same time. Use\r
+       this approach:\r
+         KEY=$RANDOM\r
+        notmuch new +$KEY\r
+        notmuch tag +notmuch tag:$KEY and to:notmuch@notmuchmail.org\r
+        notmuch tag +gnus tag:$KEY and to:ding@gnus.org\r
+        ...\r
+        notmuch tag -$KEY tag:$KEY\r
+\r
+v2: The first version synced tags to flags rather than the other way\r
+around. Thanks to Mark for complaining at me.\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature; name="signature.asc"\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1\r
+\r
+iKYEARECAGYFAlNji3NfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl\r
+bnBncC5maWZ0aGhvcnNlbWFuLm5ldDc1M0Y5NDJDMEExNjc3MDE4OURGMUYyMDY5\r
+RUNEMEFCRjA0OTY1MTYACgkQaezQq/BJZRZwDACeKN5Eay7Sou7z44wJbdYLUv/m\r
+mr8An1wmoA6hFAEeYqtg/yp+Am0VwHm7\r
+=SzL2\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r