The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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.