How to mark mails in Gmail as 'read' and Delete them using Mail::Webmail::Gmail, using Perl script? -
using perl , need read mails in gmail, mark them 'read' , delete them.
i have tried below code given in http://search.cpan.org/dist/mail-webmail-gmail/lib/mail/webmail/gmail.pm
use mail::webmail::gmail; use data::dumper; $gmail = mail::webmail::gmail->new( username => 'user@gmail.com', password => 'password', ); print dumper $gmail; @labels = $gmail->get_labels(); print dumper @labels; $messages = $gmail->get_messages( label => $labels[0] ); print dumper $messages;
not able labels, messages. missing here ?
is there other way achieve these tasks in perl.
thanks in advance. subhash
that module last updated in 2006 , documentation says:
because gmail in beta testing, expect module break make updates thier interface. attempt keep module in line changes make, but, if after updating newest version of module, feature require still doesn't work, please contact me issue.
you try contacting author, ten years since last release, looks lost interest.
but gmail has imap interface. should able want module mail::imapclient.
Comments
Post a Comment