(gnus-group-nnimap-edit-acl): Check if server support ACL's.
authorSimon Josefsson <jas@extundo.com>
Sun, 24 Sep 2000 19:36:25 +0000 (19:36 +0000)
committerSimon Josefsson <jas@extundo.com>
Sun, 24 Sep 2000 19:36:25 +0000 (19:36 +0000)
lisp/gnus-group.el

index 7f973fd..3d580d9 100644 (file)
@@ -2423,8 +2423,9 @@ score file entries for articles to include in the group."
       (error "Killed group; can't be edited"))
     (unless (eq (car (setq method (gnus-find-method-for-group group))) 'nnimap)
       (error "%s is not an nnimap group" group))
-    (gnus-edit-form (setq acl (nnimap-acl-get mailbox (cadr method)))
-                   (format "Editing the access control list for `%s'.
+    (unless (setq acl (nnimap-acl-get mailbox (cadr method)))
+      (error "Server does not support ACL's"))
+    (gnus-edit-form acl (format "Editing the access control list for `%s'.
 
    An access control list is a list of (identifier . rights) elements.