<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Global list of html_image_replacement</title> 
  <pubDate>Fri, 10 Apr 2026 09:21:06 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/9129</link> 
  <atom:link rel="self" type="application/rss+xml" title="Global list of html_image_replacement" href="https://bugs.horde.org/ticket/9129/rss" /> 
  <description>Global list of html_image_replacement</description> 
 
   
   
  <item> 
   <title>Every time when a new user comes in my system I send a welco</title> 
   <description>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 &quot;Show images&quot;... I think that IMP might be able to read a global conf file of &quot;allow emails&quot; 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-&gt;_params[&#039;contents&#039;]-&gt;getHeaderOb();
$fromshowimage = $headersshowimage-&gt;getValue(&#039;from&#039;);

if (!in_array($fromshowimage,$_GLOBAL[&#039;allowemails&#039;]))
{
if ($inline &amp;&amp;
            $GLOBALS[&#039;prefs&#039;]-&gt;getValue(&#039;html_image_replacement&#039;) &amp;&amp;
            preg_match($this-&gt;_img_regex, $this-&gt;_mimepart-&gt;getContents()) &amp;&amp;
            (!$GLOBALS[&#039;prefs&#039;]-&gt;getValue(&#039;html_image_addrbook&#039;) ||
             !$this-&gt;_inAddressBook())) {
            $data = preg_replace_callback($this-&gt;_img_regex, array($this, &#039;_blockImages&#039;), $data);

            $status[] = array(
                &#039;icon&#039; =&gt; Horde::img(&#039;mime/image.png&#039;),
                &#039;text&#039; =&gt; array(
                    _(&quot;Images have been blocked to protect your privacy.&quot;),
                    Horde::link(&#039;#&#039;, &#039;&#039;, &#039;unblockImageLink&#039;) . _(&quot;Show Images?&quot;) . &#039;&lt;/a&gt;&#039;
                )
            );
        }
}
</description> 
   <pubDate>Thu, 08 Jul 2010 03:49:05 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9129#t59346</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Request #912</title> 
   <description>Changes have been made in Git for this ticket:

Request #9129: Allow admin to define list of safe e-mail addresses that will not experience HTML image blocking

http://git.horde.org/diff.php/imp/config/mime_drivers.php.dist?rt=horde-git&amp;r1=0106a25421134e74ab8cfc514492077d22c9dfc4&amp;r2=0d3074deac715da0270637b4398536f6032e7024
http://git.horde.org/diff.php/imp/docs/CHANGES?rt=horde-git&amp;r1=5a820898cfc8b88f235ae52cbc1de20081e04b52&amp;r2=0d3074deac715da0270637b4398536f6032e7024
http://git.horde.org/diff.php/imp/lib/Mime/Viewer/Html.php?rt=horde-git&amp;r1=a6d02a936008e877e0a4d5f615f5349709005451&amp;r2=0d3074deac715da0270637b4398536f6032e7024</description> 
   <pubDate>Fri, 09 Jul 2010 05:53:06 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9129#t59368</link> 
  </item> 
   
  <item> 
   <title>Implemented via a mime_drivers.php parameter.</title> 
   <description>Implemented via a mime_drivers.php parameter.</description> 
   <pubDate>Fri, 09 Jul 2010 05:54:12 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9129#t59369</link> 
  </item> 
   
  <item> 
   <title>&gt; Implemented via a mime_drivers.php parameter.

Thank you</title> 
   <description>&gt; Implemented via a mime_drivers.php parameter.

Thank you man... I will update horde next week and try.</description> 
   <pubDate>Fri, 09 Jul 2010 06:05:14 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9129#t59370</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
