Re: [PATCH v2] emacs: Reuse rather than reinvent message header filtering
authorCarl Worth <cworth@cworth.org>
Fri, 4 Jun 2010 00:06:14 +0000 (17:06 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:37:05 +0000 (09:37 -0800)
68/6b61a50b8558366b0658a33b94e62e53865fbc [new file with mode: 0644]

diff --git a/68/6b61a50b8558366b0658a33b94e62e53865fbc b/68/6b61a50b8558366b0658a33b94e62e53865fbc
new file mode 100644 (file)
index 0000000..b08d5ba
--- /dev/null
@@ -0,0 +1,87 @@
+Return-Path: <cworth@cworth.org>\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 95A054196F3\r
+       for <notmuch@notmuchmail.org>; Thu,  3 Jun 2010 17:06:25 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.89\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.89 tagged_above=-999 required=5\r
+       tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, T_MIME_NO_TEXT=0.01]\r
+       autolearn=ham\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 MuEJCBwSDfKr; Thu,  3 Jun 2010 17:06:15 -0700 (PDT)\r
+Received: from yoom.home.cworth.org (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 699F9431FC1;\r
+       Thu,  3 Jun 2010 17:06:15 -0700 (PDT)\r
+Received: by yoom.home.cworth.org (Postfix, from userid 1000)\r
+       id 1C879568F2D; Thu,  3 Jun 2010 17:06:15 -0700 (PDT)\r
+From: Carl Worth <cworth@cworth.org>\r
+To: Sebastian Spaeth <Sebastian@SSpaeth.de>,\r
+       Notmuch developer list <notmuch@notmuchmail.org>\r
+Subject: Re: [PATCH v2] emacs: Reuse rather than reinvent message header\r
+       filtering\r
+In-Reply-To: <1272532201-8742-1-git-send-email-Sebastian@SSpaeth.de>\r
+References: <87eihyy6od.fsf@ut.hh.sledj.net>\r
+       <1272532201-8742-1-git-send-email-Sebastian@SSpaeth.de>\r
+User-Agent: Notmuch/0.3.1-22-g1d528f8 (http://notmuchmail.org) Emacs/23.1.1\r
+       (i486-pc-linux-gnu)\r
+Date: Thu, 03 Jun 2010 17:06:14 -0700\r
+Message-ID: <871vcnfyq1.fsf@yoom.home.cworth.org>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha1; protocol="application/pgp-signature"\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: Fri, 04 Jun 2010 00:06:25 -0000\r
+\r
+--=-=-=\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+On Thu, 29 Apr 2010 11:10:01 +0200, Sebastian Spaeth <Sebastian@SSpaeth.de>=\r
+ wrote:\r
+> In notmuch-mua-reply we were filtering out the Subject and To headers\r
+> manually in a loop, but message mode offers a nice function for\r
+> exactly that. Simplify the code by using it. Also, as notmuch-mua-mail\r
+> already sorts and hides headers that we want sorted and hidden, we can\r
+> safely remove those 2 functions from here as well.  Also remove the\r
+> (require 'cl), the only reason for its existence was the now removed\r
+> "loop" function.\r
+>=20\r
+> Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>\r
+> ---\r
+>  Also removed (require 'cl) as per dme's suggestion.\r
+\r
+Lovely. Thanks for the patch, Sebastian, (and for the review, David).\r
+\r
+I've committed this and expect to push it soon.\r
+\r
+=2DCarl\r
+\r
+=2D-=20\r
+carl.d.worth@intel.com\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.10 (GNU/Linux)\r
+\r
+iD8DBQFMCEN26JDdNq8qSWgRAltMAJ4y4hbnJcy9EmcMPGLgoXIyFVr6LwCgiH0l\r
+h9B9MjppkgNWRSpUBTsnde0=\r
+=jSjg\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r