Recently I sent a post to the list asking for help with attachments
being mangled. I discovered that some extra blank lines I inadvertently
inserted at the end of the config file of the retrieveuserdata plugin
was causing the mangling. After I removed the blank lines (And checked
every other file for any trailing blank lines :) downloads began to
work.

However one problem remains. When a user attaches a text file to an
email message and it's downloaded, it comes down as type
"application/octet-stream", which from what I can tell strips out all
the carriage returns from the text file. I've done testing with
SquirrelMail 1.2.11/1.2.10, PHP 4.3.1/4.2.3, on Linux and Solaris8 under
all the possible combinations (While using clients on Mac OS X, Linux,
and Windows) and the text files always come down as binary executables. 

Under Linux and Mac OS X it doesn't matter. However under Windows it
causes the file to look mis-formatted because Windows expects the CRLF
for end of line and not just LF.

I'm still pouring over the code, but it looks like SquirrelMail handles
ALL attachments as binary files when it comes to downloading them. 

(As an odd and interesting side note, binary file attachments (Eg: GIF
files, Excel spreadsheets) comes down blazingly fast on our LAN but text
files come down at 20-40KBs over the same wire.)

I don't think that this is correct SquirrelMail behavior, since I don't
see anything in the mailing list archives mentioning anything resembling
this issue. Does anyone have any idea why SquirrelMail is stripping out
CRs from text attachments?

        Lee 


Here's my pilot setup:
SquirrelMail 1.2.11
Apache 1.3.27
PHP 4.2.3
Solaris8 




-- 
Lee Brink <[EMAIL PROTECTED]>
Cornell University



-------------------------------------------------------
This SF.net email is sponsored by: Does your code think in ink? 
You could win a Tablet PC. Get a free Tablet PC hat just for playing. 
What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to