(nnimap-split-find-rule): Fix.
authorSimon Josefsson <jas@extundo.com>
Sun, 2 Jul 2000 10:39:04 +0000 (10:39 +0000)
committerSimon Josefsson <jas@extundo.com>
Sun, 2 Jul 2000 10:39:04 +0000 (10:39 +0000)
lisp/ChangeLog
lisp/nnimap.el

index 82c2676..8e5fbb0 100644 (file)
@@ -3,6 +3,7 @@
        * nnimap.el (nnimap-open-connection): Don't look up virtual server
        name in authinfo (.authinfo now support ports, no need for the
        hack).
+       (nnimap-split-find-rule): Fix.
 
 2000-07-03  Paul Stodghill <stodghil@CS.Cornell.EDU>
 
index 8812e82..d02ccf4 100644 (file)
@@ -922,7 +922,9 @@ function is generally only called when Gnus is shutting down."
     element))
 
 (defun nnimap-split-find-rule (server inbox)
-  (if (listp (cadar nnimap-split-rule)) ;; extended format?
+  (if (and (listp nnimap-split-rule) (listp (car nnimap-split-rule))
+           (list (cdar nnimap-split-rule)) (listp (cadar nnimap-split-rule)))
+      ;; extended format
       (cadr (nnimap-assoc-match inbox (cdr (nnimap-assoc-match 
                                            server nnimap-split-rule))))
     nnimap-split-rule))