[imp] IMAP ACLs [PATCH]

Chris Hastie lists at oak-wood.co.uk
Thu Feb 6 08:44:59 PST 2003


On Tue, 4 Feb 2003, Adam Tauno Williams <adam at morrison-ind.com> wrote
>Also,  I'm a member of group cis,  and
>group:cis is listed in the current permissions with the "a" privilage,  but it
>says I don't have permission to change it.

Adam

perhaps you can help me out a bit with this group stuff - I don't have 
group support so I can't really look into this myself.

It occurs to me that the IMAP MYRIGHTS command may be the way to 
establish if a user can administer a folder. I'm assuming that the 
results of this command represent what the user can actually do, after 
all their group memberships have been taken into account (RFC2086 is not 
hugely clear on this, but it seems a reasonable assumption).

Can you try telneting in to your IMAP server, logging in as adam and 
then issuing the command

x MYRIGHTS <folder>

where <folder> is the name of the folder that caused you the problems - 
the one which does not include user adam in the ACL, but does include 
group:cis.

Does the response to this indicate that you have 'a' privileges? If so, 
I think this where I should be going with IMP_ACL_rfc2086::canEdit(). 
(The existing fix is a bit of kludge, it just blindly returns true no 
matter what and leaves it to the server to say 'NO' if you don't have 
permissions)
-- 
Chris Hastie


More information about the imp mailing list