Created mailboxes are not showing up.
JLB
jlb at twu.net
Mon Dec 29 15:25:16 EST 2003
Hi gang.
Using a Perl script called 'add-cyrus-user', using Cyrus::IMAP::Admin, I
am able to create a user's "inbox"...
...and THAT'S IT.
In other words:
This snippet works:
if (!$client->create($mbox, $partition)) {
die "failed to create mailbox [$mbox]";
}
if (!$client->setacl($mbox, cyrus => 'all')) {
die "failed to give cyrus user permissions for [$mbox]";
}
THIS snippet, however, SEEMS TO work-- it returns no errors, and the
appropriate folders are created, one folder for each mailbox (Sent, Trash,
and Drafts), but the user cannot see them...
$client->create("$mbox.Trash", $partition);
$client->setacl("$mbox.Trash", cyrus => 'all');
$client->create("$mbox.Sent", $partition);
$client->setacl("$mbox.Sent", cyrus => 'all');
$client->create("$mbox.Drafts", $partition);
$client->setacl("$mbox.Drafts", cyrus => 'all');
In other words, although it SEEMS for all the world like it succeeded (and
YES, I DID try wrapping a similar if/then around one of those, to see if,
say, the first line to create the Trash mailbox was failing. IT WAS NOT
FAILING; no error was returned, and hence the script did not die.), it
didn't.
Please HEEEEEEEEEEEEEEELP!!!!!!!!!! Is there something I am forgetting
here? Why would the calls to create() not error, and create the
appropriate folders, but the user logs in and all they see is Inbox?
Other user accounts on the system, users whose accounts were set up
earlier and by another admin, work just fine... they can see Inbox, Sent,
Trash, etc...
And I can see no difference in the layouts of the directory structures:
ls -lR /var/spool/imap/user/foo3 (a new user, ONLY INBOX SHOWS UP)
------------------------------------------------------------------------
/var/spool/imap/user/foo3:
total 24
drwx------ 2 cyrus mail 4096 Dec 29 12:45 Drafts
drwx------ 2 cyrus mail 4096 Dec 29 12:45 Sent
drwx------ 2 cyrus mail 4096 Dec 29 12:45 Trash
-rw------- 1 cyrus mail 4 Dec 29 12:45 cyrus.cache
-rw------- 1 cyrus mail 166 Dec 29 12:45 cyrus.header
-rw------- 1 cyrus mail 76 Dec 29 12:45 cyrus.index
/var/spool/imap/user/foo3/Drafts:
total 12
-rw------- 1 cyrus mail 4 Dec 29 12:45 cyrus.cache
-rw------- 1 cyrus mail 166 Dec 29 12:45 cyrus.header
-rw------- 1 cyrus mail 76 Dec 29 12:45 cyrus.index
/var/spool/imap/user/foo3/Sent:
total 12
-rw------- 1 cyrus mail 4 Dec 29 12:45 cyrus.cache
-rw------- 1 cyrus mail 166 Dec 29 12:45 cyrus.header
-rw------- 1 cyrus mail 76 Dec 29 12:45 cyrus.index
/var/spool/imap/user/foo3/Trash:
total 12
-rw------- 1 cyrus mail 4 Dec 29 12:45 cyrus.cache
-rw------- 1 cyrus mail 166 Dec 29 12:45 cyrus.header
-rw------- 1 cyrus mail 76 Dec 29 12:45 cyrus.index
------------------------------------------------------------------------
ls -lR /var/spool/imap/user/jessietest (an OLD user, ALL FOLDERS SHOW)
------------------------------------------------------------------------
/var/spool/imap/user/jessietest/:
total 80
-rw-r--r-- 1 cyrus mail 1439 Jul 18 02:57 1.
-rw------- 1 cyrus mail 1229 Nov 19 12:16 103.
-rw------- 1 cyrus mail 874 Dec 6 06:35 104.
-rw------- 1 cyrus mail 2829 Dec 6 07:09 105.
-rw------- 1 cyrus mail 3047 Dec 6 07:09 106.
-rw------- 1 cyrus mail 2821 Dec 6 07:27 107.
-rw------- 1 cyrus mail 859 Dec 6 07:33 108.
-rw------- 1 cyrus mail 1491 Dec 7 07:15 109.
-rw------- 1 cyrus mail 1030 Dec 12 17:43 110.
-rw------- 1 cyrus mail 1086 Dec 12 17:45 111.
-rw-r--r-- 1 cyrus mail 1425 Jul 18 02:57 2.
drwx------ 2 cyrus mail 4096 Dec 10 20:24 Drafts
drwx------ 2 cyrus mail 4096 Jul 22 03:07 Sent
drwx------ 2 cyrus mail 4096 Nov 18 15:21 Sent Items
drwx------ 2 cyrus mail 4096 Jul 22 03:07 Trash
-rw------- 1 cyrus mail 10420 Dec 29 14:50 cyrus.cache
-rw------- 1 cyrus mail 171 Jul 22 03:07 cyrus.header
-rw------- 1 cyrus mail 648 Dec 29 14:50 cyrus.index
/var/spool/imap/user/jessietest/Drafts:
total 12
-rw------- 1 cyrus mail 4 Dec 10 20:24 cyrus.cache
-rw------- 1 cyrus mail 171 Dec 10 20:24 cyrus.header
-rw------- 1 cyrus mail 76 Dec 10 20:24 cyrus.index
/var/spool/imap/user/jessietest/Sent:
total 12
-rw------- 1 cyrus mail 4 Jul 22 03:07 cyrus.cache
-rw------- 1 cyrus mail 171 Jul 22 03:07 cyrus.header
-rw------- 1 cyrus mail 76 Jul 22 03:07 cyrus.index
/var/spool/imap/user/jessietest/Sent Items:
total 56
-rw-r--r-- 1 root root 666 Jul 21 23:13 1.
-rw-r--r-- 1 root root 588 Jul 21 23:13 10.
-rw-r--r-- 1 root root 588 Jul 21 23:13 2.
-rw-r--r-- 1 root root 599 Jul 21 23:13 3.
-rw-r--r-- 1 root root 590 Jul 21 23:13 4.
-rw-r--r-- 1 root root 588 Jul 21 23:13 5.
-rw-r--r-- 1 root root 588 Jul 21 23:13 6.
-rw-r--r-- 1 root root 588 Jul 21 23:13 7.
-rw-r--r-- 1 root root 587 Jul 21 23:13 8.
-rw-r--r-- 1 root root 592 Jul 21 23:13 9.
-rw------- 1 cyrus mail 5452 Nov 18 15:21 cyrus.cache
-rw------- 1 cyrus mail 171 Jul 23 19:26 cyrus.header
-rw------- 1 cyrus mail 596 Nov 18 15:21 cyrus.index
/var/spool/imap/user/jessietest/Trash:
total 12
-rw------- 1 cyrus mail 4 Jul 22 03:07 cyrus.cache
-rw------- 1 cyrus mail 171 Jul 22 03:07 cyrus.header
-rw------- 1 cyrus mail 76 Jul 22 03:07 cyrus.index
------------------------------------------------------------------------
Please help, help, help!!!
--
Jessica L. Blank, Systems Administrator, twu.net
More information about the Info-cyrus
mailing list