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
23 Constructors
24 Mail::Field::Generic->combine(FIELDS)
25
26 See "Constructors" in Mail::Field
27
28 Mail::Field::Generic->extract(TAG, HEAD [, INDEX ])
29
30 See "Constructors" in Mail::Field
31
32 Mail::Field::Generic->new(TAG [, STRING | OPTIONS])
33
34 See "Constructors" in Mail::Field
35
36 "Fake" constructors
37 $obj->create(OPTIONS)
38
39 Option--Default
40 Text ''
41
42 . Text => STRING
43
44 $obj->parse([STRING])
45
46 Set the new text, which is empty when no STRING is provided.
47
48 Accessors
49 $obj->set(OPTIONS)
50
51 See "Accessors" in Mail::Field
52
53 $obj->stringify
54
55 See "Accessors" in Mail::Field
56
57 $obj->tag
58
59 Mail::Field::Generic->tag
60
61 See "Accessors" in Mail::Field
62
63 Smart accessors
64 $obj->text([STRING])
65
66 See "Smart accessors" in Mail::Field
67
70 Error: Undefined subroutine <method> called
71
72 Mail::Field objects use autoloading to compile new functionality.
73 Apparently, the mehod called is not implemented for the specific
74 class of the field object.
75
77 This module is part of the MailTools distribution,
78 http://perl.overmeer.net/mailtools/.
79
81 The MailTools bundle was developed by Graham Barr. Later, Mark
82 Overmeer took over maintenance without commitment to further
83 development.
84
85 Mail::Cap by Gisle Aas <aas@oslonett.no>. Mail::Field::AddrList by
86 Peter Orbaek <poe@cit.dk>. Mail::Mailer and Mail::Send by Tim Bunce
87 <Tim.Bunce@ig.co.uk>. For other contributors see ChangeLog.
88
90 Copyrights 1995-2000 Graham Barr <gbarr@pobox.com> and 2001-2007 Mark
91 Overmeer <perl@overmeer.net>.
92
93 This program is free software; you can redistribute it and/or modify it
94 under the same terms as Perl itself. See
95 http://www.perl.com/perl/misc/Artistic.html
96
97
98
99perl v5.12.2 2010-10-01 Mail::Field::Generic(3)