WWW::Mail15 - Connect to Mail15 service and download messages
use WWW::Mail15; my $browser = new WWW::Mail15; $browser->login("foo", "bar"); print $browser->folders; $browser->read_folder(0); # usually the inbox print $browser->get_mail(0,0)->subject; #get the data, and audit it print $browser->get_mail(0,0)->retrieve->accept;
Create a new WWW::Mail15 object with new, and then log in with your Mail15 username and password. This will allow you to use the folders method to look at the list of folders, read_folder to get messages list inside a folder, and get_mail to actually get the message data in form of WWW::Mail15::Message which supports these methods: =over 4
WWW::Mail15
new
folders
read_folder
get_mail
WWW::Mail15::Message
subject gives you the subject of the email,
subject
from gives you the sender of the email,
from
retrieve turns the email into a Mail::Audit object - see Mail::Audit for more details.
retrieve
Mail::Audit
delete moves it to your trash.
delete
WWW::Mechanize, Mail::Audit
Code template is shamelessly stolen from WWW::Hotmail module.
Sir Reflog, <reflog@mail15.com>
Copyright 2003 by Sir Reflog
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install WWW::Mail15, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Mail15
CPAN shell
perl -MCPAN -e shell install WWW::Mail15
For more information on module installation, please visit the detailed CPAN module installation guide.