Re: (auto-)tagging sent messages
authorAustin Clements <amdragon@mit.edu>
Mon, 18 Apr 2011 20:26:27 +0000 (16:26 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:38:05 +0000 (09:38 -0800)
75/f9e38ebacb8066e5d0677fe773171beefa9088 [new file with mode: 0644]

diff --git a/75/f9e38ebacb8066e5d0677fe773171beefa9088 b/75/f9e38ebacb8066e5d0677fe773171beefa9088
new file mode 100644 (file)
index 0000000..63a9131
--- /dev/null
@@ -0,0 +1,100 @@
+Return-Path: <amdragon@gmail.com>\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 AFD6C431FB6\r
+       for <notmuch@notmuchmail.org>; Mon, 18 Apr 2011 13:26:30 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.699\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001,\r
+       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 f0xuKAsVzT-V for <notmuch@notmuchmail.org>;\r
+       Mon, 18 Apr 2011 13:26:30 -0700 (PDT)\r
+Received: from mail-qw0-f53.google.com (mail-qw0-f53.google.com\r
+       [209.85.216.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 1E21C431FB5\r
+       for <notmuch@notmuchmail.org>; Mon, 18 Apr 2011 13:26:30 -0700 (PDT)\r
+Received: by qwb7 with SMTP id 7so4186562qwb.26\r
+       for <notmuch@notmuchmail.org>; Mon, 18 Apr 2011 13:26:27 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
+       h=domainkey-signature:mime-version:sender:in-reply-to:references:date\r
+       :x-google-sender-auth:message-id:subject:from:to:cc:content-type\r
+       :content-transfer-encoding;\r
+       bh=rnZcwoY3kITnJWdyfkD//+NY/yDyn94tmStbzWxmR2Q=;\r
+       b=Y8xS4VAtoMp6/1mZTlTWx2ntWrMXwjFEKCu4yNLILD62Ya9iM9OgSZMehOgKbllKla\r
+       Mb/qUaDYKgY/coGOC5n1yJ7wUNOdKjNjYa5ecIjT6NbJRy/FLQnJVTSJgKj+ZeFQZ8wD\r
+       2iu22Fz9nI6l7MqNa49tbWCVyxpHSvCuPoLIk=\r
+DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
+       h=mime-version:sender:in-reply-to:references:date\r
+       :x-google-sender-auth:message-id:subject:from:to:cc:content-type\r
+       :content-transfer-encoding;\r
+       b=yEHxo90EEu/f27+O31y7SxlwNXNqr0XNOSw5tlOvxdO21TlCj4z0hZCloHnIOQVjPc\r
+       ULUnqWM2YzhTywXBf03RYwwkdJ3hemEYRIqY4ezl1Bl8LtsswmYYYyy+oPA8Cz+beG7d\r
+       Y53ctttnkwaxP32g90gvJubuz3xv3LWK3WTdA=\r
+MIME-Version: 1.0\r
+Received: by 10.229.13.152 with SMTP id c24mr1346194qca.87.1303158387387; Mon,\r
+       18 Apr 2011 13:26:27 -0700 (PDT)\r
+Sender: amdragon@gmail.com\r
+Received: by 10.229.220.148 with HTTP; Mon, 18 Apr 2011 13:26:27 -0700 (PDT)\r
+In-Reply-To: <878vv8hh3u.fsf@servo.factory.finestructure.net>\r
+References: <8739ll8dkv.fsf@eve.chaoflow.net>\r
+       <87pqomgxr0.fsf@A7GMS.i-did-not-set--mail-host-address--so-tickle-me>\r
+       <878vv8hh3u.fsf@servo.factory.finestructure.net>\r
+Date: Mon, 18 Apr 2011 16:26:27 -0400\r
+X-Google-Sender-Auth: BLwI36JStVAzq-7NgMcXPEP_-1c\r
+Message-ID: <BANLkTimfpvUhEf+UM_0TqwMdMTvzuUjzHw@mail.gmail.com>\r
+Subject: Re: (auto-)tagging sent messages\r
+From: Austin Clements <amdragon@mit.edu>\r
+To: Jameson Graef Rollins <jrollins@finestructure.net>\r
+Content-Type: text/plain; charset=ISO-8859-1\r
+Content-Transfer-Encoding: quoted-printable\r
+Cc: notmuch@notmuchmail.org\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: Mon, 18 Apr 2011 20:26:30 -0000\r
+\r
+On Sun, Apr 17, 2011 at 2:23 PM, Jameson Graef Rollins\r
+<jrollins@finestructure.net> wrote:\r
+> By giving "notmuch new" a path to a message in the store:\r
+>\r
+> =A0notmuch new /path/to/message\r
+>\r
+> By feeding "notmuch new" a message on stdin, and then having it write\r
+> the message to a specified location:\r
+>\r
+> =A0notmuch new /path/to/maildir <message\r
+>\r
+> You could then add the ability to add tags at the time of index:\r
+>\r
+> =A0notmuch new +foo +bar /path/to/message\r
+\r
+I think passing specific messages or directories to notmuch new would\r
+enable some nice features; beyond immediate indexing any tagging of\r
+sent mail, it could be combined with inotify to immediately index any\r
+new mail (something I've been meaning to play with but haven't yet).\r
+\r
+However, concurrency and atomicity have to be considered carefully\r
+with any proposal like this.  For example,\r
+  notmuch new +foo +bar /path/to/message\r
+has concurrency hazards: the caller has to store the message before\r
+invoking notmuch new, but if the machine crashes between these two\r
+operations, the message will be indexed with default tags on the next\r
+notmuch new.  Similarly, a chance unrelated invocation of notmuch new\r
+immediately after the message is stored would result in the new\r
+message being indexed with default tags.\r