.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Mail::MIMEDefang::MIME 3" .TH Mail::MIMEDefang::MIME 3 2024-03-20 3.4.1 "Mail::MIMEDefang::MIME Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME Mail::MIMEDefang::MIME \- MIME objects interface methods for email filters .SH DESCRIPTION .IX Header "DESCRIPTION" Mail::MIMEDefang::MIME are a set of methods that can be called from \fImimedefang-filter\fR to operate on MIME objects. .SH METHODS .IX Header "METHODS" .IP collect_parts 4 .IX Item "collect_parts" Method that adds parts to the array \f(CW@FlatParts\fR for flattening. .ie n .IP "takeStabAtFilename ( $entity )" 4 .el .IP "takeStabAtFilename ( \f(CW$entity\fR )" 4 .IX Item "takeStabAtFilename ( $entity )" Makes a guess at a filename for the attachment. Calls MIME::Head's \&\fBrecommended_filename()\fR method, which tries 'Content\-Disposition.filename'and if not found, 'Content\-Type.name'. .Sp Returns a MIME-decoded filename, or a blank string if none found. .IP find_part 4 .IX Item "find_part" Method that returns the first MIME entity of type \f(CW$content_type\fR, \&\f(CW\*(C`undef\*(C'\fR if none exists. .IP append_to_part 4 .IX Item "append_to_part" Method that appends text to \f(CW$part\fR .IP remove_redundant_html_parts 4 .IX Item "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. .IP append_to_html_part 4 .IX Item "append_to_html_part" Method that appends text to the spicified mime part, but does so by parsing HTML and adding the text before or tags. .IP append_text_boilerplate 4 .IX Item "append_text_boilerplate" Method that appends text to text/plain part or parts. .IP append_html_boilerplate 4 .IX Item "append_html_boilerplate" Method that appends text to text/html part or parts. It tries to be clever and inserts the text before the tag to be able of being seen. .IP anonymize_uri 4 .IX Item "anonymize_uri" Anonymize urls by removing all utm_* parameters, takes the message part as parameter and returns a boolean value if the sub succeeded or not.