raw access to imap quotas, with mail user

Felix Cuello felix at qodiga.com
Sun Sep 19 20:21:29 EDT 2004


On Sun, Sep 19, 2004 at 10:49:03PM -0400, Derrick J Brashear wrote:
> So write simple C code and exec it (and collect the result) from perl?
That's the problem... PERL is running as apache access. I wrote C code and
compile it [using h2xs] as PERL Package [because i don't want to do an exec].
The problem is that PERL is running as apache access, and this user is added
to mail group, but mail group doesn't have access to /var/imap/quota.

The C code implements a method in this package called:

int percent( char* mailbox )

That returns percentaje used by the user on this mailbox. It works with
cyrus/root access... but i need to access with mail user access.

[i don't want to put apache into the cyrus access, just because i want to
read quota, not the whole mailbox]

regards,

Felix


-- 
Felix Cuello
felix at qodiga.com
- 1509 -

Q:	Why do WASPs play golf ?
A:	So they can dress like pimps.

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list