6.0.0-beta1
7/9/25

[#9099] HTML multipart/alternative should be a pref or mime_driver conf
Summary HTML multipart/alternative should be a pref or mime_driver conf
Queue IMP
Queue Version Git master
Type Enhancement
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester leandro.damascena (at) gmail (dot) com
Created 06/17/2010 (5501 days ago)
Due
Updated 06/28/2010 (5490 days ago)
Assigned
Resolved 06/28/2010 (5490 days ago)
Milestone
Patch No

History
06/28/2010 08:51:08 PM leandro (dot) damascena (at) gmail (dot) com Comment #4 Reply to this comment
I will update all horde packages next week and test this. Thank you.
06/28/2010 08:32:25 PM Michael Slusarz Comment #3
Assigned to Michael Slusarz
State ⇒ Resolved
Reply to this comment
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.
06/17/2010 12:15:44 AM leandro (dot) damascena (at) gmail (dot) com Comment #1
Priority ⇒ 1. Low
Patch ⇒ No
Milestone ⇒
Queue ⇒ IMP
Summary ⇒ HTML multipart/alternative should be a pref or mime_driver conf
Type ⇒ Enhancement
State ⇒ New
Reply to this comment
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 "trouble" in networks where the server can't access internet 
(outgoing port 80) ... Now I'm working at a company where we have this 
problem, the webserver can't access internet...

Analyzing the code of IMP and trying to find a solution I've 
identified the following item:

"./imp/lib/Compose.php" Line 1081
if (empty($options['nofinal'])) {
        /* Any image links will be downloaded and appended to the
          * message body. */
          $textpart->addPart($this->_convertToMultipartRelated($htmlBody));
} else {
          $textpart->addPart($htmlBody);
}


As my server can't access internet and don't have a proxy server, IMP 
always returns "connect timed out!" when try to get images and doesn't 
send the message.

I propose that this be done by conf file, for example:

if ($conf['compose']['usemultipart']) {
        /* Any image links will be downloaded and appended to the
          * message body. */
         $textpart->addPart($this->_convertToMultipartRelated($htmlBody));
} else {
        $textpart->addPart($htmlBody);
}

Sorry if this already exists in IMP, I couldn't find and I'm sure that 
it is a good discussion.

Saved Queries