A user writes in with "I attach 6 files and the recipient only receives 4 of them, what gives?" It turns out she has attached the files correctly, but squirrelmail appears to be building the MIME package incorrectly. Certain attachments result in chunks in messages that look like the following: <snip> AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA------=_20061013085443_82506 Content-Type: application/msword; name="filename.doc" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="filename.doc" 0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAABAAAAPQAAAAAAAAAA EAAAPwAAAAEAAAD +////AAAAADwAAAD///////////////////////////////////////////// /////////////////////////////////////////////////////////<snip> This, of course, breaks the recipient's MIME parser. It doesn't do this with all attachments either, only specific M$ docs my user's managed to come up with. I also see chunks like: <snip> AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAA ------=_20061013085443_82506 Content-Type: application/msword; name=<snip> ...the lack of a second line break seems problematic -- if base64_encode() doesn't end in a \n, we're in trouble. This is on the latest rev of Squirrelmail on Debian 3.1, PHP4 packages. I'm willing to patch this myself, as it seems easy enough to do, I just haven't been able to easily find where to do it and I'm wondering if anyone has any suggestions. Thanks, John -- John Madden Sr. UNIX Systems Engineer Ivy Tech Community College of Indiana jmadden@xxxxxxxxxxx ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 -- squirrelmail-users mailing list Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines List Address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users