Re: [PATCH] implement search --format=sanitized_text + emacs UI to use it
authorJameson Graef Rollins <jrollins@finestructure.net>
Sat, 7 May 2011 01:06:47 +0000 (18:06 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:38:10 +0000 (09:38 -0800)
20/38ea96edd162f7d5c1aed4765fea2655b8742a [new file with mode: 0644]

diff --git a/20/38ea96edd162f7d5c1aed4765fea2655b8742a b/20/38ea96edd162f7d5c1aed4765fea2655b8742a
new file mode 100644 (file)
index 0000000..467d4f7
--- /dev/null
@@ -0,0 +1,103 @@
+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 2B96A429E21\r
+       for <notmuch@notmuchmail.org>; Fri,  6 May 2011 18:06:57 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.29\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_MED=-2.3, 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 QbOLuFOT0tE6 for <notmuch@notmuchmail.org>;\r
+       Fri,  6 May 2011 18:06:55 -0700 (PDT)\r
+Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
+       [131.215.239.19])\r
+       by olra.theworths.org (Postfix) with ESMTP id 39BAE431FB5\r
+       for <notmuch@notmuchmail.org>; Fri,  6 May 2011 18:06:55 -0700 (PDT)\r
+Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
+       by earth-doxen-postvirus (Postfix) with ESMTP id 8909E66E05F9;\r
+       Fri,  6 May 2011 18:06:53 -0700 (PDT)\r
+X-Spam-Scanned: at Caltech-IMSS on earth-doxen by amavisd-new\r
+Received: from servo.finestructure.net (m8.ligo.caltech.edu [131.215.115.108])\r
+       (Authenticated sender: jrollins)\r
+       by earth-doxen-submit (Postfix) with ESMTP id 9709466E05F3;\r
+       Fri,  6 May 2011 18:06:48 -0700 (PDT)\r
+Received: by servo.finestructure.net (Postfix, from userid 1000)\r
+       id 849D0121C; Fri,  6 May 2011 18:06:49 -0700 (PDT)\r
+From: Jameson Graef Rollins <jrollins@finestructure.net>\r
+To: Austin Clements <amdragon@mit.edu>, Florian Friesdorf <flo@chaoflow.net>\r
+Subject: Re: [PATCH] implement search --format=sanitized_text + emacs UI to\r
+       use it\r
+In-Reply-To: <BANLkTime86NE4W5j+p0uJiR5_cF3gZVd8Q@mail.gmail.com>\r
+References: <1304723846-29134-1-git-send-email-flo@chaoflow.net>\r
+       <1304723846-29134-2-git-send-email-flo@chaoflow.net>\r
+       <BANLkTime86NE4W5j+p0uJiR5_cF3gZVd8Q@mail.gmail.com>\r
+User-Agent: Notmuch/0.6 (http://notmuchmail.org) Emacs/23.3.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Fri, 06 May 2011 18:06:47 -0700\r
+Message-ID: <87liyjgvyw.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
+Cc: notmuch@notmuchmail.org, a.amann@ucc.ie\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: Sat, 07 May 2011 01:06:57 -0000\r
+\r
+--=-=-=\r
+\r
+On Fri, 6 May 2011 19:55:26 -0400, Austin Clements <amdragon@mit.edu> wrote:\r
+> Perhaps text summary output should *always* do this.  The text summary\r
+> format is meant half for user consumption and half for emacs\r
+> consumption and allowing newlines that don't indicate the end of a\r
+> summary line seems bad for *both* use cases.\r
+\r
+Hi, Florian.  I think I agree with Austin here that the text output\r
+should probably just always be sanitized.  Can you try sending in a\r
+patch that just automatically sanitizes the text output?\r
+\r
+Also, I believe that this patch is not entirely compatible with the\r
+current head of the release-candidate/0.6 branch.  I pushed a patch to\r
+that branch to fix a search output formatting bug, and in so doing I\r
+added a field to the search_format struct.\r
+\r
+If you could make those changes and post a new patch that would be\r
+great.  Thanks.\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
+iQIcBAEBCAAGBQJNxJsnAAoJEO00zqvie6q8r1YP/ifH92Lsa/0HaeLGCK1F3PqF\r
+oeNUXN9G26jLS2ws5fiJ/Xa3IaVwAHopL2mqfqDO696BZ+fFhUrU3XaiGzSLAYAO\r
+bZcyGSW3hWifeFjVyZVFFto/nRE4xtv0WMjipVqbwkGwbcrKs9JZyP6H2Cwrwhq/\r
+2sJg8AKIXDitWQV4yIp9+er21IgXYaelZ9tG1j0bZubcERJvVE3OKKDYM2aoEFjq\r
+RzJHkLc91HLRvztzrtbDh2vsGyDy5QsuQkAQS1nUxsGHOB7cNMsMWlX8t0GJTQPr\r
+Fq9bPJOHWYececV19OOYbYFnK9K80ddg5bB6/qBe01bmnhPsOxBOZ/BRVzwn2DQe\r
+HpgLQgh3rkAFiOy0B+dQGAVVJMVpirO1Mq8qtSi51jyRfLTpVBqK7SHOkcqbK52E\r
+++Mt1+NX8BrhMjfvsaGDLVNWBzHjQyLq8muwdbKaor8Zt6kZLvyMuCIc5C2QbfUe\r
+QmV27Q5J/2naNnGJlSj1PTaX3AMZa4vUsiydUACQrSzZsJwVVLUOmIUDoNcmwR/6\r
+ymQ1E8UpZC/pMxeNKrTmdo4+NtbfT3sKG/Err2b4yxlzEXxVHN96rqGmqtR/kGGf\r
+QDgTicbH6DN/F2l5riDiZGJlbdbVMulqIpk0hstqhdbw8PEYJAtWPaZ+HKnLb/h4\r
+dLlaUQxVPPlvncPPyHCC\r
+=RTJg\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r