From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id AJ0iMXwvHmGtegAAgWs5BA (envelope-from ) for ; Thu, 19 Aug 2021 12:16:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id uKX8LHwvHmEaGQAA1q6Kng (envelope-from ) for ; Thu, 19 Aug 2021 10:16:28 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7074F115A7 for ; Thu, 19 Aug 2021 12:16:28 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 5DC632021E; Thu, 19 Aug 2021 06:16:24 -0400 (EDT) Received: from wforward1-smtp.messagingengine.com (wforward1-smtp.messagingengine.com [64.147.123.30]) by mail.notmuchmail.org (Postfix) with ESMTPS id B4F67200A9 for ; Thu, 19 Aug 2021 06:16:21 -0400 (EDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailforward.west.internal (Postfix) with ESMTP id E72541AC027D; Thu, 19 Aug 2021 06:16:19 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 19 Aug 2021 06:16:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=of6wSJ nrQQarMfTJrjuILE1vIRccCz7gISAKK8SWU34=; b=ATBlapLc8GaToGCGGaoMfX x3qBwGWKW5uxAbbBMHesjSJPMJlv1TeEig96ywcHbAiRDsns+Tw8IUkp6zvzuZaX DWB0gW9sVb7ezM9iwAHUGzQtYBeE8HJlKW1gd9Ag0uFvG6+TpWTGpO/w1soF/bYy wPw7TttPQGpayMs4n4UUd6zm2oLwdXak2cYyjlxLenxUQKRG8oNSLfzkq7lIYLV1 Le0CoCyCCejVq1ucHX25xWODAChl3vdNJ7KzL59YQTfz6D+xngTQpkYmCf9qLyXh eip7yPQAx8vrE4ijDwpcuWCmgi+i+h0YI6xUCg6CU1DpL0zC4mkUtaObc+Q6lJ7A == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrleejgddvhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefvufgjfhfhfffkgggtsehttdertddttddtnecuhfhrohhmpeffrghvihguucfg ughmohhnughsohhnuceoughmvgesughmvgdrohhrgheqnecuggftrfgrthhtvghrnhephf ekgeeutddvgeffffetheejvdejieetgfefgfffudegffffgeduheegteegleeknecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepughmvgesughmvg drohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 19 Aug 2021 06:16:17 -0400 (EDT) Received: from localhost (disaster-area.hh.sledj.net [local]) by disaster-area.hh.sledj.net (OpenSMTPD) with ESMTPA id b469eff0; Thu, 19 Aug 2021 10:16:16 +0000 (UTC) To: Tomi Ollila , Jonathan Wilner , David Bremner , jao , notmuch@notmuchmail.org Subject: Re: [PATCH] emacs: honour notmuch-show-text/html-blocked-images in w3m messages In-Reply-To: References: <20210804000241.1053748-1-jao@gnu.org> <87wnp2vukc.fsf@tethera.net> From: David Edmondson Date: Thu, 19 Aug 2021 11:16:16 +0100 Message-ID: MIME-Version: 1.0 Message-ID-Hash: UJCIYK3QE4LRJ3GWDTQQJQLBRAQXXK53 X-Message-ID-Hash: UJCIYK3QE4LRJ3GWDTQQJQLBRAQXXK53 X-MailFrom: dme@dme.org X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0 CC: jao X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1629368188; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=7Lcna6JJmWGq6+2W/oKY+6DwLqiRntSgJgeOAZRYxBI=; b=kjRa1VcCQkOBIzQvIyEeCL7wfkavfSDwNChVv2+fNumrziQBHRrlG5U07/wxVwUqCZTpo0 x47wueHBd2rqNlqF+SWdFuizbdyyv1xG3BVobbV+bzcY03PnBWJTCLTuzlP11DqY2/iQwM gqiddlyfjnzslkByZEW9jfWOlFbwNa+0CftsW8q4W0UaSo5VNSq5EVWM9dG0Af8sY/GJN7 xfnvJ5Y6qF/Y1xmRDFJ+QbLpAgLxiBx8TlgpId9rpiJV2wlUr3xp7eR00qamibRv9WwKci iPKB47aZWeg0LbRZ+ZF1brGn9sdFf7kVL43WuG8bgNEu5KyOdTvhX8/Yxm5lGQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629368188; a=rsa-sha256; cv=none; b=M9Y4Ye/Zm8i0JHPRhyxROZjMlq3nw3aVl3aOdbPFYaXyq8sSfZXBB1yuIa/mtcS/Tlm+ed PGkE6a46eQKEfs4b4NrQbBV2wiZiLeqB5llfqI5SlTBc+PanQ5zCwq+r10cEPADHsajVQI CoPNU4Y+UW6OeEFcSTaB7gOpNUNY4KEIHDyJRWu2S0DDof5yyVEg6WI4EEgsUdd59pat7v TVnvNqb4VX6hoVIKHYNH7z3sGZ1U8z9AijtnhX1E7uACywnZeObfWF3i0o3KhKQa09c2kl obWc0z840iL5TTXxpk14LyY50WaM2U5nmLw4WvpAFPgYT75ZeP1UaQnhBypOMQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=messagingengine.com header.s=fm3 header.b=ATBlapLc; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 0.51 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=messagingengine.com header.s=fm3 header.b=ATBlapLc; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 7074F115A7 X-Spam-Score: 0.51 X-Migadu-Scanner: scn0.migadu.com X-TUID: 17dptdTrIC5l On Thursday, 2021-08-19 at 12:54:51 +03, Tomi Ollila wrote: > On Tue, Aug 17 2021, David Edmondson wrote: > >> On Tuesday, 2021-08-17 at 09:07:53 -07, Jonathan Wilner wrote: >> >>> Apologies in advance for thread-jacking this patch ! >>> >>> No matter what I try to do, I can't configure notmuch/emacs to show >>> any inline images. That's using any of the renderer options, from shr >>> to the various w3ms, other than html2text. I've set every possible >>> variable to allow things, to no avail. >>> >>> Using w3m under Emacs on the same machine pulls in local and network images fine. >>> >>> Does anyone either have this working as the default or even using a >>> toggle ("T") to enable images one message at time? >> >> I use (with shr): >> >> (defun dme:notmuch-show-refresh-show-images () >> "Refresh the current buffer with external images enabled." >> (interactive) >> (make-local-variable 'notmuch-show-text/html-blocked-images) >> (setq notmuch-show-text/html-blocked-images nil) > > How does let-bind differ with the above ? It would be fine. >> (notmuch-show-refresh-view)) >> (define-key notmuch-show-mode-map "I" 'dme:notmuch-show-refresh-show-images) >> > > Tomi > >>> >>> Thanks in advance, >>> >>> Jonathan >>> >>> David Bremner writes: >>> >>>> jao writes: >>>> >>>>> When mm-text-html-renderer is set to 'w3m, the variable playing the >>>>> role of a regular expression for blocked images is >>>>> w3m-ignored-image-url-regexp. We bind it when the renderer is not >>>>> 'shr. >>>>> --- >>>> applied to master >>>> _______________________________________________ >>>> notmuch mailing list -- notmuch@notmuchmail.org >>>> To unsubscribe send an email to notmuch-leave@notmuchmail.org >>> _______________________________________________ >>> notmuch mailing list -- notmuch@notmuchmail.org >>> To unsubscribe send an email to notmuch-leave@notmuchmail.org >> _______________________________________________ >> notmuch mailing list -- notmuch@notmuchmail.org >> To unsubscribe send an email to notmuch-leave@notmuchmail.org > _______________________________________________ > notmuch mailing list -- notmuch@notmuchmail.org > To unsubscribe send an email to notmuch-leave@notmuchmail.org