Thanks everybody for a quick analysis!
> Sure I can and will do that; but I think there is more to the point.
> Rejecting a mail because of two letters is a hard thing to do.
> There might be a lot of linguistic combinations around that lead to
> two-letter patterns matching those of file(1).
> After all, this utility was desgined with a different goal than tracking
> down file patterns in email attachments.
> Maybe we have to be more careful about this file guessing than to just
> use a unix utility....
> As we could see there were other people having issues about this, too.
Terrible. I wonder why nobody noticed it before.
Here is a quick workaround for a LZ -> executable false match
(btw, I don't get a non-text match for a HU prefix)
--- amavisd.ori Tue Dec 12 01:09:48 2006
+++ amavisd Tue Dec 12 01:09:53 2006
@@ -980,4 +980,5 @@
[qr/^MS Windows\b.*\bDLL\b/ => ['exe','dll'] ],
[qr/\bexecutable for MS Windows\b.*\bDLL\b/ => ['exe','dll'] ],
+ [qr/^MS-DOS executable \(built-in\)/ => 'txt'], # starts with LZ
[qr/^(MS-)?DOS executable\b.*\bDLL\b/ => ['exe','dll'] ],
[qr/^MS Windows\b.*\bexecutable\b/ => ['exe','exe-ms'] ],
(it is also possible to redefine $map_full_type_to_short_type_re in
amavisd.conf)
Next thing is probably: anybody willing to contact Christos Zoulas
( christos at astron.com ), the maintainer of file(1).
At least the one- and two- ascii-letter prefixes should not be sufficient
reason to declare some file an executable.
How find a general resolution I don't know.
Mark
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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/