|
Currently I am trying to write a script to delete the entries in my spam filder that are
more than 7 days old.
I use the following call but besides the obvious error message about the deep recursion that was already reported here I would like to restrict the messages to those older than 7 days.
my $messages = $gmail->get_messages( label => $Mail::Webmail::Gmail::FOLDERS{ 'SPAM' } );
I guess once I got the full list I can probably go over the list (currently I have slightly over 50.000 SPAMs) and compare the time stamp using
$indv_email{ 'date_received' }
but would it be possible to provide this restriction to the get_message call and not to receive the list of additional messages ?
|