Re: [PATCH 2/3] test: Add `test_emacs_expect_t'.
[notmuch-archives.git] / bc / ac22baa9ade39f911181a5465533a819f605de
1 Return-Path: <jrollins@finestructure.net>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 3B130431FB6\r
6         for <notmuch@notmuchmail.org>; Mon, 18 Apr 2011 00:16:53 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0.01\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.01 tagged_above=-999 required=5\r
12         tests=[T_MIME_NO_TEXT=0.01] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id 9kx3zJ7al2ZC for <notmuch@notmuchmail.org>;\r
16         Mon, 18 Apr 2011 00:16:51 -0700 (PDT)\r
17 Received: from brinza.cc.columbia.edu (brinza.cc.columbia.edu [128.59.29.8])\r
18         by olra.theworths.org (Postfix) with ESMTP id 60AE4431FB5\r
19         for <notmuch@notmuchmail.org>; Mon, 18 Apr 2011 00:16:50 -0700 (PDT)\r
20 Received: from servo.factory.finestructure.net\r
21         (cpe-98-149-172-122.socal.res.rr.com [98.149.172.122])\r
22         (user=jgr2110 author=jrollins@servo.factory.finestructure.net\r
23         mech=PLAIN bits=0)\r
24         by brinza.cc.columbia.edu (8.14.4/8.14.3) with ESMTP id p3I7GlBB003462\r
25         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT)\r
26         for <notmuch@notmuchmail.org>; Mon, 18 Apr 2011 03:16:49 -0400 (EDT)\r
27 Received: from jrollins by servo.factory.finestructure.net with local (Exim\r
28         4.75) (envelope-from <jrollins@finestructure.net>)\r
29         id 1QBihT-0008GH-IU\r
30         for notmuch@notmuchmail.org; Mon, 18 Apr 2011 00:16:47 -0700\r
31 Resent-To: notmuch@notmuchmail.org\r
32 Resent-From: Jameson Graef Rollins <jrollins@finestructure.net>\r
33 Resent-Date: Mon, 18 Apr 2011 00:16:47 -0700\r
34 Resent-Message-ID: <87aafoowps.fsf@servo.factory.finestructure.net>\r
35 From: Jameson Graef Rollins <jrollins@finestructure.net>\r
36 To: Pieter Praet <pieter@praet.org>, Florian Friesdorf <flo@chaoflow.net>,\r
37         notmuch@notmuchmail.org\r
38 Subject: Re: (auto-)tagging sent messages\r
39 In-Reply-To:\r
40  <87pqomgxr0.fsf@A7GMS.i-did-not-set--mail-host-address--so-tickle-me>\r
41 References: <8739ll8dkv.fsf@eve.chaoflow.net>\r
42         <87pqomgxr0.fsf@A7GMS.i-did-not-set--mail-host-address--so-tickle-me>\r
43 User-Agent: Notmuch/0.5-150-g3d45e49 (http://notmuchmail.org) Emacs/23.2.1\r
44         (i486-pc-linux-gnu)\r
45 Date: Sun, 17 Apr 2011 11:23:33 -0700\r
46 Message-ID: <878vv8hh3u.fsf@servo.factory.finestructure.net>\r
47 MIME-Version: 1.0\r
48 Content-Type: multipart/signed; boundary="=-=-=";\r
49         micalg=pgp-sha256; protocol="application/pgp-signature"\r
50 X-No-Spam-Score: Local\r
51 X-Scanned-By: MIMEDefang 2.68 on 128.59.29.8\r
52 X-BeenThere: notmuch@notmuchmail.org\r
53 X-Mailman-Version: 2.1.13\r
54 Precedence: list\r
55 List-Id: "Use and development of the notmuch mail system."\r
56         <notmuch.notmuchmail.org>\r
57 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
58         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
59 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
60 List-Post: <mailto:notmuch@notmuchmail.org>\r
61 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
62 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
63         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
64 X-List-Received-Date: Mon, 18 Apr 2011 07:16:53 -0000\r
65 \r
66 --=-=-=\r
67 Content-Transfer-Encoding: quoted-printable\r
68 \r
69 On Sat, 16 Apr 2011 14:57:07 +0200, Pieter Praet <pieter@praet.org> wrote:\r
70 > > Further, for certain mails I sent (like this one ) I would like a\r
71 > > WAITING tag (or similar) in order to indicate that I am waiting for an\r
72 > > answer. Currently I set this manually. Could this be achieved through\r
73 > > some indicators via message mode or similar means? e.g.:\r
74 > >=20\r
75 > > <#notmuch tag=3DWAITING> analog to <#secure method=3Dpgpmime mode=3Dsig=\r
76 n>\r
77 >=20\r
78 > No idea how this works since I don't follow Jameson's crypto branch,\r
79 > but it's probably not a good idea for this use case since (I presume)\r
80 > the indicator will become permanently lodged in the content of the\r
81 > mail, which isn't where highly volatile metadata belongs.\r
82 \r
83 Hey, Pieter.  This doesn't actually have anything to do with the crypto\r
84 branch.  These indicators are how emacs handles signing/encryption of\r
85 outgoing messages in emacs message-mode, as well as other things like\r
86 adding attachments.  It's not actually a part of notmuch.\r
87 \r
88 When using emacs message-mode to compose a message, you can add tags\r
89 like these to the message body.  When you then tell emacs to send the\r
90 message, emacs reads these tags and performs the specified operation,\r
91 like signing the message or adding an attachment.  Emacs then removes\r
92 the tags so they're never actually stored in the message.  These tags\r
93 are also not interpreted when reading a message, only when composing.\r
94 \r
95 I don't think it's a bad idea to extend this system to benefit notmuch,\r
96 by instructing emacs message mode to add tags to outgoing messages.\r
97 Like someone suggested, though, it should really be done by having\r
98 notmuch index the outgoing message at the time of sending, which would\r
99 best be handled by telling notmuch to index an individual message.\r
100 \r
101 Having notmuch index a single message would I think be incredibly\r
102 useful, for a lot of different reasons.  I think it would enable a lot\r
103 of nice integration with other mail handling tools.  I can imagine this\r
104 being done in a couple of ways:\r
105 \r
106 By giving "notmuch new" a path to a message in the store:\r
107 \r
108   notmuch new /path/to/message\r
109 \r
110 By feeding "notmuch new" a message on stdin, and then having it write\r
111 the message to a specified location:\r
112 \r
113   notmuch new /path/to/maildir <message\r
114 \r
115 You could then add the ability to add tags at the time of index:\r
116 \r
117   notmuch new +foo +bar /path/to/message\r
118 \r
119 I really think it would not be hard to enable notmuch to do this.  I\r
120 wonder what other things.  I think it would make things much easier for\r
121 interaction with procmail and spam filters.\r
122 \r
123 jamie.\r
124 \r
125 --=-=-=\r
126 Content-Type: application/pgp-signature\r
127 \r
128 -----BEGIN PGP SIGNATURE-----\r
129 Version: GnuPG v1.4.11 (GNU/Linux)\r
130 \r
131 iQIcBAEBCAAGBQJNqzAnAAoJEO00zqvie6q8mkMQAKMRdIdDvWbDlvdT05o+Dt5u\r
132 brKO9M+aH3VC5hUV5fvgS1mWTRnRdi7w9est0ifjKkeivIP5d4zBh/HxYBpkXQNt\r
133 rFw+x85n32lnaiRwam5kl0r9EdsCmXDOWzpOXjNg8go10FybIDgUcitu2jTCJL/F\r
134 94oKaVKJH09IxD+ifsj9abbLO8zB8AaR9tHsyLh4J8rz+KATaa231dp4ksEjgTy7\r
135 QA6Uv/Kt+qz0tTyDgzUf078GKDMw0xCeJuzlQVZSU0QPXPs2NyiAPSAtRPVRAxiY\r
136 VMDyJrSXtt5S0UXdejqiRN2pIlvi8M+SAIRU7ted6BudaDj8NgdE8wv06C+GbcCN\r
137 LJW53tZBERe9LvjTyKZFZYe5tHyTzvMwjstUGiIygUR1KbdPHkSM8qtwYJK3JCYT\r
138 nlRy+Dgae/9Al5cn861DHCqNgxhWwnGP04/wLpJUyPq3W4WQ5SRh/QbS6iO20scC\r
139 JBEEzrBcnFIyYPKUltbWpAEzneih8k7WTkA3kfFytwEOY237zmewDS0DwGOzIJjG\r
140 szl0bNnaxaFD/VKQFkD2hhRofa9jeFh+pyPX1B7Sf8zgKa4aH72YkHNQhKCdXx4s\r
141 IeY7NeaQuQVa4i8sHshjzxbd7IdEoInU+6WI/TOt61ak2l9AvMMqZxqfJ9UBkke8\r
142 Su2lS19PtXDMu4CfqZ2V\r
143 =b5xH\r
144 -----END PGP SIGNATURE-----\r
145 --=-=-=--\r