#206 Display appropriate alternative part

closed-fixed
5
2003-05-23
2002-05-21
Anonymous
No

<b>Problem</b>:<br>
When you send a text email with an html attachment,
viewing the message in squirrelmail 1.2.6 shows the
html attachment as the message body and the text part
as the usual "untitled" link at the bottom.<br>
<b>Analysis</b>:<br>
The treatment of multipart/mixed and
multipart/alternative in squirrelmail 1.2.6 is
exactly the same. This causes them both to be treated
similarly and hence the confusion.<br>
<b>Possible fix</b>:<br>
In mime.php (~squirrelmail-1.2.6/functions/mime.php),
function findDisplayEntity(...),
comment out the line which says:
$msg->header->type1 == 'mixed' ||
line no: 614 (file size: 2049 lines just to make sure
we are talking about the same line ;))<br>
<b>Caveats</b>:<br>
This has been tested with messages sent thru
squirrelmail-1.2.6 as well as micro$oft
outlook/outlook express. I would appreciate if other
clients can be tested against this fix.<br>
Sundar Ranganathan

Discussion

  • Marc Groot Koerkamp

    Logged In: YES
    user_id=476981

    what if I send an html e-mail with inline images and a word
    doc attachement.
    The content-type would be multipart/mixed.

     
  • Marc Groot Koerkamp

    • assigned_to: nobody --> stekkel
    • status: open --> open-fixed
     
  • Marc Groot Koerkamp

    Logged In: YES
    user_id=476981

    Problem confirmed and fixed in CSV 1.3 DEVEL.

    The problem is solved by a complete rewrite of the
    findDisplayEntity function.

     
  • Marc Groot Koerkamp

    • status: open-fixed --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks