Next | Trivial Utilities | 140 |
%type = ('gif' => 'image/gif', ... );
...
my $type = $type{lc $suf} || 'application/octet-stream'; $msg->attach(Type => $type, Path => $_);
I don't like the way it infers the type
The table is a maintenance problem
Some people have spam filters that reject application/octet-stream
Why did I do it this way?
I didn't know any better
continued...
Next | Menu | Copyright © 2012 M. J. Dominus |