Mail::M...Convert(3)
π Mail::Message::Convert β the glow-up page π
okay bestie, this is Mail::Message::Convert(3), from the User Contributed Perl Documentation crew π«Ά. Sit down, grab a strawberry π, and let's get into it.
β¨ NAME β¨
Mail::Message::Convert β literally just conversions between message types. that's the whole vibe. π
πΈ INHERITANCE πΈ
the family tree, no cap:
Mail::Message::Convert
is a Mail::Reporter
Mail::Message::Convert is extended by
Mail::Message::Convert::EmailSimple
Mail::Message::Convert::Html
Mail::Message::Convert::HtmlFormatPS
Mail::Message::Convert::HtmlFormatText
Mail::Message::Convert::MailInternet
Mail::Message::Convert::MimeEntity
Mail::Message::Convert::TextAutoformat
so it is a Mail::Reporter, and it's got a whole squad of subclasses extending it. main character energy π
π¦ SYNOPSIS π¦
Available methods are very converter-specific.
that's it. that's the synopsis. every converter does its own thing and honestly? respect. π
β¨ DESCRIPTION β¨
This class is the base for various message (and message parts) converters. it's the mom of the whole converter friend group π
Extends "DESCRIPTION" in Mail::Reporter.
π Converters between message objects π
Internally, Mail::Message::coerce() is called when foreign objects are used where message objects are expected. That method will automatically create the converting objects, and re-use them. so you don't gotta hand-hold it, it just does that β¨
Mail::Message::Convert::MailInternetβ Converts the simpleMail::Internetmessages intoMail::Messageobjects.Mail::Message::Convert::MimeEntityβ Converts the more complicatedMIME::Entitymessages intoMail::Messageobjects.Mail::Message::Convert::EmailSimpleβ ConvertsEmail::Simplemessages intoMail::Messageobjects.
π Other converters π
Mail::Message::Convert::Htmlβ Plays tricks with HTML/XMHTML without help of external modules. doing it herself, unbothered πMail::Message::Convert::HtmlFormatTextβ Converts HTML body objects to plain text objects using theHTML::FormatTextmodule.Mail::Message::Convert::HtmlFormatPSβ Converts HTML body objects to Postscript objects using theHTML::FormatPSmodule.Mail::Message::Convert::TextAutoformatβ Converts a text message into text usingText::Autoformat.
π METHODS π
Extends "METHODS" in Mail::Reporter.
π§ Constructors π§
Extends "Constructors" in Mail::Reporter.
$class->new(%options)
Inherited, see "Constructors" in Mail::Reporter
here's the option table, bestie, don't skip it:
-Option--Default
fields <see description>
fields => $name|$regex|\@names|\@regexesβ Select the fields of a header which are to be handled. Other fields will not be used. The value of this option is passed toMail::Message::Head::Complete::grepNames()whenever converters feel a need for header line selection. By default, the"To","From","Cc","Bcc","Date","Subject", and their"Resent-"counterparts will be selected. Specify an empty list to get all fields. (yes, an empty list = everything. it's giving chaos but it's valid π)
π¦ Attributes π¦
Extends "Attributes" in Mail::Reporter.
π« Converting π«
$obj->selectedFields($head)
Returns a list of fields to be included in the format. The list is an ordered selection of the fields in the actual header, and filtered through the information as specified with new(fields). ordered and filtered β she's thorough, she's organized, she ate π₯
π Error handling π
Extends "Error handling" in Mail::Reporter.
$obj->AUTOLOAD()β Inherited, see "Error handling" in Mail::Reporter$obj->notImplemented()β Inherited, see "Error handling" in Mail::Reporter
π§Ό Cleanup π§Ό
Extends "Cleanup" in Mail::Reporter.
$obj->DESTROY()β Inherited, see "Cleanup" in Mail::Reporter
π DIAGNOSTICS π
Error: class $package does not implement method $method. Fatal error: the specific$package(or one of its superclasses) does not implement this method where it should. This message means that some other related classes do implement this method however the class at hand does not. Probably you should investigate this and probably inform the author of the package. Cast bynotImplemented()
fr fr, that's a fatal one. not a drill. go tell the author π
π SEE ALSO π
This module is part of Mail-Message version 4.04, built on February 04, 2026. Website: http://perl.overmeer.net/CPAN/
π LICENSE π
For contributors see file ChangeLog.
This software is copyright (c) 2001-2026 by Mark Overmeer.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. slay, legally speaking π
and that's the page!! this was Mail::Message::Convert(3), rendered by perl v5.42.0 and stamped 2026-02-05 β bye bestie, go convert something gorgeous π¦β¨
π¦ where this page comes from
- fedora 44: perl-Mail-Message 4.04-1.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms