logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Email::Folder::Reader - reads raw RFC822 mails from a box

Authors

       •   Simon Wistow <simon@thegestalt.org>

       •   Richard Clamp <richardc@unixbeard.net>

       •   Pali <pali@cpan.org>

Methods

new($filename,%options)
       your standard class-method constructor

   ->next_message
       returns the next message from the box, or false if there are no more

   ->messages
       Returns all the messages in a box

Name

       Email::Folder::Reader - reads raw RFC822 mails from a box

Synopsis

        use Email::Folder::Reader;
        my $box = Email::Folder::Reader->new('somebox');
        print $box->messages;

       or, as an iterator

        use Email::Folder::Reader;
        my $box = Email::Folder::Reader->new('somebox');
        while ( my $mail = $box->next_message ) {
            print $mail;
        }

Version

       version 0.860

See Also