1Mail::Field::Generic(3)User Contributed Perl DocumentatioMnail::Field::Generic(3)
2
3
4
6 Mail::Field::Generic - implementation for inspecific fields
7
9 Mail::Field::Generic
10 is a Mail::Field
11
13 use Mail::Field;
14 my $field = Mail::Field->new('Subject', 'some subject text');
15 my $field = Mail::Field->new(subject => 'some subject text');
16
18 A generic implementation for header fields without own implementation.
19 This is fine for fields like "Subject", "X-Mailer", etc., where the
20 field holds only a string of no particular importance/format.
21
22 Extends "DESCRIPTION" in Mail::Field.
23
25 Extends "METHODS" in Mail::Field.
26
27 Constructors
28 Extends "Constructors" in Mail::Field.
29
30 Mail::Field::Generic->combine($fields)
31 Inherited, see "Constructors" in Mail::Field
32
33 Mail::Field::Generic->extract( $tag, $head [, $index ] )
34 Inherited, see "Constructors" in Mail::Field
35
36 Mail::Field::Generic->new( $tag [, STRING | %options] )
37 Inherited, see "Constructors" in Mail::Field
38
39 "Fake" constructors
40 Extends ""Fake" constructors" in Mail::Field.
41
42 $obj->create(%options)
43 -Option--Default
44 Text ''
45
46 Text => STRING
47 $obj->parse( [STRING] )
48 Set the new text, which is empty when no STRING is provided.
49
50 Accessors
51 Extends "Accessors" in Mail::Field.
52
53 $obj->set(%options)
54 Inherited, see "Accessors" in Mail::Field
55
56 $obj->stringify()
57 Inherited, see "Accessors" in Mail::Field
58
59 $obj->tag()
60 Mail::Field::Generic->tag()
61 Inherited, see "Accessors" in Mail::Field
62
63 Smart accessors
64 Extends "Smart accessors" in Mail::Field.
65
66 $obj->text( [STRING] )
67 Inherited, see "Smart accessors" in Mail::Field
68
70 Extends "DETAILS" in Mail::Field.
71
73 Error: Undefined subroutine <method> called
74 Mail::Field objects use autoloading to compile new functionality.
75 Apparently, the method called is not implemented for the specific
76 class of the field object.
77
79 This module is part of the MailTools distribution,
80 http://perl.overmeer.net/mailtools/.
81
83 The MailTools bundle was developed by Graham Barr. Later, Mark
84 Overmeer took over maintenance without commitment to further
85 development.
86
87 Mail::Cap by Gisle Aas <aas@oslonett.no>. Mail::Field::AddrList by
88 Peter Orbaek <poe@cit.dk>. Mail::Mailer and Mail::Send by Tim Bunce
89 <Tim.Bunce@ig.co.uk>. For other contributors see ChangeLog.
90
92 Copyrights 1995-2000 Graham Barr <gbarr@pobox.com> and 2001-2017 Mark
93 Overmeer <perl@overmeer.net>.
94
95 This program is free software; you can redistribute it and/or modify it
96 under the same terms as Perl itself. See
97 http://www.perl.com/perl/misc/Artistic.html
98
99
100
101perl v5.34.0 2021-07-22 Mail::Field::Generic(3)