6.0.0-git
2018-12-16

[#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 2016-06-07 (922 days ago)
Due
Updated 2016-06-16 (913 days ago)
Assigned
Resolved
Milestone
Patch Yes

History
2016-06-16 14:53:54 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.
2016-06-07 14:03:15 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
2016-06-07 13:59:51 albert (dot) solana (at) upcnet (dot) es Comment #1
Type ⇒ Enhancement
Milestone ⇒
Queue ⇒ IMP
Summary ⇒ A new IMP preference to always allow to show images from configured domains
Priority ⇒ 1. Low
State ⇒ New
Patch ⇒ Yes
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