Jeff Portwine wrote:
> I'm trying to write or find a script that will extract attachments from
> an email message and write them to a directory, where I could run
> sa-learn on them.     Right now, mail comes in through exim and our
> users get their mail via pop3.    I have got them all forwarding the
> spam they get to a spam email account as attachments so that all the
> headers will be kept intact.   I thought extracting those attachments
> would be fairly trivial to do but i'm having some problems with it.   I
> can't seem to find a script that actually suits my needs... and when I
> tried to write my own I found that I really don't know how attachments
> work all that well.   It doesn't seem like it should be that difficult
> but it's still giving me problems.  
>  
> Does anybody know of a good script to use for this purpose or have any
> pointers on how I could write a script that accomplishes this?

RipMime should work..

http://www.pldaniels.com/ripmime/

Reply via email to