[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] extracting info in perl from cyrus imap
On Mon, Aug 11, 2003 at 09:55:13PM +0100, Rob Keeling wrote:
>
> @mailboxes = $imapcon->list('user.rob*');
> my $boxname;
> my $mbox;
> print "max records $#mailboxes \n";
> foreach $mbox( [at] mailboxes) {
> print ".";
> print "$mbox\n";
> }
That's because list returns a list of arrays containing the mailbox
name, attributes and the separator. So, you'll have to just print the
first element of the array out.
HTH.
--
Arnold's Laws of Documentation:
(1) If it should exist, it doesn't.
(2) If it does exist, it's out of date.
(3) Only documentation for useless programs transcends the
first two laws.
___________________________________________________________________
Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html
GNU the choice of a complete generation.