[imp] Problems opening attachments sent by imp 2.3.7 using Eudora

Kris von Mach dev@swishmail.com
Wed, 26 Sep 2001 16:07:56 -0400


Yes, I actually did a brand new checkout of horde HEAD and imp HEAD.

If I comment those two lines from /lib/MIME/Message.php it works fine.

Eudora 5.1 has two versions, paid, and ad-based. The ad-based is free.

The email looks like it has two line returns between each and every line.

Here is what part of an email that had just the word test in it's body and 
an attachment called "64.160.35.194.txt" attached looks like:

This message is in MIME format.

is message is in MIME format.


is message is in MIME format.
---MOQ10014697371a6647a7a1507cc29baed1c73b537c4f

-MOQ10014697371a6647a7a1507cc29baed1c73b537c4f
Content-Type: text/plain

ntent-Type: text/plain
Content-Transfer-Encoding: 7bit

ntent-Transfer-Encoding: 7bit


ntent-Transfer-Encoding: 7bit


ntent-Transfer-Encoding: 7bit
test

st


st
---MOQ10014697371a6647a7a1507cc29baed1c73b537c4f

-MOQ10014697371a6647a7a1507cc29baed1c73b537c4f
Content-Type: text/plain; name="64.160.35.194.txt"

ntent-Type: text/plain; name="64.160.35.194.txt"
Content-Transfer-Encoding: base64

ntent-Transfer-Encoding: base64
Content-Disposition: attachment; filename="64.160.35.194.txt"

ntent-Disposition: attachment; filename="64.160.35.194.txt"


ntent-Disposition: attachment; filename="64.160.35.194.txt"
NjQuMTYwLjM1LjE5NCAtIC0gWzIzL1NlcC8yMDAxOjAwOjEyOjQ2IC0wNDAwXSAiR0VUIC8gSFRU

QuMTYwLjM1LjE5NCAtIC0gWzIzL1NlcC8yMDAxOjAwOjEyOjQ2IC0wNDAwXSAiR0VUIC8gSFRU
UC8xLjAiIDIwMCAxNDIwMiAiLSIgImxpYnd3dy1wZXJsLzUuNDgiDQo2NC4xNjAuMzUuMTk0IC0g

8xLjAiIDIwMCAxNDIwMiAiLSIgImxpYnd3dy1wZXJsLzUuNDgiDQo2NC4xNjAuMzUuMTk0IC0g
LSBbMjMvU2VwLzIwMDE6MDA6MTM6MDEgLTA0MDBdICJHRVQgLyBIVFRQLzEuMCIgMjAwIDE0MjAy



So if you don't have \r\n and just a \n, it displays correctly, with just 
one new line feed.

__
Kris.

At 03:45 PM 9/26/2001 -0400, you wrote:
>Quoting Kris von Mach <dev@swishmail.com>:
>
> > Actually the problem is in /lib/MIME/Message.php at the end:
> >
> >          // Make sure that all newlines are \r\n.
> >               $message = preg_replace("/([^\r]{1})\n/", "\\1\r\n", 
> $message);
> >                $message = preg_replace("/\n\n/", "\n\r\n", $message);
> >
> > commenting those two lines solves my problem. I am not sure, but maybe you
> > are not suppose to have \r\n but \n between new lines for a encoded
> > attachment.
>
>I can't produce any problems with the latest versions of both Horde and IMP,
>reading emails from either IMP or Netscape Messenger, both the sent emails 
>and
>the copies saved to my sent mail folder. Are you sure you have the latest of
>_both_ Horde and IMP?
>
>-chuck
>
>--
>Charles Hagenbuch, <chuck@horde.org>
>"What was and what may be lie, like children whose faces we cannot see, in 
>the
>arms of silence. All we ever have is here, now." - Ursula K. Le Guin