Mail::...:Subset(3pm)
π Mail::...:Subset(3pm) β user contributed perl documentation β¨
okay bestie, buckle up π this is Mail::Message::Head::Subset, straight out of the User Contributed Perl Documentation collection, running on perl v5.40.1. she's a little subset of header info and she is, quite frankly, iconic π
π NAME
Mail::Message::Head::Subset β subset of header information of a message π¦
πΈ INHERITANCE
she's got main character energy and a whole family tree, look:
Mail::Message::Head::Subset realizes a Mail::Message::Head::Complete
Mail::Message::Head::Subset
is a Mail::Message::Head
is a Mail::Reporter
so Mail::Message::Head::Subset realizes a Mail::Message::Head::Complete, is a Mail::Message::Head, and is a Mail::Reporter. it's giving legacy dynasty π
β¨ SYNOPSIS
my $subset = Mail::Message::Head::Subset->new(...)
$subset->isa('Mail::Message::Head') # true
$subset->guessBodySize # integer or undef
$subset->isDelayed # true
look at her go π isa('Mail::Message::Head') is true, guessBodySize hands you an integer or undef, and isDelayed is true. no cap.
π¦ DESCRIPTION
so here's the tea β some types of folders contain an index file which lists a few lines of information per messages. especially when it is costly to read header lines, the index speeds-up access considerably. for instance, the subjects of all messages are often wanted, but waiting for a thousand messages of the folder to be read may imply a thousand network reads (IMAP) or file openings (MH) π
like literally, a thousand. imagine.
when you access header fields which are not in the header subset, the whole header has to be parsed (which may consume considerable time, depending on the type of folder). so the vibe check is: if it's in the subset, slay, instant. if it's not, bestie, we're loading the whole thing π«Ά
Extends "DESCRIPTION" in Mail::Message::Head.
π OVERLOADED
Extends "OVERLOADED" in Mail::Message::Head.
- overload: "" stringifaction β Inherited, see "OVERLOADED" in Mail::Message::Head
- overload: bool true/false β Inherited, see "OVERLOADED" in Mail::Message::Head
(yes the original says "stringifaction", we don't fix it, we respect it π)
π METHODS
Extends "METHODS" in Mail::Message::Head.
π Constructors
Extends "Constructors" in Mail::Message::Head.
$class->build( [PAIR|$field]-LIST )β Inherited, see "Constructors" in Mail::Message::Head$class->new(%options)β Inherited, see "Constructors" in Mail::Message::Head
π Attributes
Extends "Attributes" in Mail::Message::Head.
(no extra entries here babes, just the inherited ones from up the tree β she said what she said π )
π The header
Extends "The header" in Mail::Message::Head.
$obj->isDelayed()β Inherited, see "The header" in Mail::Message::Head$obj->isEmpty()β Inherited, see "The header" in Mail::Message::Head$obj->isModified()β Inherited, see "The header" in Mail::Message::Head$obj->knownNames()β Inherited, see "The header" in Mail::Message::Head$obj->message( [$message] )β Inherited, see "The header" in Mail::Message::Head$obj->modified( [BOOLEAN] )β Inherited, see "The header" in Mail::Message::Head$obj->orderedFields()β Inherited, see "The header" in Mail::Message::Head
π₯ Access to the header
Extends "Access to the header" in Mail::Message::Head.
$obj->count($name)β count the number of fields with this$name. if the$namecannot be found, the full header get loaded. in case we find any$namefield, it is decided we know all of them, and loading is not needed. like, one sighting of$nameand she trusts the whole squad π$obj->get( $name, [$index] )β get the data which is related to the field with the$name. the case of the characters in$namedoes not matter. when a$nameis used which is not known yet, realization will take place. Improves base, see "Access to the header" in Mail::Message::Head$obj->study( $name, [$index] )β Inherited, see "Access to the header" in Mail::Message::Head
ngl the "realization will take place" line is so dramatic. it's giving awakenings. π
π§ About the body
Extends "About the body" in Mail::Message::Head.
$obj->guessBodySize()β the body size is defined in theContent-Lengthfield. however, this field may not be known. in that case, a guess is made based on the knownLinesfield. when also that field is not known yet,undefis returned. Improves base, see "About the body" in Mail::Message::Head$obj->isMultipart()β Inherited, see "About the body" in Mail::Message::Head
so: Content-Length first, then a lil guess from Lines, and if neither? undef. she's honest about not knowing π
π Internals
Extends "Internals" in Mail::Message::Head.
$obj->addNoRealize($field)β Inherited, see "Internals" in Mail::Message::Head$obj->addOrderedFields($fields)β Inherited, see "Internals" in Mail::Message::Head$obj->fileLocation()β Inherited, see "Internals" in Mail::Message::Head$obj->load()β Inherited, see "Internals" in Mail::Message::Head$obj->moveLocation($distance)β Inherited, see "Internals" in Mail::Message::Head$obj->read($parser)β Inherited, see "Internals" in Mail::Message::Head$obj->setNoRealize($field)β Inherited, see "Internals" in Mail::Message::Head
π Error handling
Extends "Error handling" in Mail::Message::Head.
$obj->AUTOLOAD()β Inherited, see "Error handling" in Mail::Reporter$obj->notImplemented()β Inherited, see "Error handling" in Mail::Reporter
π Cleanup
Extends "Cleanup" in Mail::Message::Head.
$obj->DESTROY()β Inherited, see "Cleanup" in Mail::Reporter
β DETAILS
Extends "DETAILS" in Mail::Message::Head.
π DIAGNOSTICS
- Error: class
$packagedoes 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()
this one's a real one. if you catch this, something is genuinely broken β go investigate, and probably go tell the author of the package π«Ά
π SEE ALSO
This module is part of Mail-Box version 4.02, built on April 10, 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.
and that's the whole page bestie, no skips, no summaries, every single inherited line accounted for π mwah π
built for perl v5.40.1, dated 2026-05-09, and yes, this is Mail::...:Subset(3pm) signing off β stay subset, stay slay πβ¨
π¦ where this page comes from
- ubuntu stonking: libmail-box-perl 4.02-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms