[horde] Outlook with horde3

Patrick Boutilier boutilpj at ednet.ns.ca
Fri Mar 16 00:31:33 UTC 2007


samer khalil wrote:
> Hi,
> 
> I am using horde 3.1.3 with IMP 4.1.3
> 
> Here is a strange thing with microsoft oulook:
> Whenever i forward a multipat or an HTML message from Horde3, outlook does
> not show the Part added by Horde3.
> here's an example:



I noticed the CVS version of IMP seems to forward everything as 
"message/rfc822" so I came up with this hack for IMP 4.1.x :


--- horde/imp/lib/Compose.php.orig      2006-08-13 23:46:13.000000000 -0300
+++ horde/imp/lib/Compose.php   2007-03-09 09:37:32.000000000 -0400
@@ -545,6 +545,11 @@
              $type = $analyzetype;
          }

+       // Hack for Outlook
+       if ($type == 'multipart/alternative') {
+               $type = 'message/rfc822';
+       }
+
          $part->setType($type);

          /* Set the size of the Part explicitly since we delete the 
contents












> 
> I- Message sent from Outlook:
> 
> MIME-Version: 1.0
> Content-Type: multipart/alternative;
> 	boundary="----=_NextPart_000_00A7_01C7670F.7A2899C0"
> X-Mailer: Microsoft Office Outlook 12.0
> 
> [...]
> 
> This is a multipart message in MIME format.
> 
> ------=_NextPart_000_00A7_01C7670F.7A2899C0
> Content-Type: text/plain;
> 	charset="us-ascii"
> Content-Transfer-Encoding: 7bit
> 
> Test1
> 
> ------=_NextPart_000_00A7_01C7670F.7A2899C0
> Content-Type: text/html;
> 	charset="us-ascii"
> Content-Transfer-Encoding: quoted-printable
> 
> [...]
> 
> ------=_NextPart_000_00A7_01C7670F.7A2899C0--
> 
> 
> II- The same message when forwarded from Horde3:
> 
> 
> Subject: Fwd: 1
> MIME-Version: 1.0
> Content-Type: multipart/mixed;
> 	boundary="=_4znfv73pg4o4"
> Content-Transfer-Encoding: 7bit
> User-Agent: Internet Messaging Program (IMP) H3 (4.1.3)
> X-AUBnet-Receipt: nemo.aub.edu.lb at 2007-03-15 14:48:00
> X-AUBnet-Osender: samerk at aub.edu.lb
> X-AUB-LOCAL-DELIVERY: 2007-03-15 14:48:00
> 
> This message is in MIME format.
> 
> --=_4znfv73pg4o4
> Content-Type: text/plain;
> 	charset=ISO-8859-1;
> 	DelSp="Yes";
> 	format="flowed"
> Content-Disposition: inline
> Content-Transfer-Encoding: 7bit
> 
> TEST2
> 
> ----- Forwarded message from samerk at aub.edu.lb -----
>      Date: Thu, 15 Mar 2007 14:37:37 +0200
>      From: Samer Khalil <samerk at aub.edu.lb>
> Reply-To: Samer Khalil <samerk at aub.edu.lb>
>   Subject: 1
>        To: samerk at aub.edu.lb
> 
> Test1
> 
> ----- End forwarded message -----
> 
> 
> Samer Khalil
> 
> ----------------------------------------------------------------
> 
> 
> --=_4znfv73pg4o4
> 
> 
> Content-Type: multipart/alternative;
> 	boundary="----=_NextPart_000_00A7_01C7670F.7A2899C0";
> 	name=""
> Content-Transfer-Encoding: 7bit
> 
> This message is in MIME format.
> 
> ------=_NextPart_000_00A7_01C7670F.7A2899C0
> Content-Type: text/plain;
> 	charset=ISO-8859-1
> Content-Disposition: inline
> Content-Transfer-Encoding: 7bit
> 
> Test1
> 
> 
> ------=_NextPart_000_00A7_01C7670F.7A2899C0
> Content-Type: text/html;
> 	charset=ISO-8859-1
> Content-Disposition: inline
> Content-Transfer-Encoding: quoted-printable
> 
> <html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
> xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
> xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
> xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
> xmlns=3D"http://www.w3.org/TR/REC-html40">
> 
> <head>
> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
> charset=3Dus-ascii">
> 
> [...]
> 
> </div>
> 
> </body>
> 
> </html>
> 
> ------=_NextPart_000_00A7_01C7670F.7A2899C0--
> 
> --=_4znfv73pg4o4--
> 
> 
> 
> The part highlighted in red does not show under outlook.
> It's like outlook is not considering the Boundary set by horde3
> "-=_4znfv73pg4o4-" and is still taking the original boundary set by outlook
> 
> boundary="----=_NextPart_000_00A7_01C7670F.7A2899C0";
> 
> 
> To test what am talking about, just send an email from outlook in HTML
> format, open it from Horde3 and  forward it (add some text to the body).
> Open the forwarded message from oultlook. The added text will not display on
> outlook.
> 
> Has anyone faced that before? or am i missing some mime settings?
> 
> Thanks,
> Samer



More information about the horde mailing list