Skip Menu |

This queue is for tickets about the Mail-IMAPClient CPAN distribution.

Report information
The Basics
Id: 62979
Status: rejected
Priority: 0/
Queue: Mail-IMAPClient

People
Owner: Nobody in particular
Requestors: alfonso.caponi [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



CC: phil [...] perkpartners.com
Subject: delete_message
Date: Sun, 14 Nov 2010 17:19:58 +0100
To: bug-Mail-IMAPClient [...] rt.cpan.org
From: alfonso caponi <alfonso.caponi [...] gmail.com>
Hi, I'm using the last version of your module on ubuntu. In particular I've a problem with "delete_message" function using the my Gmail account. $imap->delete_message($msgid) or my @msgs = $imap->seen; scalar(@msgs) and $imap->delete_message(\@msgs) or die "Could not delete_message: $@\n"; or my $msgs = scalar($imap->seen); scalar(@$msgs) and $imap->delete_message($msgs) or die "Could not delete_message: $@\n"; not seems works fine. No errors or warnings but the message is not deleted! :( Can you help me please? Thank you, AL
Subject: Re: [rt.cpan.org #62979] delete_message
Date: Mon, 15 Nov 2010 00:30:07 -0500
To: bug-Mail-IMAPClient [...] rt.cpan.org
From: Phil Pearl (Lobbes) <phil [...] perkpartners.com>
Hi Alfonso, Show quoted text
> In particular I've a problem with "delete_message" function using the > my Gmail account. > > $imap->delete_message($msgid)
... Show quoted text
> not seems works fine. No errors or warnings but the message is not > deleted! :(
Did you try to 'expunge' after flagging the message for deletion? Below is a cut-n-paste from the documentation (which needs some fixing, but still applies): http://search.cpan.org/dist/Mail-IMAPClient/lib/Mail/IMAPClient.pod#delete [... snip ...] ADDITIONAL NOTE: In the grand tradition of the IMAP protocol, deleting a message doesn't actually delete the message. Really. If you want to make sure the message has been deleted, you need to expunge the folder (via the "expunge" method, which is implemented via the default method). Or at least "close" it. This is generally considered a feature, since after deleting a message, you can change your mind and undelete it at any time before your "expunge" or "close". [... snip ...] See also: http://search.cpan.org/dist/Mail-IMAPClient/lib/Mail/IMAPClient.pod#expunge and http://search.cpan.org/dist/Mail-IMAPClient/lib/Mail/IMAPClient.pod#uidexpunge Hopefully this helps! Phil
Rejecting the bug at this point as there has been no more details provided since my last response. Please reopen if you have more details to provide.