1 Return-Path: <jinwoo68@gmail.com>
\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 C87AA431FC9
\r
6 for <notmuch@notmuchmail.org>; Thu, 29 Jan 2015 09:31:15 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=2.639 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 DNS_FROM_AHBL_RHSBL=2.438, FREEMAIL_ENVFROM_END_DIGIT=1,
\r
14 FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
15 Received: from olra.theworths.org ([127.0.0.1])
\r
16 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
17 with ESMTP id AjrF4HlOC0Pj for <notmuch@notmuchmail.org>;
\r
18 Thu, 29 Jan 2015 09:31:12 -0800 (PST)
\r
19 Received: from mail-pa0-f51.google.com (mail-pa0-f51.google.com
\r
20 [209.85.220.51]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
21 (No client certificate requested)
\r
22 by olra.theworths.org (Postfix) with ESMTPS id 36C27431FC4
\r
23 for <notmuch@notmuchmail.org>; Thu, 29 Jan 2015 09:31:12 -0800 (PST)
\r
24 Received: by mail-pa0-f51.google.com with SMTP id fb1so41640446pad.10
\r
25 for <notmuch@notmuchmail.org>; Thu, 29 Jan 2015 09:31:10 -0800 (PST)
\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
\r
27 h=from:to:subject:in-reply-to:references:user-agent:date:message-id
\r
28 :mime-version:content-type;
\r
29 bh=SQCWQA4M1BjlxIXjaa5k7cIySCYn/eKhXs+JWs5N6TY=;
\r
30 b=VBaMZTruIc29S4baYDMsIQH+zuDlVQxZPlDKXATYSmZYVG1YLnPwpJ//NSy0m2PbYy
\r
31 90ZBwzXHQBfiwtRwXiSQgQXZ4M7lrF77MsSls8IZPc5NBJz2nNmQo+KmMyug/KcpwdZh
\r
32 RCyjJleHZKR9MQOycabyUb9cTcnAcNTOf7S/k/vhmV2HTFPoHujVxMxkMhOem7O8KfmX
\r
33 GZJKxrrMKIzgW1Jt7RZhOz37pxlHx8VcKyhAShxXGo+FQva33YcRyox+SM65ITOz0obP
\r
34 K4dqE9NOXKjsxzcBz5CMEgkt7jccJSdEN0hOoLu9SVuVN3ig/+iu1gQkcNaW3Tb4f0V8
\r
36 X-Received: by 10.70.37.104 with SMTP id x8mr2142891pdj.119.1422552670434;
\r
37 Thu, 29 Jan 2015 09:31:10 -0800 (PST)
\r
38 Received: from localhost ([2601:9:5d00:15b9:9997:a9cd:4a6a:40f0])
\r
39 by mx.google.com with ESMTPSA id bq7sm8354992pdb.50.2015.01.29.09.31.09
\r
40 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
\r
41 Thu, 29 Jan 2015 09:31:09 -0800 (PST)
\r
42 From: Jinwoo Lee <jinwoo68@gmail.com>
\r
43 To: Tomi Ollila <tomi.ollila@iki.fi>, David Bremner <david@tethera.net>,
\r
44 notmuch@notmuchmail.org
\r
45 Subject: Re: [PATCH] Add a defcustom for whether to block remote images by
\r
47 In-Reply-To: <m2sieut13t.fsf@guru.guru-group.fi>
\r
48 References: <1422495572-40384-1-git-send-email-jinwoo68@gmail.com>
\r
49 <87pp9yjbhw.fsf@maritornes.cs.unb.ca>
\r
50 <m2sieut13t.fsf@guru.guru-group.fi>
\r
51 User-Agent: Notmuch/0.18.1 (http://notmuchmail.org) Emacs/24.4.1
\r
52 (x86_64-apple-darwin13.2.0)
\r
53 Date: Thu, 29 Jan 2015 09:31:10 -0800
\r
54 Message-ID: <yq65mw51h4td.fsf@jinwoo-macbookair.roam.corp.google.com>
\r
56 Content-Type: text/plain
\r
57 X-BeenThere: notmuch@notmuchmail.org
\r
58 X-Mailman-Version: 2.1.13
\r
60 List-Id: "Use and development of the notmuch mail system."
\r
61 <notmuch.notmuchmail.org>
\r
62 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
63 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
64 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
65 List-Post: <mailto:notmuch@notmuchmail.org>
\r
66 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
67 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
68 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
69 X-List-Received-Date: Thu, 29 Jan 2015 17:31:15 -0000
\r
71 On Thu, Jan 29, 2015 at 12:58 AM, Tomi Ollila <tomi.ollila@iki.fi> wrote:
\r
72 > On Thu, Jan 29 2015, David Bremner <david@tethera.net> wrote:
\r
74 >> Jinwoo Lee <jinwoo68@gmail.com> writes:
\r
76 >>> + (shr-blocked-images (if notmuch-show-block-remote-images
\r
78 >>> + shr-blocked-images)))
\r
79 >>> (shr-insert-document dom)
\r
82 >> Ideally such a customization would apply to all html renders. I think
\r
83 >> Tomi did some experiments with w3m and friends, I _think_ they respect
\r
84 >> gnus-blocked-images, but maybe Tomi can comment.
\r
86 > I did M-x debug-on-entry RET open-network-stream RET (or an equivalent of
\r
87 > t that in elisp, but the code I did is now lost & forgotten ;/
\r
89 > The docstring relevant to the renderers below it at the end of this email.
\r
91 > 'gnus-w3m respect gnus-blocked-images
\r
93 > I could not run 'w3m on that system... nor 'w3
\r
95 > There was no effect with 'w3m-standalone -- in this case I'd think it is up
\r
96 > to w3m binary to load external stuff or not. I presume the same is the
\r
97 > case with 'links, 'lynx, 'html2text and nil
\r
99 > So, to add to David's suggestion maybe just set both gnus-blocked-images
\r
100 > and shr-blocked-images to the value of
\r
101 > notmuch-show-text/html-blocked-images
\r
103 All right. I sent another patch that does this. Thanks, guys!
\r
110 > mm-text-html-renderer is a variable defined in `mm-decode.el'.
\r
114 > Render of HTML contents.
\r
115 > It is one of defined renderer types, or a rendering function.
\r
116 > The defined renderer types are:
\r
117 > `shr': use the built-in Gnus HTML renderer;
\r
118 > `gnus-w3m': use Gnus renderer based on w3m;
\r
119 > `w3m': use emacs-w3m;
\r
120 > `w3m-standalone': use plain w3m;
\r
121 > `links': use links;
\r
122 > `lynx': use lynx;
\r
123 > `w3': use Emacs/W3;
\r
124 > `html2text': use html2text;
\r
125 > nil : use external viewer (default web browser).
\r