(nnmail-expiry-target-group): Protect against degenerate results from -accept-article.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Fri, 26 Nov 2010 02:33:00 +0000 (03:33 +0100)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Fri, 26 Nov 2010 02:33:00 +0000 (03:33 +0100)
lisp/ChangeLog
lisp/nnmail.el

index 4d094d1..92b30d1 100644 (file)
@@ -1,5 +1,8 @@
 2010-11-26  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * nnmail.el (nnmail-expiry-target-group): Protect against degenerate
+       results from -accept-article.
+
        * shr-color.el: Require cl when compiling.
 
        * nnheader.el (nnheader-update-marks-actions): Fix typo in last
index e5af754..06b464c 100644 (file)
@@ -1916,7 +1916,8 @@ If TIME is nil, then return the cutoff time for oldness instead."
       (when (or (gnus-request-group target)
                (gnus-request-create-group target))
        (let ((group-art (gnus-request-accept-article target nil t t)))
-         (when (consp group-art)
+         (when (and (consp group-art)
+                    (cdr group-art))
            (gnus-group-mark-article-read target (cdr group-art))))))))
 
 (defun nnmail-fancy-expiry-target (group)