Skip Menu |

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

Report information
The Basics
Id: 69464
Status: resolved
Priority: 0/
Queue: Net-IMAP-Client

People
Owner: Nobody in particular
Requestors: mss [...] apache.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 0.93
  • 0.95
Fixed in: 0.9501



Subject: get_summaries with array ref broken
According to the documentation accepts get_summaries an array ref as the first parameter. This doesn't work, I get this when I watch with Wireshark: IMAP Request: NIC4 UID FETCH ARRAY(0x1a2a1e0) (UID FLAGS INTERNALDATE RFC822.SIZE ENVELOPE BODYSTRUCTURE BODY.PEEK[HEADER.FIELDS (Message-Id)]) I copy & pasted the example from the summary, just replaced @msg_ids with @messages.
From: mss [...] apache.org
I'm sorry, get_summaries isn't broken. The Synopsis is wrong/misleading though. It says: # fetch all message ids my @messages = $imap->search('ALL'); But search() returns an array ref. So what you get here is an array @messages with a single element which is an array ref. I later passed a ref to @messages to get_summaries (as suggested by the Synopsis) and got the results I got. So this is a documentation bug instead.
On Thu Jul 14 06:55:35 2011, mss@apache.org wrote: Show quoted text
> I'm sorry, get_summaries isn't broken. The Synopsis is wrong/misleading > though. It says: > > # fetch all message ids > my @messages = $imap->search('ALL'); > > But search() returns an array ref. So what you get here is an array > @messages with a single element which is an array ref. I later passed a > ref to @messages to get_summaries (as suggested by the Synopsis) and got > the results I got. > > So this is a documentation bug instead.
Thank you. I will fix the synopsis in the next release.
This is a documentation problem, and has been fixed in v0.9501