(nnimap-request-newgroups): Eschew member-if.
authorDave Love <fx@gnu.org>
Mon, 21 Aug 2000 21:53:27 +0000 (21:53 +0000)
committerDave Love <fx@gnu.org>
Mon, 21 Aug 2000 21:53:27 +0000 (21:53 +0000)
lisp/nnimap.el

index 9da4c0f..fddc682 100644 (file)
@@ -997,10 +997,12 @@ function is generally only called when Gnus is shutting down."
                        nnimap-list-pattern))
        (dolist (mbx (imap-mailbox-lsub "*" (car pattern) nil 
                                        nnimap-server-buffer))
-         (or (member-if (lambda (mailbox)
-                          (string= (downcase mailbox) "\\noselect"))
-                        (imap-mailbox-get 'list-flags mbx
-                                          nnimap-server-buffer))
+         (or (catch 'found
+               (dolist (mailbox (imap-mailbox-get 'list-flags mbx
+                                                  nnimap-server-buffer))
+                 (if (string= (downcase mailbox) "\\noselect")
+                     (throw 'found t)))
+               nil)
              (let ((info (nnimap-find-minmax-uid mbx 'examine)))
                (when info
                  (insert (format "\"%s\" %d %d y\n"