[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] extracting info in perl from cyrus imap
Firstly thanks to Matthew and Dave for the responses.
----- Original Message -----
From: "Matthew Collins" <matthew [at] janes.demon.co.uk>
To: <shef-lug [at] list.sheflug.org.uk>
Sent: Monday, August 11, 2003 10:55 PM
Subject: 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.
How do I do that, I seem to have tried most permutations. You may have
guessed that I am not a perl programmer!
Thanks
Rob Keeling
___________________________________________________________________
Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html
GNU the choice of a complete generation.