Skip Menu |

This queue is for tickets about the Net-IMAP-Server CPAN distribution.

Report information
The Basics
Id: 47192
Status: rejected
Priority: 0/
Queue: Net-IMAP-Server

People
Owner: Nobody in particular
Requestors: jettero [...] cpan.org
Cc:
AdminCc:

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



Subject: Net::IMAP::Server::Mailbox::expunge() -- * \d+ EXPUNGE issue
Mailbox expunge ranges should return one of these lines for each deleted line: * 3 EXPUNGE * 4 EXPUNGE * 5 EXPUNGE But becuase Net::IMAP::Server::Mailbox::expunge() is subtracting the offset, the messages returned say this instead: * 3 EXPUNGE * 3 EXPUNGE * 3 EXPUNGE for my $m (@messages) { if ( $m->has_flag('\Deleted') and ( not $only or $only{ $m->sequence } ) ) { # push @ids, $m->sequence - $offset; push @ids, $m->sequence; delete $self->uids->{ $m->uid }; $offset++; $m->expunge; } elsif ($offset) { $m->sequence( $m->sequence - $offset ); } } (I'm finding stuff like this because I'm using Net::IMAP::Server for all the tests in Net::IMAP::Simple -- it's kindof debugging both.) -- If riding in an airplane is flying, then riding in a boat is swimming. 109 jumps, 44.4 minutes of freefall, 85.0 freefall miles.
Subject: Re: [rt.cpan.org #47192] Net::IMAP::Server::Mailbox::expunge() -- * \d+ EXPUNGE issue
Date: Sat, 20 Jun 2009 15:31:51 -0400
To: bug-Net-IMAP-Server <bug-net-imap-server [...] rt.cpan.org>
From: Alex Vandiver <alex [...] chmrr.net>
At Sat Jun 20 15:18:00 -0400 2009, Paul Miller via RT wrote: Show quoted text
> Mailbox expunge ranges should return one of these lines for each deleted > line: > > * 3 EXPUNGE > * 4 EXPUNGE > * 5 EXPUNGE > > But becuase Net::IMAP::Server::Mailbox::expunge() is subtracting the > offset, the messages returned say this instead: > > * 3 EXPUNGE > * 3 EXPUNGE > * 3 EXPUNGE
No, this is correct according to the RFC. Each EXPUNGE message takes place one at a time, and thus changes the offsets for all following EXPUNGE messages. See section 6.4.3 in the RFC, and note the example given there. - Alex -- Networking -- only one letter away from not working
Subject: Re: [rt.cpan.org #47192] Net::IMAP::Server::Mailbox::expunge() -- * \d+ EXPUNGE issue
Date: Sat, 20 Jun 2009 17:15:02 -0400
To: Alex Vandiver via RT <bug-Net-IMAP-Server [...] rt.cpan.org>
From: Paul Miller <jettero [...] cpan.org>
On Sat, Jun 20, 2009 at 03:32:14PM -0400, Alex Vandiver via RT wrote: Show quoted text
> No, this is correct according to the RFC. Each EXPUNGE message takes > place one at a time, and thus changes the offsets for all following > EXPUNGE messages. See section 6.4.3 in the RFC, and note the example > given there.
Oh, my mistake. I thought the example showed the original indexes, but I see now that it's calculated as you say. -- If riding in an airplane is flying, then riding in a boat is swimming. 109 jumps, 44.4 minutes of freefall, 85.0 freefall miles.