Skip Menu |

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

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

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

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



Subject: empty flags() returns scalar undef in list context
In flags(), undef is returned if no flags are found: $self->fetch($msg, "FLAGS") or return undef; This causes problems when called in list context as it returns a one-element list with undef instead of the empty list. E.g. causing problems in Mail::Transport::IMAP4::getflags(). Instead, just use a bare return to get undef in scalar context and an empty list in list context: $self->fetch($msg, "FLAGS") or return;
Right. Fix will be released in an hour. Thanks.