(gnus-clean-old-newsrc): Remove totally bogus `unexists' entries.
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Tue, 10 Apr 2012 22:04:13 +0000 (00:04 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Tue, 10 Apr 2012 22:04:13 +0000 (00:04 +0200)
lisp/ChangeLog
lisp/gnus-start.el

index 274667f..5a2d9b4 100644 (file)
@@ -1,5 +1,8 @@
 2012-04-10  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * gnus-start.el (gnus-clean-old-newsrc): Remove totally bogus
+       `unexists' entries.
+
        * nnimap.el (nnimap-update-info): None of the articles below the active
        low-water mark exist.
 
index 44d4259..7b7018e 100644 (file)
@@ -2299,6 +2299,12 @@ If FORCE is non-nil, the .newsrc file is read."
 
 (defun gnus-clean-old-newsrc (&optional force)
   (when gnus-newsrc-file-version
+    ;; Remove totally bogus `unexists' entries.  The name is
+    ;; `unexist'.
+    (let ((exist (assoc 'unexists (gnus-info-marks info))))
+      (when exist
+       (gnus-info-set-marks
+        info (delete exist (gnus-info-marks info)))))
     (when (or force
              (< (gnus-continuum-version gnus-newsrc-file-version)
                 (gnus-continuum-version "Ma Gnus v0.03")))