GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Email::Folder(3) User Contributed Perl Documentation Email::Folder(3)

Email::Folder - read all the messages from a folder as Email::Simple objects

version 0.860

 use Email::Folder;

 my $folder = Email::Folder->new("some_file");

 print join "\n", map { $_->header("Subject") } $folder->messages;

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.

Returns a list containing all of the messages in the folder. Can only be called once as it drains the iterator.

acts as an iterator. reads the next message from a folder. returns false at the end of the folder

Takes a raw RFC822 message and blesses it into a class.

By default this is an Email::Simple object but can easily be overridden 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;

read-only accessor to the underlying Email::Reader subclass instance

Email::LocalDelivery, Email::FolderType, Email::Simple

  • Simon Wistow <simon@thegestalt.org>
  • Richard Clamp <richardc@unixbeard.net>
  • Pali <pali@cpan.org>

This software is copyright (c) 2006 by Simon Wistow.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

2016-03-05 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.