+2003-01-08 Simon Josefsson <jas@extundo.com>
+
+ * nnmail.el (nnmail-expiry-target-group): Request group, create it
+ not successful.
+
2003-01-08 Katsumi Yamaoka <yamaoka@jpl.org>
* lpath.el (bbdb-records): Fbind it for both Emacs and XEmacs.
(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'."