Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Below is what I get on my output. The first two lines are what is read from the script. I have two emails in my email account with the IDs it mentions. The second two lines are the ouput of what it is trying to delete. After every time I run the script the email IDs stay the same but the emails never delete.foreach my $to_delete (@ids) { $to_delete =~ s/Message\-id:\s+//i; $to_delete =~ s/<//g; $to_delete =~ s/>//g; print "trying to delete $to_delete<br>"; $pop->Delete($to_delete); } $pop->Close();
Can someone help me?Message-ID: <0016e646069637dafe049ec66ea8@google.com> Message-ID: <90e6ba3fd257d1d9da049ec67ca9@google.com> trying to delete 0016e646069637dafe049ec66ea8@google.com trying to delete 90e6ba3fd257d1d9da049ec67ca9@google.com
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can't delete emails from server
by Eliya (Vicar) on Mar 18, 2011 at 20:14 UTC | |
by Anonymous Monk on Mar 18, 2011 at 23:22 UTC |