Mail::F...Generic(3)
πΈ NAME πΈ
Mail::Field::Generic β implementation for inspecific fields. Yes, that's the whole vibe: a generic header-field implementation for fields that don't have their own special implementation. And the manual page you're reading? It's Mail::F...Generic(3), folded in right here like a lil name tag. π·οΈ
𧬠INHERITANCE π§¬
Mail::Field::Generic is a Mail::Field. That's the inheritance chain, bestie. π
π SYNOPSIS π
okay so the synopsis is literally this:
use Mail::Field;
my $field = Mail::Field->new('Subject', 'some subject text');
my $field = Mail::Field->new(subject => 'some subject text');
π DESCRIPTION π
A generic implementation for header fields that don't have their own implementation. This is fine for fields like Subject, X-Mailer, etc., where the field holds only a string of no particular importance/format. No cap, it's just a string doing its little thing.
Extends DESCRIPTION in Mail::Field.
π οΈ METHODS π οΈ
Extends METHODS in Mail::Field.
π§± Constructors π§±
Extends Constructors in Mail::Field.
Mail::Field::Generic->combine($fields)β inherited, seeConstructorsinMail::Field.Mail::Field::Generic->extract( $tag, $head [, $index ] )β inherited, seeConstructorsinMail::Field.Mail::Field::Generic->new( $tag [, STRING | %options] )β inherited, seeConstructorsinMail::Field.
All three are inherited, so the actual constructor lore lives over in Mail::Field. π«Ά
π "Fake" constructors π
Extends "Fake" constructors in Mail::Field.
$obj->create(%options) β the option table is small and iconic:
-Option--Default
Text ''
So Text => STRING is the option, and the default Text value is '' (empty string). π
$obj->parse( [STRING] ) β sets the new text, which is empty when no STRING is provided. Empty string energy when you give it nothing. π«§
π Accessors π
Extends Accessors in Mail::Field.
$obj->set(%options)β inherited, seeAccessorsinMail::Field.$obj->stringify()β inherited, seeAccessorsinMail::Field.$obj->tag()/Mail::Field::Generic->tag()β inherited, seeAccessorsinMail::Field.
β¨ Smart accessors β¨
Extends Smart accessors in Mail::Field.
$obj->text( [STRING] )β inherited, seeSmart accessorsinMail::Field.
π DETAILS π
Extends DETAILS in Mail::Field.
π¨ DIAGNOSTICS π¨
If you hit Error: Undefined subroutine <method> called, here's the tea: Mail::Field objects use autoloading to compile new functionality. Apparently, the method called is not implemented for the specific class of the field object. So that's the diagnostic: this method isn't implemented for this class. π
π SEE ALSO π
This module is part of the MailTools distribution, http://perl.overmeer.net/mailtools/. Go peek, bestie. π¦
π AUTHORS π
The MailTools bundle was developed by Graham Barr. Later, Mark Overmeer took over maintenance without commitment to further development. Important: "without commitment to further development" is literally in the original, so don't come for me. π
Mail::Capby Gisle Aas<aas@oslonett.no>.Mail::Field::AddrListby Peter Orbaek<poe@cit.dk>.Mail::MailerandMail::Sendby Tim Bunce<Tim.Bunce@ig.co.uk>.- For other contributors see
ChangeLog.
π LICENSE π
Copyrights 1995-2000 Graham Barr <gbarr@pobox.com> and 2001-2024 Mark Overmeer <perl@overmeer.net>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://www.perl.com/perl/misc/Artistic.html.
Free software, same terms as Perl, iconic legal realness. β¨
π That's the whole manual, bestie. Footer tea: source/versionperl v5.42.0, date2024-12-12, and the page name isMail::F...Generic(3). Byeee! π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: perl-MailTools 2.220.0-160000.2.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms