NAME
Mail::MIMEDefang::MIME - MIME objects interface methods for email filters
DESCRIPTION
Mail::MIMEDefang::MIME are a set of methods that can be called from mimedefang-filter to operate on MIME objects.
METHODS
- collect_parts
-
Method that adds parts to the array
@FlatPartsfor flattening. - takeStabAtFilename ( $entity )
-
Makes a guess at a filename for the attachment. Calls MIME::Head's recommended_filename() method, which tries 'Content-Disposition.filename'and if not found, 'Content-Type.name'. Returns a MIME-decoded filename, or a blank string if none found.
- find_part
-
Method that returns the first MIME entity of type
$content_type,undefif none exists. - append_to_part
-
Method that appends text to
$part - remove_redundant_html_parts
-
Method that rebuilds the email message without redundant HTML parts. That is, if a multipart/alternative entity contains text/plain and text/html parts, the text/html part will be removed.
- append_to_html_part
-
Method that appends text to the spicified mime part, but does so by parsing HTML and adding the text before