From: Simon Josefsson Date: Wed, 8 Jan 2003 08:56:01 +0000 (+0000) Subject: (nnmail-expiry-target-group): Request group, create it X-Git-Url: http://cgit.sxemacs.org/?a=commitdiff_plain;h=455b963c6864bad5be34928b455fb3e6142f3da3;p=gnus (nnmail-expiry-target-group): Request group, create it not successful. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8fd63be5c..9a1791ec1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2003-01-08 Simon Josefsson + + * nnmail.el (nnmail-expiry-target-group): Request group, create it + not successful. + 2003-01-08 Katsumi Yamaoka * lpath.el (bbdb-records): Fbind it for both Emacs and XEmacs. diff --git a/lisp/nnmail.el b/lisp/nnmail.el index c5eef6c27..032fe931a 100644 --- a/lisp/nnmail.el +++ b/lisp/nnmail.el @@ -1748,9 +1748,11 @@ See the Info node `(gnus)Fancy Mail Splitting' for more details." (when (nnheader-functionp target) (setq target (funcall target group))) (unless (eq target 'delete) - (let ((group-art (gnus-request-accept-article target nil nil t))) - (when (consp group-art) - (gnus-group-mark-article-read target (cdr group-art))))))) + (when (or (gnus-request-group target) + (gnus-request-create-group target)) + (let ((group-art (gnus-request-accept-article target nil nil t))) + (when (consp group-art) + (gnus-group-mark-article-read target (cdr group-art)))))))) (defun nnmail-fancy-expiry-target (group) "Returns a target expiry group determined by `nnmail-fancy-expiry-targets'."