- SEE ALSO
Email::Folder::Search - wait and search emails from mailbox
Search email from mailbox file. This module is mainly to test that the emails are received or not.
use Email::Folder::Search; my $folder = Email::Folder::Search->new('/var/spool/mbox'); my %msg = $folder->search(email => 'email@example.com', subject => qr/this is a subject/); $folder->clear();
takes the name of a folder, and a hash of options
The seconds that search will wait if the email cannot be found.
get emails with receiver address and subject(regexp). Return an array of messages which are hashref.
my $msgs = search(email => 'firstname.lastname@example.org', subject => qr/this is a subject/);
Reset the mailbox
clear the content of mailbox
init Email folder for test
Same as perl