Mailmun...erplate(3)
π NAME π
okay so bestie, this page is for Mailmunge::Action::Boilerplate β the one showing up as Mailmun...erplate(3) β and it's from User Contributed Perl Documentation. It's giving Add boilerplate to text parts of a message energy. π
πΈ ABSTRACT πΈ
This class implements methods that let you add boilerplate text to the beginning or end of text/plain or text/html parts. Literally that's the whole abstract, and it ate. β¨
π¦ SYNOPSIS π¦
package MyFilter;
use base qw(Mailmunge::Filter);
use Mailmunge::Action::Boilerplate;
sub filter_message {
my ($self, $ctx) = @_;
my $action = Mailmunge::Action::Boilerplate->new($self);
$action->add_text_boilerplate($ctx, $ctx->mime_entity,
"\nAnnoying plain-text boilerplate\n");
$action->add_html_boilerplate($ctx, $ctx->mime_entity,
"\n<p><b>Really</b> annoying HTML boilerplate</p>\n");
}
my $filter = MyFilter->new();
$filter->run();
1;
π METHODS π
π
Mailmunge::Action::Boilerplate->new($filter);
Constructor. Typically used within a filter file as follows:
my $action = Mailmunge::Action::Boilerplate->new($self);
π§ add_text_boilerplate($ctx, $entity, $text, $at_start, $all)
$entitymust be the top-level MIME entity; typically, you would pass"$ctx->entity"as the$entityargument.$textis plain-text boilerplate.- If
$at_startis true, then the boilerplate is added at the beginning of thetext/plainpart(s). If false or omitted, the boilerplate is added at the end. - If
$allis true, then the boilerplate is added to alltext/plainparts in the message. If false or omitted, the boilerplate is added only to the firsttext/plainpart.
π¨ Note that you may need to include newlines liberally in $text for best results.
π add_html_boilerplate($ctx, $entity, $html, $at_start, $all)
$entitymust be the top-level MIME entity; typically, you would pass"$ctx->entity"as the$entityargument.$htmlis plain-text boilerplate.$at_startand$allhave the same meanings as in"add_text_boilerplate", but they apply totext/htmlparts rather thantext/plainparts.- This function adds
$htmlboilerplate to the start or end of one or all of the"text/html"parts in the message, depending on the values of$at_startand$all.
π AUTHOR π
Dianne Skoll <dianne@skollsoft.com> β icon. π«Ά
π LICENSE π
This code is licensed under the terms of the GNU General Public License, version 2. Periodt. π
That's the page, bestie! π«Ά Footer tea: perl v5.42.2, dated 2025-10-05, manual name Mailmun...erplate(3). Slay. π
π¦ where this page comes from
- alpine 3.24: mailmunge-doc 3.20-r0 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms