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