Medlen, Jiri wrote:


$imap->select($folder) or die "Could not select: [EMAIL PROTECTED]"; # connect to the folder 'INBOX/Parent/child'

# get a count of the messages that are present at the time the script is run
my $msgcount = $imap->message_count($folder);



From the documentation re 'message_count':

"Note that RFC2683 contains warnings about the use of the IMAP STATUS command (and thus the status method and therefore the message_count method) against the currenlty selected folder."

I don't quite know what that means, but I would try doing:
my $msgcount = $imap->message_count($folder);

*before* doing:
$imap->select($folder)  or die "Could not select: [EMAIL PROTECTED]";

I don't use this module ... so I can't test ... hth.

Cheers,
Rob

--
Any emails containing attachments will be deleted from my ISP's mail server before I even get to see them. If you wish to email me an attachment, please provide advance warning so that I can make the necessary arrangements.


_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to