Our favourite mail client, Outlook Express 6.0 (and probably all
previous OE as well), identifies the type of an attachment first by the
attachments filename extension and only if that is not possible it
'guesses' the filetype based on the mime-type *g*
N.B.: this does not apply to Outlook - only to Outlook Express
Users complained that defanged mail opened up in a notepad window
instead of in Outlook. If the defanged mail had further attachments
these were not accessible through notepad. A common workaround is to
save the attachment as 'message.eml' and double-click that message in an
explorer window.
The proposed patch fixes that problem by not supplying any filename
extension. It has been sucessfully tested with Outlook (5 & 6), Outlook
Express (2k,2k3), Thunderbird, JavaMail and Squirrelmail.
PS: I know that the bug is not in Amavisd-new, but in Outlook - still I
recommend the inclusion of the patch in the main distribution - as this
patch does no harm and only improves upon the current implementation.
Configuration:
sendmail-dual (8.13)
cyrus-imapd
amavisd-new 2.3.3
--- amavisd 2005-08-22 01:46:15.000000000 +0200
+++ amavisd-MI 2006-03-13 09:19:01.000000000 +0100
@@ -5868,7 +5868,7 @@
Type => 'message/rfc822; x-spam-type=original',
Encoding => '8bit', Path => $msginfo->mail_text_fn,
Description => 'Original message',
- Filename => 'message.txt', Disposition => 'attachment'); 1}
+ Filename => 'message', Disposition => 'attachment'); 1}
or do {chomp($@); die [EMAIL PROTECTED];
$new_entity;
}
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/