presubscribing mailboxes

Luca Olivetti luca at wetron.es
Fri Jan 10 02:42:26 EST 2003


[sent this yesterday but didn't appear on the list. something wrong with 
the list server?]

When I create a new user, I create some extra mailboxes:

user.name.sent
user.name.drafts
user.name.templates

While we were using netscape 4, during the first login it would
subscribe to all existing mailboxes, now that we've switched to mozilla
it doesn't, so I have to presubscribe these mailboxes while creating the
user.
The only way I found is a hack I'm not really happy with:

SUBFILE=/var/lib/imap/user/$initial/$LOGIN.sub
echo -e "user.$LOGIN.sent\011" > $SUBFILE
echo -e "user.$LOGIN.plantillas\011" >> $SUBFILE
echo -e "user.$LOGIN.borradores\011" >> $SUBFILE
chown cyrus.mail $SUBFILE
chmod 600 $SUBFILE

Is there a better way?

TIA
-- 
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004      Fax +34 93 5883007






More information about the Info-cyrus mailing list