Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: birnbacs [...] web.de
Cc:
AdminCc:

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



Date: Thu, 11 Dec 2003 17:21:22 +0100
From: Sebastian Birnbach <birnbacs [...] web.de>
To: bug-Mail-IMAPClient [...] rt.cpan.org
Subject: Strange behaviour of fetch_hash() method
Hi, I find that the method fetch_hash() throws a bunch of warnings on the console if the currently selected folder does not contain any messages. Here is the subfunction I use, which you will find very straightforward: sub OutputFolderSize { # WARNINGS: # * will return 0 on error # * may change the folder that is currently selected # * the fetch_hash method will output eight warnings if $folder is empty my ($imap, $folder) = @_; $imap->examine($folder) or return 0; my $allsum = 0; my %hash = $imap->fetch_hash("RFC822.SIZE"); foreach my $key (keys(%hash)) { $allsum += $hash{$key}{"RFC822.SIZE"}; } return $allsum; } Apart from that: I love your module, we are using it to its limits in an effort to do bulk user migration from Exchange to SunONE. Should we find any more behaviours under stress load you will definitely hear from us. BTW: you would not happen to know of a way to determine the type of an IMAP folder on Exchange (task, mail, journal, contact, note, appointment)..? AFAWK there is no way to do it with RFC protocols :( take care Sebastian
New maintainer. Description of warnings too fague to do anythings with it. If you known more about detecting the Exchange folder types, then feel invited to contribute that knowledge. Until then, this bug report is put asleep. -- MarkOv