Skip Menu |
 

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

Report information
The Basics
Id: 33189
Status: resolved
Priority: 0/
Queue: Net-IMAP-Simple

People
Owner: jettero [...] cpan.org
Requestors: Andy.Spiegl [...] br-online.de
Cc:
AdminCc:

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



Subject: Bug in Net::IMAP::Simple ?
Date: Tue, 12 Feb 2008 19:14:01 +0100
To: bug-Net-IMAP-Simple [...] rt.cpan.org
From: Andy Spiegl <Andy.Spiegl [...] br-online.de>
Download (untitled) / with headers
text/plain 618b
Hi, first of all thanks a lot for the really nice perl modules Net::IMAP::Simple and Net::IMAP::Simple:SSL ! While playing around with it and trying to write my imap-biff tool I stumbled over a possible bug: The returned message numbers are not always correct. An example: $imap->select($folder) : 334 $imap->recent : 0 (counting over a loop) not $imap->seen($i) : 308 But imap STATUS says: 334 messages, 1 recent, 315 unseen Do you have any idea for the discrepancy? The Imap-Server is cyrus, btw. Thanks, Andy. -- We are Microsoft. Unix is irrelevant. Openness is futile. Prepare to be assimilated.
Download (untitled) / with headers
text/plain 427b
On Tue Feb 12 13:14:30 2008, Andy.Spiegl@br-online.de wrote: Show quoted text
> $imap->select($folder) : 334 > $imap->recent : 0 > (counting over a loop) not $imap->seen($i) : 308 > > But imap STATUS says: 334 messages, 1 recent, 315 unseen
If you can still reproduce this, I'd like to see a debug log. -- If riding in an airplane is flying, then riding in a boat is swimming. 107 jumps, 43.5 minutes of freefall, 83.4 freefall miles.
Download (untitled) / with headers
text/plain 572b
On Sat Jun 13 18:27:16 2009, JETTERO wrote: Show quoted text
> If you can still reproduce this, I'd like to see a debug log.
I haven't been able to reproduce this bug. I'm assuming it's something on the server side and I'm going to close this ticket. If it turns out I'm wrong, someone should go ahead and re-open it. ... hrm. I'm going to try the "stalled" status. Not sure what that status implies, but that's what really happened to this ticket. -- 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 #33189] Bug in Net::IMAP::Simple ?
Date: Wed, 17 Jun 2009 17:57:06 +0200
To: Paul Miller via RT <bug-Net-IMAP-Simple [...] rt.cpan.org>
From: "Dr. Andy Spiegl" <Andy.Spiegl [...] br-online.de>
Download (untitled) / with headers
text/plain 879b
Hi Paul, sorry for the late reply. I was on vacation during pentecoast. Show quoted text
> If you can still reproduce this, I'd like to see a debug log.
Yes, I can. I'll attach my test program and the debug log to this mail. Here is what I did: lama:~>imap-simple-info sub/amavis Warning: the returned message numbers are not always correct! folder sub/amavis: 3798 total, 0 new, 3778 unseen, 3778 old But the IMAP STATUS command says for this mail folder: 14 status sub/amavis (messages recent unseen) * STATUS sub/amavis (MESSAGES 3798 RECENT 0 UNSEEN 3709) 14 OK Completed And that's exactly what mutt says also: 3798 new, 3709 old Thanks, Andy. -- BAYERISCHER RUNDFUNK | Programmbereich Multimedia und Jugend Dr. Andy Spiegl | mailto:andy.spiegl@br-online.de Rundfunkplatz 1 | Fon +49 (0)89 5900 16062 D-80335 München | Fax +49 (0)89 5900 16120
Download imap-simple-info
text/plain 1.2k

Message body is not shown because sender requested not to inline it.

Download imap-simple.debug
text/plain 1.7m

Message body is not shown because sender requested not to inline it.

Download (untitled) / with headers
text/plain 552b
On Wed Jun 17 12:02:09 2009, Andy.Spiegl@br-online.de wrote: Show quoted text
> And that's exactly what mutt says also: 3798 new, 3709 old
Are you running the latest version? There've been a couple dev releases. These numbers don't seem to make sense to me. I might have to install cyrus and try it myself... ... I'm going to try your info script against google-apps-for-domains (gmail) later. Perhaps I'll see the same thing. -- 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.
Download (untitled) / with headers
text/plain 869b
On Wed Jun 17 15:22:42 2009, JETTERO wrote: Show quoted text
> On Wed Jun 17 12:02:09 2009, Andy.Spiegl@br-online.de wrote:
> > And that's exactly what mutt says also: 3798 new, 3709 old
> > Are you running the latest version? There've been a couple dev > releases. These numbers don't seem to make sense to me. I might have > to install cyrus and try it myself... > > ... I'm going to try your info script against google-apps-for-domains > (gmail) later. Perhaps I'll see the same thing. >
It looks to me like the vast majority of the messages whose flags you're querying ... aren't found. Not finding the message has the same end-program result as not having the \Seen flag since seen() doesn't seem to look for errors in a meaninful way. -- 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.
Download (untitled) / with headers
text/plain 455b
I claim this is as fixed as it can be in 1.1899_06 (dev release). I *think* any discrepancies relate either to unchecked errors (which can and should be checked now) or to Cyrus bugs. I have provided tests that show this stuff works correctly in t/15_ and it also seems to work right on Google's IMAP-a-like protocol. -- 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.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.