6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
11/8/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#9129] Global list of html_image_replacement
*
Your Email Address
*
Spam protection
Enter the letters below:
. .._..__ . ..___. |_/ | [__)|_/ _/ | \_|_[__)| \./__.
Comment
> Every time when a new user comes in my system I send a welcome email > with remote images (like promotional emails). It generates a problem > due to all the images are blocked and user needs to click in "Show > images"... I think that IMP might be able to read a global conf file > of "allow emails" to always display remote images... I know the user > can do it using html_image_addrbook, but in my point of view this > list is a good global alternative to sysadm > > Following is a stupid example of implementation.. > > In the file: imp/lib/Mime/Viewer/Html.php (line 247) > > $headersshowimage = $this->_params['contents']->getHeaderOb(); > $fromshowimage = $headersshowimage->getValue('from'); > > if (!in_array($fromshowimage,$_GLOBAL['allowemails'])) > { > if ($inline && > $GLOBALS['prefs']->getValue('html_image_replacement') && > preg_match($this->_img_regex, $this->_mimepart->getContents()) && > (!$GLOBALS['prefs']->getValue('html_image_addrbook') || > !$this->_inAddressBook())) { > $data = preg_replace_callback($this->_img_regex, > array($this, '_blockImages'), $data); > > $status[] = array( > 'icon' => Horde::img('mime/image.png'), > 'text' => array( > _("Images have been blocked to protect your privacy."), > Horde::link('#', '', 'unblockImageLink') . > _("Show Images?") . '</a>' > ) > ); > } > } >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers