[Patch v6 02/14] test: add notmuch_search_files_sanitize and use it
[notmuch-archives.git] / 4b / d093fbc1c8665fd43da7fde45f49965ff76ac8
1 Return-Path: <patricktotzke@gmail.com>\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 E970A431FAF\r
6         for <notmuch@notmuchmail.org>; Mon, 18 Nov 2013 01:29:24 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id 5Xglh7e8IbZS for <notmuch@notmuchmail.org>;\r
17         Mon, 18 Nov 2013 01:29:17 -0800 (PST)\r
18 Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com\r
19  [74.125.82.43])        (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
20  certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
21  86AB8431FAE    for <notmuch@notmuchmail.org>; Mon, 18 Nov 2013 01:29:17 -0800\r
22  (PST)\r
23 Received: by mail-wg0-f43.google.com with SMTP id n12so5775819wgh.34\r
24         for <notmuch@notmuchmail.org>; Mon, 18 Nov 2013 01:29:15 -0800 (PST)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
26         h=content-type:mime-version:content-disposition:from:user-agent:to\r
27         :references:in-reply-to:message-id:subject:date;\r
28         bh=9QRZJCNjl6ZAimxKRCkYXUVa1+phXjWRItj8mnvEu4o=;\r
29         b=Ji5//0zgjMZnOsb2MlL1zghnrSV1nkn0e9UHSNYpWQ3D2AwR9QD38nYR0mi/HXtWNo\r
30         hGE8fDSZbFPqbvGcBjiHW2vkBlgp/IKWOEx3Ac5nAGYrTGvjVqj7kBE6UppqTMOp7Dw2\r
31         VKy8hwhz1G5HWK6x7om3cYzF9ncu/UMNTiF7etr6PuHErvzAzaOmx3WTNc8uTk8yiIgZ\r
32         ZhHWyp3Dvg5vR+KHJRRrQeOynkG7diooVHF/ocCLHj9xa9mqHHMonkDCoVUrRbznjg0l\r
33         c48maBSxCAVbgkUZnodpDeCsDR451T1s32DhS5u+y/I/v0nqdnjxg/VJ/hg8vcqdjNvU\r
34         CYJw==\r
35 X-Received: by 10.194.84.72 with SMTP id w8mr268011wjy.55.1384766479162;\r
36         Mon, 18 Nov 2013 01:21:19 -0800 (PST)\r
37 Received: from localhost (dhcp-90-208.inf.ed.ac.uk. [129.215.90.208])\r
38         by mx.google.com with ESMTPSA id pi6sm22219457wic.3.2013.11.18.01.21.17\r
39         for <multiple recipients>\r
40         (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
41         Mon, 18 Nov 2013 01:21:18 -0800 (PST)\r
42 Content-Type: multipart/signed; protocol="application/pgp-signature";\r
43         micalg="pgp-sha1"; boundary="===============8809355610974892594=="\r
44 MIME-Version: 1.0\r
45 Content-Disposition: inline\r
46 From: Patrick Totzke <patricktotzke@gmail.com>\r
47 User-Agent: alot/0.3.5\r
48 To: Alain-Pierre Manine <apmanine@idaaas.com>,\r
49         "Jameson Graef Rollins" <jrollins@finestructure.net>,\r
50         notmuch@notmuchmail.org\r
51 References: <20131112142742.8912.57064@localhost.localdomain>\r
52         <87eh6gxeex.fsf@servo.finestructure.net>\r
53         <20131117185754.31928.60825@brick>\r
54         <87pppy95lu.fsf@servo.finestructure.net>\r
55         <20131118073833.19524.14797@localhost.localdomain>\r
56 In-Reply-To: <20131118073833.19524.14797@localhost.localdomain>\r
57 Message-ID: <20131118092114.23066.92699@brick>\r
58 Subject: Re: alot: can't read sent emails, after encryption\r
59 Date: Mon, 18 Nov 2013 10:21:14 +0100\r
60 X-BeenThere: notmuch@notmuchmail.org\r
61 X-Mailman-Version: 2.1.13\r
62 Precedence: list\r
63 List-Id: "Use and development of the notmuch mail system."\r
64         <notmuch.notmuchmail.org>\r
65 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
66         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
67 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
68 List-Post: <mailto:notmuch@notmuchmail.org>\r
69 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
70 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
71         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
72 X-List-Received-Date: Mon, 18 Nov 2013 09:29:25 -0000\r
73 \r
74 --===============8809355610974892594==\r
75 Content-Type: text/plain; charset="utf-8"\r
76 MIME-Version: 1.0\r
77 Content-Transfer-Encoding: quoted-printable\r
78 \r
79 Quoting Alain-Pierre Manine (2013-11-18 08:38:33)\r
80 > Quoting Jameson Graef Rollins (2013-11-17 20:43:25)\r
81 > > On Sun, Nov 17 2013, Patrick Totzke <patricktotzke@gmail.com> wrote:\r
82 > > > Quoting Jameson Graef Rollins (2013-11-16 21:47:02)\r
83 > > >> On Tue, Nov 12 2013, apmanine@idaaas.com wrote:\r
84 > > >> > I have recently switched to notmuch. Thank you for it!\r
85 > > >> > I'm using "alot" as a frontend (thank you for it, too!). Everything\r
86 > > >> > works smoothly, apart from one problem: with alot, I can't figure =\r
87 out how\r
88 > > >> > to read encrypted emails I previously sent: they appear to be encr=\r
89 ypted\r
90 > > >> > using the addressee's key.\r
91 > > >> >\r
92 > > >> > Is there some way to store encrypted sent emails with my own publi=\r
93 c gpg\r
94 > > >> > key?\r
95 > > >> =\r
96 \r
97 > > >> What you really want is to tell gpg to always encrypt messages to yo=\r
98 ur\r
99 > > >> personal key as well, which will always make them viewable by you.  =\r
100 This\r
101 > > >> way you don't have to worry about saving unencrypted versions of the\r
102 > > >> message to disk, or there being two distinct versions of the message\r
103 > > >> (one encrypted to the recipient and a different one encrypted to you=\r
104 ).\r
105 > > >> =\r
106 \r
107 > > >> See the "encrypt-to" gpg option [0].\r
108 > > >> =\r
109 \r
110 > > >> jamie.\r
111 > > >> =\r
112 \r
113 > > >> [0] http://www.gnupg.org/documentation/manuals/gnupg-devel/GPG-Key-r=\r
114 elated-Options.html\r
115 > > >\r
116 > > > Is this how notmuch emacs does it? I mean, is there some option to te=\r
117 ll\r
118 > > > emacs to always call gpg with --encrypt-to=3Dme ?\r
119 > > > I wonder if I need to change alot in any way or if one can simply glo=\r
120 bally configure\r
121 > > > gnupg.. alot does not call the gpg binary but uses pygpgme.\r
122 > > =\r
123 \r
124 > > You do not need to change alot, just notmuch emacs also doesn't need to\r
125 > > do anything special to allow for this.  Just add an\r
126 > > =\r
127 \r
128 > > encrypt-to <keyid>\r
129 > > =\r
130 \r
131 > > line to your ~/.gnupg/gpg.conf, where <keyid> is your personal keyid.\r
132 > > Then all encrypted data is also encrypted to your personal key, making\r
133 > > it always viewable by you as well.  Then you can just open your\r
134 > > encrypted sent mail as you would any other encrypted mail.\r
135 > > =\r
136 \r
137 > > jamie.\r
138 > =\r
139 \r
140 > It's working! Thanks for the explanations.\r
141 \r
142 \r
143 Excelent, thanks Jamie.\r
144 I wasn't aware of this setting and assumed that the stuff in the\r
145 gnupg config file only applies to gpg itself and not, as in alot,\r
146 for calls through the gpgme library.\r
147 Thanks for testing this Alain-Pierre.\r
148 /p\r
149 \r
150 --===============8809355610974892594==\r
151 MIME-Version: 1.0\r
152 Content-Transfer-Encoding: 7bit\r
153 Content-Description: signature\r
154 Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii"\r
155 \r
156 -----BEGIN PGP SIGNATURE-----\r
157 Version: GnuPG v2.0.20 (GNU/Linux)\r
158 \r
159 iEYEABECAAYFAlKJ3AoACgkQlDQDZ9fWxarMFwCgrEIKbnQde342HL8qfW2qMqq/\r
160 1eoAnjJ+zgdBHpDjMHPT2CSdkJFNa+pD\r
161 =k278\r
162 -----END PGP SIGNATURE-----\r
163 \r
164 --===============8809355610974892594==--\r