[EMAIL PROTECTED] writes:

> Well, I've been looking into this throughout the day,
> and the answer is non-trivial, because you have to separate out
> the attachment and decode it (it'll be in base64) first.
> Given that I haven't written any C at all in ages, and perl would
> not be scalable enough, it's an uphill battle.

My maildrop mail filter includes a standalone utility called 'reformime'
which, amongst other things, can grab an arbitrary MIME attachment, and
decode it.

reformime is experimental, it may have a few glitches here and there, but,
overall, it works.  You will need to call it a couple of times -- first to
get the 'MIME layout' of the E-mail message, basically a schematic of which
attachments are attached where.  Finally, use it again to decode the
attachments.  This will require you to write a suitable shell or perl
wrapper, but the basic tools are there.

See http://www.flounder.net/~mrsam/maildrop/

-- 
Sam

Reply via email to