6.0.0-beta6
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
4/10/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#922] Save message as message/rfc822 (.eml) (one-line patch)
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ . ..__ .___ | \| |[__)[__ |__/|___\__|[__)[___
Comment
> 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['stream'], $index, FT_UID); > > $body = str_replace("\r\n", "\n", $body); > > > > ! IMP_Browser::downloadHeaders($name, null, false, strlen($body)); > > echo $body; > > exit; > > } > > --- 111,117 ---- > > $body .= imap_body($imp['stream'], $index, FT_UID); > > $body = str_replace("\r\n", "\n", $body); > > > > ! IMP_Browser::downloadHeaders($name.'.eml', 'message/rfc822', > false, strlen($body)); > > echo $body; > > exit; > > } > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers