1Email::Simple::Header(3U)ser Contributed Perl DocumentatiEomnail::Simple::Header(3)
2
3
4
6 Email::Simple::Header - the header of an Email::Simple message
7
9 my $email = Email::Simple->new($text);
10
11 my $header = $email->head;
12 print $header->as_string;
13
15 This method implements the headers of an Email::Simple object. It is a
16 very minimal interface, and is mostly for private consumption at the
17 moment.
18
20 new
21
22 my $header = Email::Simple::Header->new($head, \%arg);
23
24 $head is a string containing a valid email header, or a reference to
25 such a string.
26
27 Valid arguments are:
28
29 crlf - the header's newline; defaults to "\n"
30
31 from_string
32
33 as_string
34
35 This returns the stringified header.
36
37 header_names
38
39 This method returns the unique header names found in this header, in no
40 particular order.
41
42 header_pairs
43
44 This method returns all the field/value pairs in the header, in the
45 order that they appear in the header.
46
47 header
48
49 my $first_value = $header->header($field);
50 my @all_values = $header->header($field);
51
52 This method returns the value or values of the given header field. If
53 the named field does not appear in the header, this method returns
54 false.
55
56 header_set
57
58 $header->header_set($field => @values);
59
60 This method updates the value of the given header. Existing headers
61 have their values set in place. Additional headers are added at the
62 end.
63
64 crlf
65
66 This method returns the newline string used in the header.
67
69 This module is maintained by the Perl Email Project
70
71 <http://emailproject.perl.org/wiki/Email::Simple::Header>
72
74 Copyright 2004 by Casey West
75
76 Copyright 2003 by Simon Cozens
77
78 This library is free software; you can redistribute it and/or modify it
79 under the same terms as Perl itself.
80
81
82
83perl v5.8.8 2007-03-20 Email::Simple::Header(3)