X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fimap%2Fimap_acl.c;h=11b400b9ee0c8a9c17cc0408d6f41b70beb362ee;hb=8c47559cb5ae97ec0fa35660ee16fd61a9451c72;hp=c54340a497b5f18ec69daec59305c16ab86e48b2;hpb=939ba3f9a9da345cc3bf48e646ef5787074ac05d;p=citadel.git diff --git a/citadel/modules/imap/imap_acl.c b/citadel/modules/imap/imap_acl.c index c54340a49..11b400b9e 100644 --- a/citadel/modules/imap/imap_acl.c +++ b/citadel/modules/imap/imap_acl.c @@ -3,6 +3,22 @@ * * Functions which implement RFC2086 (and maybe RFC4314) (IMAP ACL extension) * + * + * Copyright (c) 2007-2009 by the citadel.org team + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ @@ -146,7 +162,7 @@ void imap_getacl(int num_parms, char *parms[]) { /* * Search for the specified room or folder */ - ret = imap_grabroom(roomname, parms[2], 0); + ret = imap_grabroom(roomname, parms[2], 1); if (ret != 0) { cprintf("%s NO Invalid mailbox name or access denied\r\n", parms[0]); @@ -219,7 +235,7 @@ void imap_listrights(int num_parms, char *parms[]) { /* * Search for the specified room/folder */ - ret = imap_grabroom(roomname, parms[2], 0); + ret = imap_grabroom(roomname, parms[2], 1); if (ret != 0) { cprintf("%s NO Invalid mailbox name or access denied\r\n", parms[0]); @@ -294,7 +310,7 @@ void imap_myrights(int num_parms, char *parms[]) { return; } - ret = imap_grabroom(roomname, parms[2], 0); + ret = imap_grabroom(roomname, parms[2], 1); if (ret != 0) { cprintf("%s NO Invalid mailbox name or access denied\r\n", parms[0]);