[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#52594: [PATCH] Add image whiltelist to shr.el
From: |
LdBeth |
Subject: |
bug#52594: [PATCH] Add image whiltelist to shr.el |
Date: |
Sat, 18 Dec 2021 16:22:49 +0800 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (Gojō) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.2 (x86_64-apple-darwin18.7.0) MULE/6.0 (HANACHIRUSATO) |
shr.el has already a blacklist feature via `shr-blocked-images'
variable. However in the setting of using shr as an email pager to
display HTML contents, it is much more useful to have a "whitelist"
feature.
Summary of changes:
Added variable `shr-safe-images', nil means all images are
allowed. This can be overriden by setting existed `shr-blocked-images'.
Added subst function `shr-image-is-blocked'.
--
LDB
shr_whitelist.patch
Description: Text document
- bug#52594: [PATCH] Add image whiltelist to shr.el,
LdBeth <=