<?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>Doubled newlines forwarding to some MTAs including Gmail</title> 
  <pubDate>Fri, 10 Apr 2026 13:16:44 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/5541</link> 
  <atom:link rel="self" type="application/rss+xml" title="Doubled newlines forwarding to some MTAs including Gmail" href="https://bugs.horde.org/ticket/5541/rss" /> 
  <description>Doubled newlines forwarding to some MTAs including Gmail</description> 
 
   
   
  <item> 
   <title>When forwarding an email with attachments (like a PDF docume</title> 
   <description>When forwarding an email with attachments (like a PDF document) from IMP to a gmail account, the attachments don&#039;t show up as attachments but as text in the body of the message.



When forwarding the SAME email from Thunderbird (tested under Linux) to the same gmail account, the attachments properly show up as ATTACHMENTS, not in the email body.



Note: when looking at the email &quot;source&quot; from the gmail interface, there are extra newlines that show-up which might explain the behavior.</description> 
   <pubDate>Mon, 09 Jul 2007 19:20:29 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5541#t35042</link> 
  </item> 
   
  <item> 
   <title>I can reproduce this, though only when forwarding the whole </title> 
   <description>I can reproduce this, though only when forwarding the whole message, not if I just forward attachments.</description> 
   <pubDate>Tue, 10 Jul 2007 02:19:50 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5541#t35091</link> 
  </item> 
   
  <item> 
   <title>&gt; I can reproduce this, though only when forwarding the whol</title> 
   <description>&gt; I can reproduce this, though only when forwarding the whole message, 

&gt; not if I just forward attachments.



I have seen this same problem when forwarding an email from IMP and the recipient opens it in Outlook.



When selecting &quot;Forward attachments only&quot;, the email is received properly, but the entire message text is there, with the attachments.</description> 
   <pubDate>Mon, 23 Jul 2007 16:54:10 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5541#t35362</link> 
  </item> 
   
  <item> 
   <title>fwiw, I have never seen this.</title> 
   <description>fwiw, I have never seen this.</description> 
   <pubDate>Tue, 11 Sep 2007 06:23:18 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5541#t36813</link> 
  </item> 
   
  <item> 
   <title>One difference I&#039;m seeing between the forwarded message from</title> 
   <description>One difference I&#039;m seeing between the forwarded message from Horde and the one forwarded from Thunderbird is that Horde does not add the &quot;Content-Disposition: inline&quot; header to the RFC822 MIME Part.



I tried hacking the code to set the disposition, but it seem to ignore this.



Any pointer would be appreciated.</description> 
   <pubDate>Fri, 14 Sep 2007 16:15:24 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5541#t36910</link> 
  </item> 
   
  <item> 
   <title>OK, I found how to test removing/adding the headers I wanted</title> 
   <description>OK, I found how to test removing/adding the headers I wanted. Even with all the same Headers as with the email fwd by Thunderbird, GMail still can&#039;t crok these attachments.



 I also checked the line delimiters, and they look the same to me from both tests.



Anyone has some ideas of what could be wrong?</description> 
   <pubDate>Fri, 14 Sep 2007 17:07:54 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5541#t36911</link> 
  </item> 
   
  <item> 
   <title>OK, it turns out that even a simple email forwarded from Hor</title> 
   <description>OK, it turns out that even a simple email forwarded from Horde to gmail is not recognised correctly as a &quot;message/rfc822&quot;.



So we don&#039;t need to test this with attachments.</description> 
   <pubDate>Fri, 14 Sep 2007 20:56:35 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5541#t36916</link> 
  </item> 
   
  <item> 
   <title>&gt; OK, it turns out that even a simple email forwarded from H</title> 
   <description>&gt; OK, it turns out that even a simple email forwarded from Horde to 

&gt; gmail is not recognised correctly as a &quot;message/rfc822&quot;.



And again, this works perfectly fine here.  If I have a message with 4 images and I forward as message/rfc822 to gmail, I see a message with 4 images there.  If I forward a text message to gmail, I see the text message.



</description> 
   <pubDate>Tue, 18 Sep 2007 06:24:03 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5541#t36986</link> 
  </item> 
   
  <item> 
   <title>Here is the list/version of my PEAR packages:



INSTALLED P</title> 
   <description>Here is the list/version of my PEAR packages:



INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET:

=========================================

PACKAGE            VERSION STATE

Archive_Tar        1.3.2   stable

Auth_SASL          1.0.2   stable

Console_Getopt     1.2.3   stable

DB                 1.7.13  stable

Date               1.4.7   stable

File               1.3.0   stable

File_Gettext       0.4.0   beta

Fileinfo           1.0.4   stable

HTTP_Request       1.4.1   stable

I18N               0.8.6   beta

I18N_UnicodeString 0.2.1   beta

I18Nv2             0.11.4  beta

LZF                1.4     stable

Log                1.9.11  stable

MDB2               2.4.1   stable

MDB2_Driver_mysql  1.4.1   stable

Mail               1.1.14  stable

Mail_Mime          1.5.2   stable

Mail_mimeDecode    1.5.0   stable

Net_SMTP           1.2.10  stable

Net_Sieve          1.1.5   stable

Net_Socket         1.0.8   stable

Net_URL            1.0.15  stable

PEAR               1.6.2   stable

SOAP               0.11.0  beta

Structures_Graph   1.0.2   stable

</description> 
   <pubDate>Tue, 25 Sep 2007 13:34:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5541#t37075</link> 
  </item> 
   
  <item> 
   <title>We are using this files:



*IMAP:*

courier-imap-4.1.2(sec1</title> 
   <description>We are using this files:



*IMAP:*

courier-imap-4.1.2(sec1/sec7)



*lista PEAR:*

Package          Version  State

Archive_Tar          1.3.1    stable

Cache                    1.5.5RC4 beta

Console_Getopt    1.2      stable

Date                       1.4.7    stable

HTTP_Request      1.4.0    stable

Log                         1.9.10   stable

Net_FTP                  1.3.2    stable

Net_Socket             1.0.6    stable

Net_URL                 1.0.14   stable

PEAR                      1.4.11   stable

SOAP                      0.9.4    beta

Services_Weather  1.4.0    stable

Structures_Graph  1.0.2    stable

XML_Serializer       0.18.0   beta

XML_Util                 1.1.4    stable</description> 
   <pubDate>Thu, 27 Sep 2007 14:04:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5541#t37127</link> 
  </item> 
   
  <item> 
   <title>Marc, please try this patch:



http://cvs.horde.org/diff.ph</title> 
   <description>Marc, please try this patch:



http://cvs.horde.org/diff.php/framework/MIME/MIME/Headers.php?r1=1.58&amp;r2=1.59&amp;ty=u



(if you have the message you test with cached you&#039;ll need to clear caches)



What&#039;s going on as far as I can tell is that by the time the message gets to Gmail the newlines have been doubled. I&#039;ve fixed it for the headers, which mean the message should be recognized correctly, but it still seems to happen to text, and I don&#039;t want to randomly replace newlines in the body of rfc822 parts without knowing we&#039;re dealing with text.



Michael, if I&#039;m guessing correctly you may be using a different MTA (I&#039;m using postfix), so when you forward to Gmail things are slightly different. If this all makes sense to you I&#039;d appreciate your eyes on the patch I committed and thoughts on a more complete fix.</description> 
   <pubDate>Fri, 26 Oct 2007 03:16:48 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5541#t38078</link> 
  </item> 
   
  <item> 
   <title>Hi Chuck, 



   I think you&#039;re on the right track, but as y</title> 
   <description>Hi Chuck, 



   I think you&#039;re on the right track, but as you said, the Body still has the extra newlines.... which breaks any attachments you have.



I&#039;m also using Postfix.



Thanks.</description> 
   <pubDate>Fri, 26 Oct 2007 14:04:25 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5541#t38139</link> 
  </item> 
   
  <item> 
   <title>&gt; Michael, if I&#039;m guessing correctly you may be using a diff</title> 
   <description>&gt; Michael, if I&#039;m guessing correctly you may be using a different MTA 

&gt; (I&#039;m using postfix), so when you forward to Gmail things are slightly 

&gt; different. If this all makes sense to you I&#039;d appreciate your eyes on 

&gt; the patch I committed and thoughts on a more complete fix.



Nope, I use Postfix also.



I will take a further look at this later.</description> 
   <pubDate>Fri, 26 Oct 2007 16:07:06 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5541#t38143</link> 
  </item> 
   
  <item> 
   <title>Hi Chuck,

the attached patch fixes the whole problem for me</title> 
   <description>Hi Chuck,

the attached patch fixes the whole problem for me.



Thanks.



--marc</description> 
   <pubDate>Sat, 27 Oct 2007 03:27:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5541#t38165</link> 
  </item> 
   
  <item> 
   <title>I&#039;ll take a look; have you tested this with binary attachmen</title> 
   <description>I&#039;ll take a look; have you tested this with binary attachments and other things that might be mucked up by having their newlines changed? Also, does this replace what I committed, or is it in addition to it?</description> 
   <pubDate>Sun, 28 Oct 2007 02:04:04 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5541#t38189</link> 
  </item> 
   
  <item> 
   <title>I have tested with Image Attachment and tar.gz attachment: w</title> 
   <description>I have tested with Image Attachment and tar.gz attachment: works great! It is in ADDITION to the patch you provided. You fixed the headers, I fixed the &quot;content&quot; of the MIME message.



Cheers.</description> 
   <pubDate>Sun, 28 Oct 2007 02:19:54 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5541#t38190</link> 
  </item> 
   
  <item> 
   <title>Actually, only the preg_replace on the parent-&gt;toString() wa</title> 
   <description>Actually, only the preg_replace on the parent-&gt;toString() was needed (see patch attached)</description> 
   <pubDate>Sun, 28 Oct 2007 13:53:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5541#t38191</link> 
  </item> 
   
  <item> 
   <title>This works for me with a very complicated MIME message being</title> 
   <description>This works for me with a very complicated MIME message being forwarded (the forward, as rfc822, works in both IMP and on Gmail).



Michael, I&#039;m assigning this to you to make sure this won&#039;t cause horrid issues somewhere else, or to see if we can make it more efficient by not doing it for binary parts, etc.



Thanks Marc.</description> 
   <pubDate>Mon, 29 Oct 2007 00:26:45 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5541#t38204</link> 
  </item> 
   
  <item> 
   <title>For anyone else monitoring this bug, just note that the fixe</title> 
   <description>For anyone else monitoring this bug, just note that the fixes are all in the framework MIME package, not in IMP.</description> 
   <pubDate>Mon, 29 Oct 2007 00:27:16 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5541#t38207</link> 
  </item> 
   
  <item> 
   <title>OK, after the changes were moved from the MIME module to the</title> 
   <description>OK, after the changes were moved from the MIME module to the IMP module, I definitely get the FWD message twice in the attachment within the same email when I send it to Gmail. My Framework is up2date.



Have you tested this yourself, Chuck?</description> 
   <pubDate>Sat, 10 Nov 2007 03:15:59 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5541#t38523</link> 
  </item> 
   
  <item> 
   <title>I see what you mean, but it&#039;s unrelated, really - you&#039;re see</title> 
   <description>I see what you mean, but it&#039;s unrelated, really - you&#039;re seeing the text that was in the message body dialog after you clicked forward, and then the text from the message/rfc822 nested part.



I agree that when forwarding the entire message we should match the behavior of forward from the mailbox - the forwarded message is _just_ in the encapsulated attachment, not also in the body - so I&#039;ve made that change. Let me know if you have other questions, of course.</description> 
   <pubDate>Sat, 10 Nov 2007 03:56:15 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5541#t38526</link> 
  </item> 
   
  <item> 
   <title>Now you&#039;re talking! This is now working as expected.



Than</title> 
   <description>Now you&#039;re talking! This is now working as expected.



Thanks again, Chuck.</description> 
   <pubDate>Sat, 10 Nov 2007 04:13:07 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5541#t38534</link> 
  </item> 
   
  <item> 
   <title>Since DIMP is now working, I could verify that this is broke</title> 
   <description>Since DIMP is now working, I could verify that this is broken in DIMP... You&#039;ll need to apply the same patch to DIMP&#039;s compose I guess?</description> 
   <pubDate>Sat, 10 Nov 2007 04:17:55 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5541#t38535</link> 
  </item> 
   
  <item> 
   <title>&gt; Since DIMP is now working, I could verify that this is bro</title> 
   <description>&gt; Since DIMP is now working, I could verify that this is broken in 

&gt; DIMP... You&#039;ll need to apply the same patch to DIMP&#039;s compose I guess?



This was already fixed in DIMP several days ago.  However, there was a typo in this code that I just fixed a few minutes ago.</description> 
   <pubDate>Tue, 13 Nov 2007 02:20:14 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5541#t38595</link> 
  </item> 
   
  <item> 
   <title> The patch costs up to $70.63</title> 
   <description> The patch costs up to $70.63</description> 
   <pubDate>Thu, 13 Aug 2009 13:38:43 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5541#t55297</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
