Re: Avoiding the "huge INBOX of death"
[notmuch-archives.git] / dc / a288d82fc0d366ad6333c716a24dba78c2b161
1 Return-Path: <flo@chaoflow.net>\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 754B9429E5B\r
6         for <notmuch@notmuchmail.org>; Mon, 23 Jan 2012 06:43:10 -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\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id QJLRKCTkba8g for <notmuch@notmuchmail.org>;\r
16         Mon, 23 Jan 2012 06:43:10 -0800 (PST)\r
17 Received: from tesla.chaoflow.net (tesla.chaoflow.net [188.40.54.22])\r
18         (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id D6AF8429E21\r
21         for <notmuch@notmuchmail.org>; Mon, 23 Jan 2012 06:43:09 -0800 (PST)\r
22 Received: from eve.chaoflow.net (host-188-174-211-69.customer.m-online.net\r
23         [188.174.211.69])\r
24         (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))\r
25         (No client certificate requested)\r
26         (Authenticated sender: flo@chaoflow.net)\r
27         by tesla.chaoflow.net (Postfix) with ESMTPSA id 7EC5912363;\r
28         Mon, 23 Jan 2012 15:43:08 +0100 (CET)\r
29 Received: by eve.chaoflow.net (Postfix, from userid 1000)\r
30         id 2098E44937; Mon, 23 Jan 2012 15:43:08 +0100 (CET)\r
31 From: Florian Friesdorf <flo@chaoflow.net>\r
32 To: Chris Gray <chrismgray@gmail.com>, David Edmondson <dme@dme.org>,\r
33         notmuch@notmuchmail.org\r
34 Subject: Re: [RFC][PATCH] emacs: Provide scaffolding so that the new `shr'\r
35         HTML renderer can run.\r
36 In-Reply-To: <8762hbkas3.fsf@gmail.com>\r
37 References: <1324309559-7993-1-git-send-email-dme@dme.org>\r
38         <8762hbkas3.fsf@gmail.com>\r
39 User-Agent: Notmuch/0.11 (http://notmuchmail.org) Emacs/24.0.92.1\r
40         (x86_64-unknown-linux-gnu)\r
41 Date: Mon, 23 Jan 2012 15:43:08 +0100\r
42 Message-ID: <8762g2qy2r.fsf@eve.chaoflow.net>\r
43 MIME-Version: 1.0\r
44 Content-Type: text/plain\r
45 X-Virus-Scanned: clamav-milter 0.97.3 at tesla\r
46 X-Virus-Status: Clean\r
47 X-BeenThere: notmuch@notmuchmail.org\r
48 X-Mailman-Version: 2.1.13\r
49 Precedence: list\r
50 List-Id: "Use and development of the notmuch mail system."\r
51         <notmuch.notmuchmail.org>\r
52 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
54 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
55 List-Post: <mailto:notmuch@notmuchmail.org>\r
56 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
57 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
58         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
59 X-List-Received-Date: Mon, 23 Jan 2012 14:43:10 -0000\r
60 \r
61 On Mon, 19 Dec 2011 23:38:36 -0700, Chris Gray <chrismgray@gmail.com> wrote:\r
62 > > +;; Nonsense required to have the new gnus `shr' HTML display code\r
63 > > +;; work.\r
64 > > +(defvar gnus-summary-buffer)\r
65 > > +(defvar gnus-inhibit-images)\r
66\r
67 > I believe that gnus-inhibit-images is defined in gnus-art.el.  Perhaps\r
68 > that file should just be require'd rather than having this workaround.\r
69 \r
70 With notmuch-0.11 (require 'gnus-art') "fixes" the void\r
71 gnus-inhibit-images error.\r
72 \r
73 > > +(if (not (fboundp 'gnus-blocked-images))\r
74 > > +    (defun gnus-blocked-images () nil))\r
75 > > +\r
76 > >  (defun notmuch-show-mm-display-part-inline (msg part nth content-type)\r
77 > >    "Use the mm-decode/mm-view functions to display a part in the\r
78 > >  current buffer, if possible."\r
79 > > @@ -331,7 +338,12 @@ current buffer, if possible."\r
80 > >         (let ((content (notmuch-show-get-bodypart-content msg part nth)))\r
81 > >           (insert content)\r
82 > >           (set-buffer display-buffer)\r
83 > > -         (mm-display-part handle)\r
84 > > +\r
85 > > +         ;; Nonsense required to have the new gnus `shr' HTML\r
86 > > +         ;; display code work.\r
87 > > +         (let ((gnus-inhibit-images nil))\r
88 > > +           (makunbound 'gnus-summary-buffer) ; Blech.\r
89\r
90 > This is working around a bug in gnus.  I think the better solution would\r
91 > be for gnus to fix the bug.  The following patch against gnus works for\r
92 > me.  (I have tried submitting it to the gnus bug list, but have not been\r
93 > able to check if it got through.)\r
94 \r
95 emacs git master has a fix for that, so you seem to have got through.\r
96 \r
97 -- \r
98 Florian Friesdorf <flo@chaoflow.net>\r
99   GPG FPR: 7A13 5EEE 1421 9FC2 108D  BAAF 38F8 99A3 0C45 F083\r
100 Jabber/XMPP: flo@chaoflow.net\r
101 IRC: chaoflow on freenode,ircnet,blafasel,OFTC\r