#1881 Attachments decode base64 corrupt

closed-fixed
None
5
2006-07-18
2005-09-14
Mike Slywka
No

Hi,

Sorry if this has already been reported but I couldn't
find anything in the mailing list archives or on here.

I'm running squirrelmail 1.4.5-1, apache 2.0.52, php
4.3.9 and uw IMAP4rev1 2004.357.

I'm having a problem displaying primarily microsoft
attachments (word, excell ...) as well as a tar file
that I used to verify that there seemed to be a problem
with the base64 decoding. Webmail seems to be
prepending a "\n" character to the beginning of the file.

I only see the problem when I try to download and view
one of these documents from squirrelmail. If I send the
mail with the attachment from squirrelmail and read it
in another email client, I can download and view the
document fine. No matter which client I use to compose
the email with the attachment, I only have problems
viewing it from squirrelmail.

I've tried bumping up the post_max_size to 50M and
upload_max_filesize to 50M in php.ini but that didn't
work.

I've tried several files from the CVS snapshot on the
squirrelmail homepage (version 1.4.6) specifically the
src/downloads.php file since the Changelog mentions
something about corrupted attachments being fixed in
this version. I've diffed a few of the other files in
1.4.6 with my version that seemed to make sense:
attachments_common.php and mime.php to name a few. No
luck there either.

Lastly I've tried one of the patches I found on here
that was a change to mime.php, and that didn't fix
anything for me either.

So, can someone either let me know some things I can
try or point me in the right direction please?

Thanks,

Mike

Discussion

<< < 1 2 (Page 2 of 2)
  • Tomas Kuliavas
    Tomas Kuliavas
    2006-07-06

    Logged In: YES
    user_id=225877

    SquirrelMail 1.5.x functions/plugin.php has output buffering
    code that prevents output when plugins/*/setup.php files are
    loaded. Code is not present in 1.4.x.

     
  • Tomas Kuliavas
    Tomas Kuliavas
    2006-07-18

    Logged In: YES
    user_id=225877

    SquirrelMail 1.4.8 and 1.5.1 use output buffering when
    plugins are loaded and whitespace (new lines and spaces) is
    removed.

     
  • Tomas Kuliavas
    Tomas Kuliavas
    2006-07-18

    • status: open --> closed-fixed
     
<< < 1 2 (Page 2 of 2)