Menu

#58 Mime attachment problem

Reproducible
closed-fixed
5
2001-10-21
2001-05-25
Anonymous
No

There's a problem with reading attachment messages
sent by Microsoft Outlook and other MS products, which
doesn't send Multipart/Mixed (content-type) messages,
when there's only one file attached and no other file
or text.
The message headers look like this:

... cut ....
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: application/octet-stream;
name="..."
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="..."

R0lGODlh1AE8ANUAAElDX4+JpOrq7JRHSc1ELXJrlbWywWtijWNbgVJ
Lc8zMzGtRbn11j1BDaZ6Y
tP///2xgg4B3p1lSc0xEa7ev2KRLTJKJuJdfccxOPpmZzHxznNva4W1
GWPb191JKa1pSfP4BAgAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAQUAP8
ALAAAAADUATwAAAb/wIZw

Discussion

  • Anonymous

    Anonymous - 2001-05-27

    Logged In: YES
    user_id=29685

    I can reproduce this sending an empty message w/ attachment
    using Outlook 2000.

     
  • Nobody/Anonymous

    Logged In: NO

    The problem is stil present in new release 1/7/2001.

     
  • Nicolas Chalanset

    Logged In: YES
    user_id=82865

    Please try latest CVS version available here:

    http://nocc.sourceforge.net/download/

    And report if bug's still present.

     
  • Nicolas Chalanset

    • assigned_to: nobody --> nicocha
    • status: open --> open-fixed
     
  • Nicolas Chalanset

    • status: open-fixed --> open-remind
     
  • Nicolas Chalanset

    Logged In: YES
    user_id=82865

    This bug is not corrected yet, I'm working on it

     
  • Colin Stephenson

    Logged In: YES
    user_id=294390

    I just downloaded nocc and its is really good. I encountered this mime attachment with images problem, so I did a little poking around in the code.

    text attachments work fine, so i gathered everything was working fine up to this point.

    so i checked the line in action.php

    if ($display_img_attach && (eregi ('image', $tmp['mime'])) && ($tmp['id'] == ''))

    (might be a bit different from original as i messed with it). When i changed
    $tmp['id'] == '' to
    $tmp['id'] != ''

    the image was displayed inline - maybe its something to do with the return value and the if statement logic?

    i also changed this in functions.php and it now lists the files in the Attachments field of the header.

    Hope this helps,

    colin.

     
  • Ross Golder

    Ross Golder - 2001-10-21
    • status: open-remind --> closed-fixed
     
  • Ross Golder

    Ross Golder - 2001-10-21

    Logged In: YES
    user_id=20872

    Colin's patch works for me, so I've committed it to CVS.

     

Log in to post a comment.