]> andersk Git - moira.git/commitdiff
Add an option to show lists that are neither groups nor mailing lists.
authorzacheiss <zacheiss>
Thu, 10 Aug 2000 01:58:40 +0000 (01:58 +0000)
committerzacheiss <zacheiss>
Thu, 10 Aug 2000 01:58:40 +0000 (01:58 +0000)
clients/moira/lists.c

index 80eff95daf8e5b2a842a590c6cde636d9b0f2d16..c3897e6bc9216205472ef35b3fb8dab21c0d0e6e 100644 (file)
@@ -843,7 +843,7 @@ int InterRemoveItemFromLists(int argc, char **argv)
 int ListByMember(int argc, char **argv)
 {
   char buf[BUFSIZ], temp_buf[BUFSIZ], *type, *name, **info;
-  Bool maillist, group;
+  Bool maillist, group, neither;
   struct mqelem *top, *elem;
 
   type = strdup("USER");
@@ -867,6 +867,10 @@ int ListByMember(int argc, char **argv)
                             TRUE)) == -1)
     return DM_NORMAL;
 
+  if ((neither = YesNoQuestion("Show Lists that are neither Maillists nor Groups (y/n) ?",
+                              TRUE)) == -1)
+    return DM_NORMAL;
+
   elem = top = GetListInfo(GLOM, type, name);
 
   while (elem)
@@ -875,6 +879,9 @@ int ListByMember(int argc, char **argv)
       if ((maillist == TRUE && !strcmp(info[GLOM_MAILLIST], "1")) ||
          (group == TRUE && !strcmp(info[GLOM_GROUP], "1")))
        Put_message(info[GLOM_NAME]);
+      if (neither == TRUE && !strcmp(info[GLOM_MAILLIST], "0") &&
+          !strcmp(info[GLOM_GROUP], "0"))
+       Put_message(info[GLOM_NAME]);
       elem = elem->q_forw;
     }
   FreeQueue(top);
This page took 0.465844 seconds and 5 git commands to generate.