Unix and Linux Discussions Tagged with header |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
1 |
10,531 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
10,475 |
Web Development |
|
|
|
2 |
4,543 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
10,050 |
Shell Programming and Scripting |
|
|
|
4 |
1,992 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
2,237 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
2,653 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
3,733 |
Shell Programming and Scripting |
|
|
|
3 |
3,256 |
Programming |
|
|
|
5 |
3,444 |
Shell Programming and Scripting |
|
|
|
0 |
2,930 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
6,232 |
Shell Programming and Scripting |
|
|
|
8 |
3,422 |
Shell Programming and Scripting |
|
|
|
2 |
8,470 |
Shell Programming and Scripting |
|
|
|
2 |
5,507 |
Shell Programming and Scripting |
|
|
|
4 |
7,235 |
Shell Programming and Scripting |
|
|
|
11 |
29,008 |
Shell Programming and Scripting |
|
|
|
2 |
2,530 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
1,886 |
Shell Programming and Scripting |
|
|
|
1 |
9,387 |
Shell Programming and Scripting |
|
|
|
4 |
5,980 |
Shell Programming and Scripting |
|
|
|
2 |
3,808 |
Programming |
|
|
|
9 |
19,880 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
12,980 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,733 |
Programming |
|
|
|
1 |
3,858 |
IP Networking |
|
|
|
7 |
5,074 |
Shell Programming and Scripting |
|
|
|
6 |
8,633 |
Shell Programming and Scripting |
|
|
|
4 |
4,864 |
Shell Programming and Scripting |
|
|
|
1 |
5,040 |
Shell Programming and Scripting |
|
|
|
1 |
3,280 |
Shell Programming and Scripting |
|
|
|
3 |
5,202 |
Shell Programming and Scripting |
|
|
|
2 |
11,109 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,338 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
11,010 |
Programming |
|
|
|
4 |
6,866 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
10,506 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,872 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,400 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,682 |
Programming |
Email::Simple::Header(3pm) User Contributed Perl Documentation Email::Simple::Header(3pm)
NAME
Email::Simple::Header - the header of an Email::Simple message
SYNOPSIS
my $email = Email::Simple->new($text);
my $header = $email->head;
print $header->as_string;
DESCRIPTION
This method implements the headers of an Email::Simple object. It is a very minimal interface, and is mostly for private consumption at
the moment.
METHODS
new
my $header = Email::Simple::Header->new($head, \%arg);
$head is a string containing a valid email header, or a reference to such a string. If a reference is passed in, don't expect that it
won't be altered.
Valid arguments are:
crlf - the header's newline; defaults to CRLF
as_string
my $string = $header->as_string(\%arg);
This returns a stringified version of the header.
header_names
This method returns the unique header names found in this header, in no particular order.
header_pairs
This method returns all the field/value pairs in the header, in the order that they appear in the header.
header
my $first_value = $header->header($field);
my @all_values = $header->header($field);
This method returns the value or values of the given header field. If the named field does not appear in the header, this method returns
false.
header_set
$header->header_set($field => @values);
This method updates the value of the given header. Existing headers have their values set in place. Additional headers are added at the
end. If no values are given to set, the header will be removed from to the message entirely.
crlf
This method returns the newline string used in the header.
PERL EMAIL PROJECT
This module is maintained by the Perl Email Project
<http://emailproject.perl.org/>
COPYRIGHT AND LICENSE
Copyright 2006-2007 by Ricardo SIGNES
Copyright 2004 by Casey West
Copyright 2003 by Simon Cozens
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2011-12-23 Email::Simple::Header(3pm)