Re: [PATCH] emacs: show: hide large text attachments by default
authorDavid Bremner <david@tethera.net>
Sat, 28 Mar 2015 14:35:02 +0000 (15:35 +0100)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:48:37 +0000 (14:48 -0700)
f1/8613fd1adc0fcfd3a75583353f76a0173189e7 [new file with mode: 0644]

diff --git a/f1/8613fd1adc0fcfd3a75583353f76a0173189e7 b/f1/8613fd1adc0fcfd3a75583353f76a0173189e7
new file mode 100644 (file)
index 0000000..1c272f7
--- /dev/null
@@ -0,0 +1,66 @@
+Return-Path: <david@tethera.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 63705431FB6\r
+       for <notmuch@notmuchmail.org>; Sat, 28 Mar 2015 07:36:45 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 2.438\r
+X-Spam-Level: **\r
+X-Spam-Status: No, score=2.438 tagged_above=-999 required=5\r
+       tests=[DNS_FROM_AHBL_RHSBL=2.438] 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 VxFC1C+rWLk2 for <notmuch@notmuchmail.org>;\r
+       Sat, 28 Mar 2015 07:36:42 -0700 (PDT)\r
+Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net\r
+       [87.98.215.224])\r
+       (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 24F11431FAE\r
+       for <notmuch@notmuchmail.org>; Sat, 28 Mar 2015 07:36:42 -0700 (PDT)\r
+Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim\r
+       4.80) (envelope-from <david@tethera.net>)\r
+       id 1YbrpT-0004Uu-H7; Sat, 28 Mar 2015 14:35:15 +0000\r
+Received: (nullmailer pid 24498 invoked by uid 1000); Sat, 28 Mar 2015\r
+       14:35:02 -0000\r
+From: David Bremner <david@tethera.net>\r
+To: Mark Walters <markwalters1009@gmail.com>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH] emacs: show: hide large text attachments by default\r
+In-Reply-To: <1427540939-10055-1-git-send-email-markwalters1009@gmail.com>\r
+References: <1427540939-10055-1-git-send-email-markwalters1009@gmail.com>\r
+User-Agent: Notmuch/0.19+86~gbed8b67 (http://notmuchmail.org) Emacs/24.4.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Sat, 28 Mar 2015 15:35:02 +0100\r
+Message-ID: <87zj6xp4vd.fsf@maritornes.cs.unb.ca>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\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, 28 Mar 2015 14:36:45 -0000\r
+\r
+Mark Walters <markwalters1009@gmail.com> writes:\r
+\r
+> notmuch-show can be slow displaying large attachments so hide them by\r
+> default. The default maximum size is 10000 bytes/characters but it is\r
+> customizable.\r
+>\r
+> Note that notmuch-show-insert-bodypart is also called from the reply\r
+> code so we need to be a little careful.\r
+\r
+I didn't look at the code yet, but I can confirm it makes a huge (about\r
+17 times faster) difference for the problematic thread I have been\r
+profiling.\r
+\r
+d\r