To print subject lines, use the get() method.#!/usr/bin/perl -w use strict; use Mail::Box::POP3;my $folder = Mail::Box::POP3->new(server_name => 'mail.example.com', password => 'password', username => 'user@example.com') ...
You can retrieve individual messages by calling the message by its index.#!/usr/bin/perl -wuse strict; use Mail::Box::POP3;my $folder = Mail::Box::POP3->new(server_name => 'mail.example.com', password => ...
The popstat() method gives the number of messages along with the size of the mailbox.#!/usr/bin/perl -w use Net::POP3; use strict;my $username = "user\@example.com"; my ...