6.0.0-alpha10
5/14/25

[#14389] A new IMP preference to always allow to show images from configured domains
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

History
06/16/2016 02:53:54 PM Jan Schneider Comment #3
State ⇒ Feedback
Reply to this comment
I think this should be hook instead. I assume the main purpose is to 
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.
06/07/2016 02:03:15 PM albert (dot) solana (at) upcnet (dot) es Comment #2
New Attachment: 0001-New-IMP-Preference-image_replacement_domain.patch Download
Reply to this comment
I've attached the patch
06/07/2016 01:59:51 PM albert (dot) solana (at) upcnet (dot) es Comment #1
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
Reply to this comment
This is a suggestion of new IMP preference to always allow to show 
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.

Saved Queries