<?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>Save message as message/rfc822 (.eml) (one-line patch)</title> 
  <pubDate>Fri, 10 Apr 2026 13:09:17 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/922</link> 
  <atom:link rel="self" type="application/rss+xml" title="Save message as message/rfc822 (.eml) (one-line patch)" href="https://bugs.horde.org/ticket/922/rss" /> 
  <description>Save message as message/rfc822 (.eml) (one-line patch)</description> 
 
   
   
  <item> 
   <title>My users want to save messages in a form that can easily be </title> 
   <description>My users want to save messages in a form that can easily be open from Windows, but now it is saved as text with no CRs, so doubleclicking it opens it with notepad, and what the user see is a very garbled thing because of the pure \n line terminations.



I agree that CRs must be removed, but I do not agree about the MIME type that is used, so I modified view.php to save as message/rfc822 with extension .eml . This way both IE and Firefox save the message as a .eml file, that can later be duobleclicked and seen with Outlook Express.



It is a very trivial one-liner:



*** view.php.orig       2004-12-01 09:15:16.000000000 +0100

--- view.php    2004-12-01 09:28:19.000000000 +0100

***************

*** 111,117 ****

       $body .= imap_body($imp[&#039;stream&#039;], $index, FT_UID);

       $body  = str_replace(&quot;\r\n&quot;, &quot;\n&quot;, $body);



!      IMP_Browser::downloadHeaders($name, null, false, strlen($body));

       echo $body;

       exit;

  }

--- 111,117 ----

       $body .= imap_body($imp[&#039;stream&#039;], $index, FT_UID);

       $body  = str_replace(&quot;\r\n&quot;, &quot;\n&quot;, $body);



!      IMP_Browser::downloadHeaders($name.&#039;.eml&#039;, &#039;message/rfc822&#039;, false, strlen($body));

       echo $body;

       exit;

  }

</description> 
   <pubDate>Wed, 01 Dec 2004 08:48:52 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/922#t3467</link> 
  </item> 
   
  <item> 
   <title>We already had the .eml in HEAD, and I just added the mime t</title> 
   <description>We already had the .eml in HEAD, and I just added the mime type. It&#039;ll be in IMP 4.0; enhancements aren&#039;t being made for IMP 3.x at this point.</description> 
   <pubDate>Wed, 01 Dec 2004 20:09:30 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/922#t3485</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
