Peter Sergeant > Email-StripMIME-1.01 > Email::StripMIME

Download:
Email-StripMIME-1.01.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View Bugs
Report a bug
Module Version: 1.01   Source  

NAME ^

Email::StripMIME - Turn 'enhanced' emails back to plain text

DESCRIPTION ^

Provides a sensible text representation of an email's content

SYNOPSIS ^

 use Email::StripMIME;

 my $email = join '', (<>);

 print Email::StripMIME::strip_mime( $email );

METHODS ^

strip_mime ( $email_as_string )

Returns the email you passed it, with all plain text attachments folded into the message body, and non-text attachments removed. Fiddles the MIME headers to reflects this.

If no plain text attachments were found, but there were HTML ones, it'll convert them to plain text and use those for the message body.

AUTHOR ^

Pete Sergeant -- pete@clueball.com

COPYRIGHT ^

Copyright 2005 Pete Sergeant.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.