Net::IMAP::Simple::Gmail - Gmail specific support for Net::IMAP::Simple
use Net::IMAP::Simple::Gmail; my $server = 'imap.gmail.com'; my $imap = Net::IMAP::Simple::Gmail->new($server); $imap->login($user => $pass); my $nm = $imap->select('INBOX'); for(my $i = 1; $i <= $nm; $i++) { # Get labels on message my $labels = $imap->get_labels($msg); }
This module is a subclass of Net::IMAP::Simple::SSL that includes specific support for Gmail IMAP Extensions. Besides the gmail specific methods the interface is identical.
my $labels = $imap->get_labels($msgid);
Returns an arrayref of all labels on the message.
Net::IMAP::Simple, perl.
James Powell
Copyright (c) 2013 James Powell. All rights reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Net::IMAP::Simple::Gmail, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::IMAP::Simple::Gmail
CPAN shell
perl -MCPAN -e shell install Net::IMAP::Simple::Gmail
For more information on module installation, please visit the detailed CPAN module installation guide.