Re: [PATCH v4 09/16] index encrypted parts when asked.
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Fri, 15 Jul 2016 07:46:17 +0000 (09:46 +0200)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 23:22:13 +0000 (16:22 -0700)
12/028e1565e2bb3a38a80bfa30480b1298caa620 [new file with mode: 0644]

diff --git a/12/028e1565e2bb3a38a80bfa30480b1298caa620 b/12/028e1565e2bb3a38a80bfa30480b1298caa620
new file mode 100644 (file)
index 0000000..b0dd40a
--- /dev/null
@@ -0,0 +1,115 @@
+Return-Path: <dkg@fifthhorseman.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 arlo.cworth.org (Postfix) with ESMTP id 62F786DE00F5\r
+ for <notmuch@notmuchmail.org>; Fri, 15 Jul 2016 00:46:36 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+ autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id eLcgFOvBumZK for <notmuch@notmuchmail.org>;\r
+ Fri, 15 Jul 2016 00:46:28 -0700 (PDT)\r
+Received: from che.mayfirst.org (che.mayfirst.org [162.247.75.118])\r
+ by arlo.cworth.org (Postfix) with ESMTP id E7EC86DE00C9\r
+ for <notmuch@notmuchmail.org>; Fri, 15 Jul 2016 00:46:27 -0700 (PDT)\r
+Received: from fifthhorseman.net (p57A05642.dip0.t-ipconnect.de\r
+ [87.160.86.66]) by che.mayfirst.org (Postfix) with ESMTPSA id 16BB5F98B; Fri,\r
+ 15 Jul 2016 03:46:24 -0400 (EDT)\r
+Received: by fifthhorseman.net (Postfix, from userid 1000)\r
+ id B39CD20018; Fri, 15 Jul 2016 09:46:21 +0200 (CEST)\r
+From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>\r
+To: David Bremner <david@tethera.net>, Notmuch Mail <notmuch@notmuchmail.org>\r
+Subject: Re: [PATCH v4 09/16] index encrypted parts when asked.\r
+In-Reply-To: <8760s7zr47.fsf@zancas.localnet>\r
+References: <1467970047-8013-1-git-send-email-dkg@fifthhorseman.net>\r
+ <1467970047-8013-10-git-send-email-dkg@fifthhorseman.net>\r
+ <87lh14e2x8.fsf@tesseract.cs.unb.ca> <8737ncmbpy.fsf@alice.fifthhorseman.net>\r
+ <8760s7zr47.fsf@zancas.localnet>\r
+User-Agent: Notmuch/0.22+77~gaba8744 (https://notmuchmail.org) Emacs/24.5.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Fri, 15 Jul 2016 09:46:17 +0200\r
+Message-ID: <87y453jqd2.fsf@alice.fifthhorseman.net>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+ micalg=pgp-sha512; protocol="application/pgp-signature"\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://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: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Fri, 15 Jul 2016 07:46:36 -0000\r
+\r
+--=-=-=\r
+Content-Type: text/plain; charset=utf-8\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+On Fri 2016-07-15 02:23:20 +0200, David Bremner wrote:\r
+>       - accumulate an error string. With talloc_asprintf_append, this is\r
+>       not _too_ terrible. Making a second logging function [1] that\r
+>       didn't clear the log buffer but appended would maybe make sense\r
+>       (aside from contradicting what I said in the previous message).\r
+>       This would still need some status return to alert the caller.\r
+ [...]\r
+> [1]: untested:\r
+>\r
+> void\r
+> _notmuch_database_log_append (notmuch_database_t *notmuch,\r
+>                    const char *format,\r
+>                    ...)\r
+> {\r
+>     va_list va_args;\r
+>\r
+>     va_start (va_args, format);\r
+>\r
+>     if (notmuch->status_string)\r
+>      notmuch->status_string =3D talloc_vasprintf_append (notmuch->status_stri=\r
+ng, format, va_args)\r
+>     else\r
+>      notmuch->status_string =3D talloc_vasprintf (notmuch, format, va_args);\r
+>=20=20=20=20=20\r
+>     va_end (va_args);\r
+> }\r
+\r
+If Someone=E2=84=A2 were to publish a changeset with this feature, i'd cert=\r
+ainly\r
+make use of it in this series.\r
+\r
+thanks for the suggestion, David.\r
+\r
+       --dkg\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature; name="signature.asc"\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v2\r
+\r
+iQJ8BAEBCgBmBQJXiJTJXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w\r
+ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRFREIyRTc0RjU2RkNGMkI2NzI5N0I3MzUy\r
+NEVDRkY1QUZGNjgzNzBBAAoJECTs/1r/aDcKMk4QAJrzDILjnY48nipIB6tc9o2X\r
+w7laaSWgWtYMx4bOMzky4PF8GhprM/ws7vBeTl2G3fVymB5s40nCu071tdmuS15h\r
+ZgIKC/71Xj1JG8w9kEZUseEB9sq5bQAoZcOuIM0Te5Nk5THOGFQiLd2EdK5Y24qr\r
+QO50ehSvB7mO9Of5Mt3d6BYHtzHDSYx6x3yXMmidx5v5RK1HYcODRpiOh/HniJu5\r
+WYLvU17LNFXrSk0ZXZcrpzedr0/1615E1+1nUjdOvGE88vRakUz34yvrY/hKBWLK\r
+dRZybxXskGuw7zz6KICOfB6u9PqbvddSmEiAxWrkRykPSs7jd9rtjG3Uv8q/APFH\r
+zFcxVvVY28aCplSBGywjvjwAYFjDDZdHTm5MGAU9463U3aTdkbZGjYP+T1XbaTz+\r
+roB4LsTRsem0DettNF4/sNsUpjrO35PbP53ZzzpgS+RjUwYhxbknQq1W34DQNuoT\r
+feZUX+9560avSe6WQu4H5iMgMQeqmRhnxW+vhxEHU0qAxs5t2zQPxwuD5E9A6IEK\r
+0Je7TaTEwMTPuyXNC8YITPi/WN/ylls8X5v4CE1lGf4OWLEwfpLge4H8tfORnp+r\r
+NyeF4akrPLC3rolkoxoM6vxIo0jpsEeJWAPxGWsWgjDXH9MpEkRodIS93WqOrR16\r
+nuLxPwe/8IZ0d3arU07E\r
+=jkvh\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r