Ignore groups that have no UIDNEXT values.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Fri, 1 Oct 2010 16:50:02 +0000 (18:50 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Fri, 1 Oct 2010 16:50:02 +0000 (18:50 +0200)
This sometimes happens on some groups that have no info.

lisp/ChangeLog
lisp/nnimap.el

index 622cdf4..ec0ef59 100644 (file)
@@ -1,3 +1,8 @@
+2010-10-01  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * nnimap.el (nnimap-update-info): Ignore groups that have no UIDNEXT
+       values.  This sometimes happens on some groups that have no info.
+
 2010-10-01  Teodor Zlatanov  <tzz@lifelogs.com>
 
        * gnus-registry.el (gnus-registry-install-nnregistry): Move the feature
index 70aa573..ff1d2b8 100644 (file)
@@ -990,7 +990,9 @@ textual parts.")
       (nnimap-update-info info (cdr (assoc group flags))))))
 
 (defun nnimap-update-info (info marks)
-  (when marks
+  (when (and marks
+            ;; Ignore groups with no UIDNEXT values.
+            (nth 4 marks))
     (destructuring-bind (existing flags high low uidnext start-article
                                  permanent-flags) marks
       (let ((group (gnus-info-group info))