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 simple Mail::Internet messages into Mail::Message objects.
  • Mail::Message::Convert::MimeEntity β€” Converts the more complicated MIME::Entity messages into Mail::Message objects.
  • Mail::Message::Convert::EmailSimple β€” Converts Email::Simple messages into Mail::Message objects.

πŸŽ€ 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 the HTML::FormatText module.
  • Mail::Message::Convert::HtmlFormatPS β€” Converts HTML body objects to Postscript objects using the HTML::FormatPS module.
  • Mail::Message::Convert::TextAutoformat β€” Converts a text message into text using Text::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 to Mail::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 by notImplemented()

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