http://qs321.pair.com?node_id=542936

Plankton has asked for the wisdom of the Perl Monks concerning the following question:

Friends, I have a lot of IMAP mailboxes to create, so I thought I would use Cyrus::IMAP::Shell to run a script that would create them for me. Here's what I am doing along with the output I am getting ...

[plankton@mail1 SETUPIMAP]$ cat mbcreate connect mail1 cm user.userA cm user.userB ... [plankton@mail1 SETUPIMAP]$ perl -MCyrus::IMAP::Shell -e 'run("mbcreat +e")' cyradm> [plankton@mail1 SETUPIMAP]$ [plankton@mail1 SETUPIMAP]$ cyradm --user=cyrus mail1 IMAP Password: mail1.snakehandlers.net> lm user.plankton (\HasNoChildren) mail1.snakehandlers.net> quit [plankton@mail1 SETUPIMAP]$
... It seems to me that the mailboxes did not get created because I did not connect to imapd because I did not supply a password. Is that the case? If so how would I supply the password?

Thanks