Email::Store::Date - Provides a Time::Piece object representing a date for the mail
Remember to create the database table:
% make install % perl -MEmail::Store="..." -e 'Email::Store->setup'
And now:
print $mail->date->ymd,"\n";
or
$mail->year; $mail->month; $mail->day;
You can also search for all mails between two unix epochs
# get all mails in the last day my $time = time(); my $day = 24*60*60; Email::Store::Mail->search_between($time, $time-$day);
Email::Store::Mail, Time::Piece.
Simon Wistow, simon@thegestalt.org
simon@thegestalt.org
This module is distributed under the same terms as Perl itself.
To install Email::Store, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Email::Store
CPAN shell
perl -MCPAN -e shell install Email::Store
For more information on module installation, please visit the detailed CPAN module installation guide.