]> code.citadel.org Git - citadel.git/blobdiff - citadel/modules/imap/imap_acl.c
HUGE PATCH. This moves all of mime_parser.c and all
[citadel.git] / citadel / modules / imap / imap_acl.c
index 1632532db3675e21f73983dc17a03295fad1b946..55a010982ec870d2851a8c753800fed8badf6f68 100644 (file)
@@ -31,6 +31,7 @@
 #include <ctype.h>
 #include <string.h>
 #include <limits.h>
+#include <libcitadel.h>
 #include "citadel.h"
 #include "server.h"
 #include "sysdep_decls.h"
@@ -42,7 +43,6 @@
 #include "policy.h"
 #include "database.h"
 #include "msgbase.h"
-#include "tools.h"
 #include "internet_addressing.h"
 #include "serv_imap.h"
 #include "imap_tools.h"
@@ -176,9 +176,9 @@ void imap_getacl(int num_parms, char *parms[]) {
                cdb_free(cdbus);
 
                CtdlRoomAccess(&CC->room, &temp, &ra, NULL);
-               if (strlen(temp.fullname) > 0) {
+               if (!IsEmptyStr(temp.fullname)) {
                        imap_acl_flags(rights, ra);
-                       if (strlen(rights) > 0) {
+                       if (!IsEmptyStr(rights)) {
                                cprintf(" ");
                                imap_strout(temp.fullname);
                                cprintf(" %s", rights);