Dixi quod… >Hrm, but how would it know which lines have which ending? >*scratches head* *sends test mail*
Double-Ouch! tg@herc:~ $ less mail/sent-mail --0-1827771657-1355218649=:32302 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=test.txt Content-Transfer-Encoding: BASE64 Content-ID: <[email protected]> Content-Description: Content-Disposition: attachment; filename=test.txt VGVzdCB3aXRoIExGDQpUZXN0IHdpdGggQ1ItTEYNDQpBbmQgTEYgYWdhaW4u DQo= --0-1827771657-1355218649=:32302-- tg@herc:~ $ Lb64decode VGVzdCB3aXRoIExGDQpUZXN0IHdpdGggQ1ItTEYNDQpBbmQgTEYgYWdhaW4uDQo= | hd 00000000 54 65 73 74 20 77 69 74 - 68 20 4C 46 0D 0A 54 65 |Test with LF..Te| 00000010 73 74 20 77 69 74 68 20 - 43 52 2D 4C 46 0D 0D 0A |st with CR-LF...| 00000020 41 6E 64 20 4C 46 20 61 - 67 61 69 6E 2E 0D 0A |And LF again...| So it appears to just tack on a CR before *any* LF. This is probably actually sensible when *not* base64-encoding the attachment, but… still. I think that any attachment must be base64-encoded without any data modification to prevent corruption (qp and unencoded would be subject to the SMTP rule that lines *do* end with ASCII CR-LF). bye, //mirabilos -- I want one of these. They cost 720 € though… good they don’t have the HD hole, which indicates 3½″ floppies with double capacity… still. A tad too much, atm. ‣ http://www.floppytable.com/floppytable-images-1.html -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

