Re: (auto-)tagging sent messages
authorJameson Graef Rollins <jrollins@finestructure.net>
Sun, 17 Apr 2011 18:23:33 +0000 (11:23 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:38:04 +0000 (09:38 -0800)
bc/ac22baa9ade39f911181a5465533a819f605de [new file with mode: 0644]

diff --git a/bc/ac22baa9ade39f911181a5465533a819f605de b/bc/ac22baa9ade39f911181a5465533a819f605de
new file mode 100644 (file)
index 0000000..0a12dba
--- /dev/null
@@ -0,0 +1,145 @@
+Return-Path: <jrollins@finestructure.net>\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 3B130431FB6\r
+       for <notmuch@notmuchmail.org>; Mon, 18 Apr 2011 00:16:53 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.01\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.01 tagged_above=-999 required=5\r
+       tests=[T_MIME_NO_TEXT=0.01] 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 9kx3zJ7al2ZC for <notmuch@notmuchmail.org>;\r
+       Mon, 18 Apr 2011 00:16:51 -0700 (PDT)\r
+Received: from brinza.cc.columbia.edu (brinza.cc.columbia.edu [128.59.29.8])\r
+       by olra.theworths.org (Postfix) with ESMTP id 60AE4431FB5\r
+       for <notmuch@notmuchmail.org>; Mon, 18 Apr 2011 00:16:50 -0700 (PDT)\r
+Received: from servo.factory.finestructure.net\r
+       (cpe-98-149-172-122.socal.res.rr.com [98.149.172.122])\r
+       (user=jgr2110 author=jrollins@servo.factory.finestructure.net\r
+       mech=PLAIN bits=0)\r
+       by brinza.cc.columbia.edu (8.14.4/8.14.3) with ESMTP id p3I7GlBB003462\r
+       (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT)\r
+       for <notmuch@notmuchmail.org>; Mon, 18 Apr 2011 03:16:49 -0400 (EDT)\r
+Received: from jrollins by servo.factory.finestructure.net with local (Exim\r
+       4.75) (envelope-from <jrollins@finestructure.net>)\r
+       id 1QBihT-0008GH-IU\r
+       for notmuch@notmuchmail.org; Mon, 18 Apr 2011 00:16:47 -0700\r
+Resent-To: notmuch@notmuchmail.org\r
+Resent-From: Jameson Graef Rollins <jrollins@finestructure.net>\r
+Resent-Date: Mon, 18 Apr 2011 00:16:47 -0700\r
+Resent-Message-ID: <87aafoowps.fsf@servo.factory.finestructure.net>\r
+From: Jameson Graef Rollins <jrollins@finestructure.net>\r
+To: Pieter Praet <pieter@praet.org>, Florian Friesdorf <flo@chaoflow.net>,\r
+       notmuch@notmuchmail.org\r
+Subject: Re: (auto-)tagging sent messages\r
+In-Reply-To:\r
+ <87pqomgxr0.fsf@A7GMS.i-did-not-set--mail-host-address--so-tickle-me>\r
+References: <8739ll8dkv.fsf@eve.chaoflow.net>\r
+       <87pqomgxr0.fsf@A7GMS.i-did-not-set--mail-host-address--so-tickle-me>\r
+User-Agent: Notmuch/0.5-150-g3d45e49 (http://notmuchmail.org) Emacs/23.2.1\r
+       (i486-pc-linux-gnu)\r
+Date: Sun, 17 Apr 2011 11:23:33 -0700\r
+Message-ID: <878vv8hh3u.fsf@servo.factory.finestructure.net>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha256; protocol="application/pgp-signature"\r
+X-No-Spam-Score: Local\r
+X-Scanned-By: MIMEDefang 2.68 on 128.59.29.8\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 07:16:53 -0000\r
+\r
+--=-=-=\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+On Sat, 16 Apr 2011 14:57:07 +0200, Pieter Praet <pieter@praet.org> wrote:\r
+> > Further, for certain mails I sent (like this one ) I would like a\r
+> > WAITING tag (or similar) in order to indicate that I am waiting for an\r
+> > answer. Currently I set this manually. Could this be achieved through\r
+> > some indicators via message mode or similar means? e.g.:\r
+> >=20\r
+> > <#notmuch tag=3DWAITING> analog to <#secure method=3Dpgpmime mode=3Dsig=\r
+n>\r
+>=20\r
+> No idea how this works since I don't follow Jameson's crypto branch,\r
+> but it's probably not a good idea for this use case since (I presume)\r
+> the indicator will become permanently lodged in the content of the\r
+> mail, which isn't where highly volatile metadata belongs.\r
+\r
+Hey, Pieter.  This doesn't actually have anything to do with the crypto\r
+branch.  These indicators are how emacs handles signing/encryption of\r
+outgoing messages in emacs message-mode, as well as other things like\r
+adding attachments.  It's not actually a part of notmuch.\r
+\r
+When using emacs message-mode to compose a message, you can add tags\r
+like these to the message body.  When you then tell emacs to send the\r
+message, emacs reads these tags and performs the specified operation,\r
+like signing the message or adding an attachment.  Emacs then removes\r
+the tags so they're never actually stored in the message.  These tags\r
+are also not interpreted when reading a message, only when composing.\r
+\r
+I don't think it's a bad idea to extend this system to benefit notmuch,\r
+by instructing emacs message mode to add tags to outgoing messages.\r
+Like someone suggested, though, it should really be done by having\r
+notmuch index the outgoing message at the time of sending, which would\r
+best be handled by telling notmuch to index an individual message.\r
+\r
+Having notmuch index a single message would I think be incredibly\r
+useful, for a lot of different reasons.  I think it would enable a lot\r
+of nice integration with other mail handling tools.  I can imagine this\r
+being done in a couple of ways:\r
+\r
+By giving "notmuch new" a path to a message in the store:\r
+\r
+  notmuch 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
+  notmuch new /path/to/maildir <message\r
+\r
+You could then add the ability to add tags at the time of index:\r
+\r
+  notmuch new +foo +bar /path/to/message\r
+\r
+I really think it would not be hard to enable notmuch to do this.  I\r
+wonder what other things.  I think it would make things much easier for\r
+interaction with procmail and spam filters.\r
+\r
+jamie.\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.11 (GNU/Linux)\r
+\r
+iQIcBAEBCAAGBQJNqzAnAAoJEO00zqvie6q8mkMQAKMRdIdDvWbDlvdT05o+Dt5u\r
+brKO9M+aH3VC5hUV5fvgS1mWTRnRdi7w9est0ifjKkeivIP5d4zBh/HxYBpkXQNt\r
+rFw+x85n32lnaiRwam5kl0r9EdsCmXDOWzpOXjNg8go10FybIDgUcitu2jTCJL/F\r
+94oKaVKJH09IxD+ifsj9abbLO8zB8AaR9tHsyLh4J8rz+KATaa231dp4ksEjgTy7\r
+QA6Uv/Kt+qz0tTyDgzUf078GKDMw0xCeJuzlQVZSU0QPXPs2NyiAPSAtRPVRAxiY\r
+VMDyJrSXtt5S0UXdejqiRN2pIlvi8M+SAIRU7ted6BudaDj8NgdE8wv06C+GbcCN\r
+LJW53tZBERe9LvjTyKZFZYe5tHyTzvMwjstUGiIygUR1KbdPHkSM8qtwYJK3JCYT\r
+nlRy+Dgae/9Al5cn861DHCqNgxhWwnGP04/wLpJUyPq3W4WQ5SRh/QbS6iO20scC\r
+JBEEzrBcnFIyYPKUltbWpAEzneih8k7WTkA3kfFytwEOY237zmewDS0DwGOzIJjG\r
+szl0bNnaxaFD/VKQFkD2hhRofa9jeFh+pyPX1B7Sf8zgKa4aH72YkHNQhKCdXx4s\r
+IeY7NeaQuQVa4i8sHshjzxbd7IdEoInU+6WI/TOt61ak2l9AvMMqZxqfJ9UBkke8\r
+Su2lS19PtXDMu4CfqZ2V\r
+=b5xH\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r