MIME::Head 5.420
Sponsored Links
MIME::Head 5.420 Ranking & Summary
File size:
0.38 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
803
Date added:
2007-08-13
Publisher:
Eryq, ZeeGee Software Inc and David F. Skoll
MIME::Head 5.420 description
MIME::Head is a MIME message header (a subclass of Mail::Header).
SYNOPSIS
Before reading further, you should see MIME::Tools to make sure that you understand where this module fits into the grand scheme of things. Go on, do it now. Ill wait.
Ready? Ok...
Construction
### Create a new, empty header, and populate it manually:
$head = MIME::Head->new;
$head->replace(content-type, text/plain; charset=US-ASCII);
$head->replace(content-length, $len);
### Parse a new header from a filehandle:
$head = MIME::Head->read(*STDIN);
### Parse a new header from a file, or a readable pipe:
$testhead = MIME::Head->from_file("/tmp/test.hdr");
$a_b_head = MIME::Head->from_file("cat a.hdr b.hdr |");
Output
### Output to filehandle:
$head->print(*STDOUT);
### Output as string:
print STDOUT $head->as_string;
print STDOUT $head->stringify;
Getting field contents
### Is this a reply?
$is_reply = 1 if ($head->get(Subject) =~ /^Re: /);
### Get receipt information:
print "Last received from: ", $head->get(Received, 0), "n";
@all_received = $head->get(Received);
### Print the subject, or the empty string if none:
print "Subject: ", $head->get(Subject,0), "n";
### Too many hops? Count em and see!
if ($head->count(Received) > 5) { ...
### Test whether a given field exists
warn "missing subject!" if (! $head->count(subject));
Setting field contents
### Declare this to be an HTML header:
$head->replace(Content-type, text/html);
Manipulating field contents
### Get rid of internal newlines in fields:
$head->unfold;
### Decode any Q- or B-encoded-text in fields (DEPRECATED):
$head->decode;
Getting high-level MIME information
### Get/set a given MIME attribute:
unless ($charset = $head->mime_attr(content-type.charset)) {
$head->mime_attr("content-type.charset" => "US-ASCII");
}
### The content type (e.g., "text/html"):
$mime_type = $head->mime_type;
### The content transfer encoding (e.g., "quoted-printable"):
$mime_encoding = $head->mime_encoding;
### The recommended name when extracted:
$file_name = $head->recommended_filename;
### The boundary text, for multipart messages:
$boundary = $head->multipart_boundary;
SYNOPSIS
Before reading further, you should see MIME::Tools to make sure that you understand where this module fits into the grand scheme of things. Go on, do it now. Ill wait.
Ready? Ok...
Construction
### Create a new, empty header, and populate it manually:
$head = MIME::Head->new;
$head->replace(content-type, text/plain; charset=US-ASCII);
$head->replace(content-length, $len);
### Parse a new header from a filehandle:
$head = MIME::Head->read(*STDIN);
### Parse a new header from a file, or a readable pipe:
$testhead = MIME::Head->from_file("/tmp/test.hdr");
$a_b_head = MIME::Head->from_file("cat a.hdr b.hdr |");
Output
### Output to filehandle:
$head->print(*STDOUT);
### Output as string:
print STDOUT $head->as_string;
print STDOUT $head->stringify;
Getting field contents
### Is this a reply?
$is_reply = 1 if ($head->get(Subject) =~ /^Re: /);
### Get receipt information:
print "Last received from: ", $head->get(Received, 0), "n";
@all_received = $head->get(Received);
### Print the subject, or the empty string if none:
print "Subject: ", $head->get(Subject,0), "n";
### Too many hops? Count em and see!
if ($head->count(Received) > 5) { ...
### Test whether a given field exists
warn "missing subject!" if (! $head->count(subject));
Setting field contents
### Declare this to be an HTML header:
$head->replace(Content-type, text/html);
Manipulating field contents
### Get rid of internal newlines in fields:
$head->unfold;
### Decode any Q- or B-encoded-text in fields (DEPRECATED):
$head->decode;
Getting high-level MIME information
### Get/set a given MIME attribute:
unless ($charset = $head->mime_attr(content-type.charset)) {
$head->mime_attr("content-type.charset" => "US-ASCII");
}
### The content type (e.g., "text/html"):
$mime_type = $head->mime_type;
### The content transfer encoding (e.g., "quoted-printable"):
$mime_encoding = $head->mime_encoding;
### The recommended name when extracted:
$file_name = $head->recommended_filename;
### The boundary text, for multipart messages:
$boundary = $head->multipart_boundary;
MIME::Head 5.420 Screenshot
MIME::Head 5.420 Keywords
MIME
Head 5.420
STDOUT
MIME message
message header
header
print
received
subclass
subject
new
MIME::Head
MIMEHead
MIME::Head 5.420
Libraries
Programming
Bookmark MIME::Head 5.420
MIME::Head 5.420 Copyright
WareSeeker periodically updates pricing and software information of MIME::Head 5.420 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of MIME::Head 5.420 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
Related Software
MIME::Words is a Perl module to deal with RFC-1522 encoded words. Free Download
MIME::Parser is a experimental class for parsing MIME streams. Free Download
MIME::WordDecoder is a Perl module to decode RFC-1522 encoded words to a local representation. Free Download
MIME::Lite is a low-calorie MIME generator Perl module. Free Download
GMime is a set of utilities for parsing and creating messages using the Multipurpose Internet Mail Extension (MIME). Free Download
IMP, the Internet Messaging Program, allows Web-based access to IMAP and POP3 mail servers. Free Download
CGI::Cache is a Perl extension to help cache output of time-intensive CGI scripts. Free Download
Encode::MIME::Header is a Perl module that contains MIME B and Q header encoding. Free Download
Latest Software
Popular Software
Favourite Software