Summary | Download text attachments have the line breaks broken |
Queue | IMP |
Queue Version | HEAD |
Type | Enhancement |
State | Rejected |
Priority | 1. Low |
Owners | |
Requester | scalero (at) ddol (dot) es |
Created | 09/21/2006 (6924 days ago) |
Due | 11/30/1999 (9411 days ago) |
Updated | 02/05/2007 (6787 days ago) |
Assigned | 11/05/2006 (6879 days ago) |
Resolved | 02/05/2007 (6787 days ago) |
Milestone | |
Patch | No |
State ⇒ Rejected
Due ⇒ 06/30/2000
attached .eml file.
Taken from Michael Slusarz
Due ⇒ 07/31/2006
State ⇒ Accepted
Priority ⇒ 1. Low
Due ⇒ 08/31/2006
view.php that will automatically convert linebreak characters when
downloading, for text/* parts only, based on the OS obtained from the
remote browser?
reinforces that this is not an imp issue.
format you lose the line break characters unless you specifically
encode them. And you don't encode these line break characters unless
the browser specifically informs IMP we are dealing with binary data.
That being said, notepad is terrible and is probably the only editor
out there that can not handle the different line breaks.
And that being said... (to other dev's): do we want to add code to
view.php that will automatically convert linebreak characters when
downloading, for text/* parts only, based on the OS obtained from the
remote browser?
New Attachment: Testfile.txt
New Attachment: Test of plaintext attached file.eml
of download this attached file.
Greetings.
State ⇒ Feedback
the PDF files.
Greetings.
Sebastián Calero.
State ⇒ Assigned
Priority ⇒ 1. Low
State ⇒ Unconfirmed
Queue ⇒ IMP
Summary ⇒ Download text attachments have the line breaks broken
Type ⇒ Bug
Due ⇒ 09/21/2006
'Download ...' and save it to disk. When I double click the text file
and is opened again with notepad the line breaks are broken. I think
the original <CR><LF> is now <LF> only.
The follow change in the file 'horde/imp/view.php' solves this:
case 'download_attach':
case 'download_render':
switch ($actionID) {
case 'download_attach':
/* Make sure we get the entire contents of the part. */
$mime = $contents->getDecodedMIMEPart($id, true);
-- $body = $mime->getContents();
++ $body = $mime->getCanonicalContents();
$type = $mime->getType(true);
break;
Can this change cause some problem?
Greetings.
Sebastián Calero.