Best tool for MIME handling in scripts?
Bill Freeman
f at ke1g.mv.com
Fri Sep 16 08:30:01 EDT 2005
Bill McGonigle writes:
> What do folks here use for massaging MIME messages in shell scripts?
>
> For instance, the task at hand is to take incoming mail from a scanner,
> strip out the MIME attachments (PDF's), and dump them in a folder.
> There should be a tool that I can pipe the message to, specify an
> option to save, an option to specify a save location, an option to
> specify the MIME types to handle, and call it from procmail.
>
> I've found munpack, reformime, Perl's MIMETools, but none has jumped
> out as the tool that does things The Unix Way.
Perhaps not what you're thinking about as being The Unix Way,
but there are Python classes for dealing with MIME and mail messages.
For my usage I began with:
from email import message_from_file
Bill
More information about the gnhlug-discuss
mailing list