Email::Folder(3pm) User Contributed Perl Documentation Email::Folder(3pm)NAME
Email::Folder - read all the messages from a folder as Email::Simple objects.
SYNOPSIS
use Email::Folder;
my $folder = Email::Folder->new("some_file");
print join "
", map { $_->header("Subject") } $folder->messages;
METHODS
new($folder, %options)
Takes the name of a folder, and a hash of options
If a 'reader' option is passed in then that is used as the class to read in messages with.
messages
Returns a list containing all of the messages in the folder. Can only be called once as it drains the iterator.
next_message
acts as an iterator. reads the next message from a folder. returns false at the end of the folder
bless_message($message)
Takes a raw RFC822 message and blesses it into a class.
By default this is an Email::Simple object but can easily be overriden in a subclass.
For example, this simple subclass just returns the raw rfc822 messages, and exposes the speed of the parser.
package Email::RawFolder;
use base 'Email::Folder';
sub bless_message { $_[1] };
1;
reader
read-only accessor to the underlying Email::Reader subclass instance
PERL EMAIL PROJECT
This module is maintained by the Perl Email Project
<http://emailproject.perl.org/wiki/Email::Folder>
AUTHORS
Simon Wistow <simon@thegestalt.org>
Richard Clamp <richardc@unixbeard.net>
COPYING
Copyright 2006, Simon Wistow
Distributed under the same terms as Perl itself.
This software is under no warranty and will probably ruin your life, kill your friends, burn your house and bring about the doobie
brothers.
SEE ALSO
Email::LocalDelivery, Email::FolderType, Email::Simple
perl v5.10.0 2009-07-27 Email::Folder(3pm)
Check Out this Related Man Page
Email::MIME::ContentType(3pm) User Contributed Perl Documentation Email::MIME::ContentType(3pm)NAME
Email::MIME::ContentType - Parse a MIME Content-Type Header
VERSION
version 1.013
$Id: /my/pep/Email-MIME-ContentType/trunk/lib/Email/MIME/ContentType.pm 31133 2007-03-22T19:52:26.296283Z rjbs $
SYNOPSIS
use Email::MIME::ContentType;
# Content-Type: text/plain; charset="us-ascii"; format=flowed
my $ct = 'text/plain; charset="us-ascii"; format=flowed';
my $data = parse_content_type($ct);
$data = {
discrete => "text",
composite => "plain",
attributes => {
charset => "us-ascii",
format => "flowed"
}
};
FUNCTIONS
parse_content_type
This routine is exported by default.
This routine parses email content type headers according to section 5.1 of RFC 2045. It returns a hash as above, with entries for the dis-
crete type, the composite type, and a hash of attributes.
WARNINGS
This is not a valid content-type header, according to both RFC 1521 and RFC 2045:
Content-Type: type/subtype;
If a semicolon appears, a parameter must. "parse_content_type" will carp if it encounters a header of this type, but you can suppress this
by setting $Email::MIME::ContentType::STRICT_PARAMS to a false value. Please consider localizing this assignment!
PERL EMAIL PROJECT
This module is maintained by the Perl Email Project.
<http://emailproject.perl.org/wiki/Email::MIME::ContentType>
AUTHOR
Casey West, "casey@geeknest.com" Simon Cozens, "simon@cpan.org"
SEE ALSO
Email::MIME
perl v5.8.8 2008-03-01 Email::MIME::ContentType(3pm)
Hi,
I have a semi colon delimited file of following layout:
FName;Email;LName;Age
eg.
Simon;simon@email.com;Pat;30
Pat;pat@simon@email.com;Simon;25
Sachin;sachin@email.com;Kambli;44
I want to get all records with a particular FName as Simon and LName Pat :confused: How do I dowit?
... (4 Replies)
Hello,
I'm new to unix and I have to rename all folder fron the current folder from a name like "xx - Name of the Folder" to "Name of the Folder - xx".
xx is a number ...
Can somebody, please, help?
Thank you! (6 Replies)
We have SCO Unix (realease 5.0.5b),
Please advise which files can be safely deleted on the system root folder / to create space? These are mainly spool/message/history etc log files. Where they located and can they be deleted using rm?
The server has been operational for the past 4 years.
... (17 Replies)
hi friends,
I writing a script, one of the function there is:
###################################
########### Return 1 if has subfolders and 0 otherwise ##################
# Get one Argument - Folder name
Has_Subfolders()
{
count=0
cd $1
for zont in `ls -l | grep drw | awk... (4 Replies)
Hello,
I have a file which has user information. Each user has 2 variables with the same name like
Email: testuser1
Email: testuser1@test.com
Email: testuser2
Email: testuser2@test.com
My intention is to delete the ones without the '@' symbol. When I run this statement awk '/^Email:/&&!/@/'... (6 Replies)
Hi guys, sorry if my english not very well.. i have a problem.. i have a file and the structure is :
Folder/
Folder/10.123.124.20/pm_data/A200807
Folder/10.123.124.20/pm_data/A200807
Folder/10.123.124.20/pm_data/A200807
Folder/10.123.124.20/pm_data/A200808... (4 Replies)
Hi,
I have a small issue while using variables for a file name in UNIX.
I have file name like "abc def 123.txt"
Folder will be in /zzz/xxx/yyy
I created 2 variables Folder = '/zzz/xxx/yyy'
file = 'abc def 123.txt'
While using this in grep command i am... (6 Replies)
Hi All,
I have a requirement to monitor the sub-directories under /home in a way that if the the folder size increases by 30 GB in a span of like an hour then it needs to send email alerts listing what as the actual size was and what's the current size which the subject listing the sub-directory... (25 Replies)
Hello *nix friends,
I've written a shell script that allow web admin's to copy file/folder from a development site to the production site. It's more or less a poor man SVN.
I'm posting the script here because I was able to get many questions answered through this forum and also, I want to... (4 Replies)
Have had hidden/interrupted folder.
It is on a NTFS-partition I use for OS and Bootcamp.
I think that the problem is a HFS+ problem.
I happened with all the folder which had a slash "/" in their folder name.
So for example I had the folder "test/rand".
Recently it disappeared from finder. In... (9 Replies)
Hello,
I'm on HP Unix and in a Job, I tried to extract all files from a folder, and replace the extension (.xxxx) by '*' , remove duplicates and move the result in a file..
Example :
Folder has : ABC, CCC.txt, CCC.sf, CCC.sfd, DDD
I need to generate and output file with :
... (6 Replies)
I'm working on updates to the mobile phone view, and it's going to look much better I think. Here are some current prototypes:
Prototype Mobile Home Page:
https://www.unix.com/members/1-albums214-picture690.jpg
Prototype Mobile Search Page:
... (43 Replies)