Skip Menu |

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

Report information
The Basics
Id: 11103
Status: resolved
Priority: 0/
Queue: Mail-IMAPClient

People
Owner: Nobody in particular
Requestors: tallison [...] tacocat.net
Cc:
AdminCc:

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



Date: Wed, 19 Jan 2005 21:41:40 -0500
From: Tom Allison <tallison [...] tacocat.net>
To: bug-Mail-IMAPClient [...] rt.cpan.org
Subject: Mail::IMAPClient "bug"??
Using the following block of code: my $IMAP = Mail::IMAPClient->new( Server => 'mail.domain.net', User => 'mouse', Password => 'cheese', Uid => 1 ); foreach my $f (sort $IMAP->folders) { print $f,"\n"; # $IMAP->examine($f); my $ref = $IMAP->status($f, "RECENT UNSEEN MESSAGES"); print join("", @{$ref}),"\n----\n"; my @arr = ($$ref[1] =~ /([\w\.]+)\" \(\w+ (\d+) \w+ (\d+) \w+ (\d+)/o); print $$ref[1],"\n"; print join("\t", @arr),"\n"; my @f = $IMAP->status($f, "RECENT UNSEEN MESSAGES"); print join("", @f),"\n"; next; } Returns different answers for the array reference and the array on the same 'status' call. the reference includes three lines, the array has only the one. Drafts 25 STATUS Drafts (RECENT UNSEEN MESSAGES) * STATUS "Drafts" (MESSAGES 3 RECENT 0 UNSEEN 2) 25 OK Status completed. ---- * STATUS "Drafts" (MESSAGES 3 RECENT 0 UNSEEN 2) Drafts 3 0 2
new maintainer. Yes, what you see is as intended (I presume): all methods do the same; a slightly different result in scalar and list context. -- MarkOv