Summary | A new IMP preference to always allow to show images from configured domains |
Queue | IMP |
Queue Version | Git master |
Type | Enhancement |
State | Feedback |
Priority | 1. Low |
Owners | |
Requester | albert.solana (at) upcnet (dot) es |
Created | 06/07/2016 (3263 days ago) |
Due | |
Updated | 06/16/2016 (3254 days ago) |
Assigned | |
Resolved | |
Milestone | |
Patch | Yes |
State ⇒ Feedback
allow all images from your own organization, or from the hosting
provider using Horde. As such it wouldn't be something that needs to
be configured per user.
New Attachment: 0001-New-IMP-Preference-image_replacement_domain.patch
Priority ⇒ 1. Low
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ IMP
Summary ⇒ A new IMP preference to always allow to show images from configured domains
Type ⇒ Enhancement
State ⇒ New
images from configured domains for all users.
It overrides "the Block images in messages unless they are
specifically requested to be loaded?" users preference just for the
choosen domains. It acts as a kind of global domains whitelist.
This new preference would be configured adding a new
'image_replacement_domain' IMP preference in prefs.local.php with the
choosen domain list, for instance:
$_prefs['image_replacement_domain']['value'] =
json_encode(array('domain1.com', 'domain2.com'));
Some code has to be added to these files:
imp/lib/Images.php
imp/lib/Prefs/Special/ImageReplacement.php
I've attached a patch with the code additions.