Subscribe as admin for a user?

Kjetil Torgrim Homme kjetilho at ifi.uio.no
Wed Jul 12 12:35:51 EDT 2006


On Wed, 2006-07-12 at 11:48 -0400, Jason Englander wrote:
> Anyone know of a perl module or php function that will let the cyrus 
> administrator-user subscribe a mailbox for a user without 
> authenticating as that user and without using autocreate?

well, the Mail::IMAPClient module for Perl has a subscribe() method.
set AUTHUSER to log on as an admin.

> Would I break anything by modifying 
> /var/imap/user/X/joeschmo/joeschmo.sub?

it's unlikely that the user will do it simultaneously, so no.
we used to do that when we created new accounts.

> The user would definitely not be logged in at the time.

there you go, then.
-- 
Kjetil T.




More information about the Info-cyrus mailing list