<?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>HTML multipart/alternative should be a pref or mime_driver conf</title> 
  <pubDate>Fri, 10 Apr 2026 02:41:22 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/9099</link> 
  <atom:link rel="self" type="application/rss+xml" title="HTML multipart/alternative should be a pref or mime_driver conf" href="https://bugs.horde.org/ticket/9099/rss" /> 
  <description>HTML multipart/alternative should be a pref or mime_driver conf</description> 
 
   
   
  <item> 
   <title>This is a delicated issue, but I think this is very importan</title> 
   <description>This is a delicated issue, but I think this is very important for IMP.. I will try to explain using my terrible english (lol)..

The IMP uses by default multipart/alternative for images and this creates a &quot;trouble&quot; in networks where the server can&#039;t access internet (outgoing port 80) ... Now I&#039;m working at a company where we have this problem, the webserver can&#039;t access internet...

Analyzing the code of IMP and trying to find a solution I&#039;ve identified the following item: 

&quot;./imp/lib/Compose.php&quot; Line 1081
if (empty($options[&#039;nofinal&#039;])) {
	/* Any image links will be downloaded and appended to the
         * message body. */
         $textpart-&gt;addPart($this-&gt;_convertToMultipartRelated($htmlBody));
} else {
         $textpart-&gt;addPart($htmlBody);
}


As my server can&#039;t access internet and don&#039;t have a proxy server, IMP always returns &quot;connect timed out!&quot; when try to get images and doesn&#039;t send the message. 

I propose that this be done by conf file, for example: 

if ($conf[&#039;compose&#039;][&#039;usemultipart&#039;]) {
	/* Any image links will be downloaded and appended to the
         * message body. */
        $textpart-&gt;addPart($this-&gt;_convertToMultipartRelated($htmlBody));
} else {
	$textpart-&gt;addPart($htmlBody);
}

Sorry if this already exists in IMP, I couldn&#039;t find and I&#039;m sure that it is a good discussion.
</description> 
   <pubDate>Thu, 17 Jun 2010 00:15:44 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9099#t59172</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

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

Request #9099: Add config option to disable multipart/related conversions

http://git.horde.org/diff.php/imp/config/conf.xml?rt=horde-git&amp;r1=f92994a77d09b7d2badebcf5d55404a74820b7ca&amp;r2=d2f9d03d6c60cd28c6f841cd251a8ac7415a6621
http://git.horde.org/diff.php/imp/docs/CHANGES?rt=horde-git&amp;r1=f92994a77d09b7d2badebcf5d55404a74820b7ca&amp;r2=d2f9d03d6c60cd28c6f841cd251a8ac7415a6621
http://git.horde.org/diff.php/imp/lib/Compose.php?rt=horde-git&amp;r1=01b53c377117e903316d321159f6a46e40b2c1cd&amp;r2=d2f9d03d6c60cd28c6f841cd251a8ac7415a6621</description> 
   <pubDate>Mon, 28 Jun 2010 20:31:26 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9099#t59241</link> 
  </item> 
   
  <item> 
   <title>Makes sense.  Added config option to IMP 5.  Also, if error </title> 
   <description>Makes sense.  Added config option to IMP 5.  Also, if error occurs during the download of data, fallback to sending the message with links only.</description> 
   <pubDate>Mon, 28 Jun 2010 20:32:25 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9099#t59242</link> 
  </item> 
   
  <item> 
   <title>I will update all horde packages next week and test this. Th</title> 
   <description>I will update all horde packages next week and test this. Thank you.</description> 
   <pubDate>Mon, 28 Jun 2010 20:51:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9099#t59246</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
