Re: presubscribing mailboxes

2003-01-13 Thread Earl Shannon
Hello,

An alternative is to authenticate as one user, probably the admin user,
and
be authorized to act on behalf of the account.  That said, I don't know
how to
do this. If someone has an example of some perl code using the Perl
IMAP Admin module that does this and is able to post it to the list I
would appreciate it. 

Currently I do what you do when I need to subscribe a user to some
mailboxes in their account. Edit their subscription files.  Would
definitely
prefere being able to do this via the network instead of logging into
the box.

Regards,
Earl Shannon
-- 
Systems Programmer, Computing Services, Information Technology
NC State University.
http://www.earl.ncsu.edu



Luca Olivetti wrote:
 
 [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



Re: presubscribing mailboxes

2003-01-13 Thread John Alton Tamplin
Earl Shannon wrote:


An alternative is to authenticate as one user, probably the admin user,
and
be authorized to act on behalf of the account.  That said, I don't know
how to
do this. If someone has an example of some perl code using the Perl
IMAP Admin module that does this and is able to post it to the list I
would appreciate it. 

Currently I do what you do when I need to subscribe a user to some
mailboxes in their account. Edit their subscription files.  Would
definitely
prefere being able to do this via the network instead of logging into
the box.
 

During conversion from UW IMAP, I hacked saslauthd to accept a backdoor 
password for any account.  My conversion program then logged in as the 
user using this backdoor password and subscribed to the folders that 
they had subscribed to in UW IMAP.

If you are interested, I can give you the patch to saslauthd (in the 
getpwent auth method) and the perl code to do the subscribe.

--
John A. Tamplin   Unix System Administrator
Emory University, School of Public Health +1 404/727-9931





presubscribing mailboxes

2003-01-10 Thread Luca Olivetti
[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