... a somewhat complex example since the file(1) output covers
multiple file types.



Awesome.

Just curious, why wouldn't amavis not use the file(1) utility with the -i switch that way you would get output like the following?

application/vnd.ms-excel  --> excel file
application/x-rar  --> rar file
application/octet-stream  --> exe file

etc etc.

Maybe it would be a monumental task maintaining every possible type in the map_full_type_to_short_type_re or another reason?



Reply via email to