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
Logged In: YES
user_id=29685
I can reproduce this sending an empty message w/ attachment
using Outlook 2000.
Logged In: NO
The problem is stil present in new release 1/7/2001.
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.
Logged In: YES
user_id=82865
This bug is not corrected yet, I'm working on it
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.
Logged In: YES
user_id=20872
Colin's patch works for me, so I've committed it to CVS.