From 0308b4d2ed381efde3a0b88af57271abbd212136 Mon Sep 17 00:00:00 2001 From: David Mazieres Date: Thu, 30 Apr 2015 12:42:38 +1700 Subject: [PATCH] Re: How do I prevent notmuch-show in Emacs from automatically following links in emails? --- 31/6e8b6f96823fcc2451c5c4101d7e70368cd8bc | 82 +++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 31/6e8b6f96823fcc2451c5c4101d7e70368cd8bc diff --git a/31/6e8b6f96823fcc2451c5c4101d7e70368cd8bc b/31/6e8b6f96823fcc2451c5c4101d7e70368cd8bc new file mode 100644 index 000000000..5b8054496 --- /dev/null +++ b/31/6e8b6f96823fcc2451c5c4101d7e70368cd8bc @@ -0,0 +1,82 @@ +Return-Path: + +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 050966DE031B + for ; Wed, 29 Apr 2015 13:10:51 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -1.521 +X-Spam-Level: +X-Spam-Status: No, score=-1.521 tagged_above=-999 required=5 tests=[AWL=1.330, + RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.55, SPF_PASS=-0.001] + autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id 3ULiY_P6WvZj for ; + Wed, 29 Apr 2015 13:10:49 -0700 (PDT) +X-Greylist: delayed 1685 seconds by postgrey-1.35 at arlo; + Wed, 29 Apr 2015 13:10:48 PDT +Received: from market.scs.stanford.edu (market.scs.stanford.edu [171.66.3.10]) + by arlo.cworth.org (Postfix) with ESMTPS id D2FA26DE0298 + for ; Wed, 29 Apr 2015 13:10:48 -0700 (PDT) +Received: from market.scs.stanford.edu (localhost.scs.stanford.edu + [127.0.0.1]) by market.scs.stanford.edu (8.14.7/8.14.7) with ESMTP id + t3TJgdCu008605; Wed, 29 Apr 2015 12:42:39 -0700 (PDT) +Received: (from dm@localhost) + by market.scs.stanford.edu (8.14.7/8.14.7/Submit) id t3TJgc9w023327; + Wed, 29 Apr 2015 12:42:38 -0700 (PDT) +X-Authentication-Warning: market.scs.stanford.edu: dm set sender to + return-t4kjmviai6ttg83bqrjqh8smve@ta.scs.stanford.edu using -f +From: David Mazieres +To: Philip , notmuch@notmuchmail.org +Subject: Re: How do I prevent notmuch-show in Emacs from automatically + following links in emails? +In-Reply-To: + <1430302199.3986971.260085241.307447C7@webmail.messagingengine.com> +References: + <1430302199.3986971.260085241.307447C7@webmail.messagingengine.com> +Reply-To: David Mazieres expires 2015-07-28 PDT + +Date: Wed, 29 Apr 2015 12:42:38 -0700 +Message-ID: <87383in2kx.fsf@ta.scs.stanford.edu> +MIME-Version: 1.0 +Content-Type: text/plain +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.18 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Wed, 29 Apr 2015 20:10:51 -0000 + +Philip writes: + +> Hi, +> +> When I open emails in the notmuch-show mode on Emacs, it automatically +> follows links which are present in the email. For instance, it +> connects to various tracking objects included in the email. How can I +> prevent it from doing this automatically all the time? Is there a +> setting by which notmuch-show will not follow links in emails? + +If you just want something quick and dirty, put the following in your +.emacs file: + +(setq gnus-inhibit-images t) + +I do that, and then in the very rare occasions where I want to see all +the images, I just open the message in my browser by typing ". v" on the +html part button. + +I'm sure the patch Tomi linked to is much better, but this works with +unmodified notmuch. + +David -- 2.26.2