For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > July 2004 > Need to find a module which can remove attachment from emails









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Need to find a module which can remove attachment from emails
Ken Hu

2004-07-15, 8:55 am

Dear All:

I'm trying to write a email filter which can do attachment removal for me.
Does anyone know where I can find a nice perl module to fulfill this
purpose ?

Thanks in advance...

Ken

Tim Heaney

2004-07-15, 8:55 am

Ken Hu <kenhu1970@yahoo.com.tw> writes:
>
> I'm trying to write a email filter which can do attachment removal for me.
> Does anyone know where I can find a nice perl module to fulfill this
> purpose ?


You'll find lots of goodies to help you in the MIME-tools family of
modules

http://search.cpan.org/search?query=mime-tools

It includes an example script called mimeexplode, which might be what
you're after. I sometimes use the one-liner

perl -MMIME::Parser -e 'MIME::Parser->new->parse_open(shift)' msg

to explode a single message in the current working directory.

I hope this helps,

Tim
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com