Subject: | issues when email don't have messageId |
my $mgr = Mail::Box::Manager->new;
my $folder = $mgr->open(
type => 'pop3',
username => $CONFIG->{'username'},
password => $CONFIG->{'password'},
server_name => $CONFIG->{'server_name'},
access => 'rw',
);
my @messages = $folder->messages;
foreach my $message (@messages) {
my $message_id = $message->messageId;
my $msg = $folder->messageId($message_id);
if (not defined $msg ) {
print "email without messageId";
}
}
with one bad(invalid?) email without messageId, the function
$folder->messageId() fails , because $message->messageId returns one id
but is not the messageId of message because message it self don't have one.
but I need one unique value to know what message should delete later.
I hope that explain me clear, if not please ask me what information do
you need.
Or how can get $message again from $folder ?
Thanks,