X-Git-Url: https://cgit.sxemacs.org/?a=blobdiff_plain;f=lisp%2Fnnmail.el;h=b2336e13b643c0ec4ac9958e75d51b86b2a203ff;hb=c85ff27626350a909ee39474fecac012fec8cd26;hp=e5af75419b45f733f9d6274f5360910dd8857dce;hpb=4734d21199d9edaff98a78f2eee9953bc2bb96f1;p=gnus diff --git a/lisp/nnmail.el b/lisp/nnmail.el index e5af75419..b2336e13b 100644 --- a/lisp/nnmail.el +++ b/lisp/nnmail.el @@ -1,8 +1,6 @@ ;;; nnmail.el --- mail support functions for the Gnus mail backends -;; Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, -;; 2004, 2005, 2006, 2007, 2008, 2009, 2010 -;; Free Software Foundation, Inc. +;; Copyright (C) 1995-2011 Free Software Foundation, Inc. ;; Author: Lars Magne Ingebrigtsen ;; Keywords: news, mail @@ -1150,6 +1148,7 @@ FUNC will be called with the group name to determine the article number." (setq nnmail-split-trace nil)) (if (or (and (symbolp nnmail-split-methods) (fboundp nnmail-split-methods)) + (not (consp (car-safe nnmail-split-methods))) (and (listp nnmail-split-methods) ;; Not a regular split method, so it has to be a ;; fancy one. @@ -1915,8 +1914,9 @@ If TIME is nil, then return the cutoff time for oldness instead." (unless (eq target 'delete) (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) + (let ((group-art (gnus-request-accept-article target nil nil t))) + (when (and (consp group-art) + (cdr group-art)) (gnus-group-mark-article-read target (cdr group-art)))))))) (defun nnmail-fancy-expiry-target (group)