From 6d0112d9d097d309337bc3ec572d7958920cc14b Mon Sep 17 00:00:00 2001 From: yamaoka Date: Mon, 30 Jul 2001 02:39:01 +0000 Subject: [PATCH] * nnshimbun.el (nnshimbun-request-expire-articles): Bind `nnmail-expiry-wait-function' to nil if the group's parameter `expiry-wait' is specified by the user or the shimbun's default value is provided. --- ChangeLog | 7 +++++++ lisp/nnshimbun.el | 15 ++++++++++----- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1fb25e3..27d765b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2001-07-30 Katsumi Yamaoka + + * lisp/nnshimbun.el (nnshimbun-request-expire-articles): Bind + `nnmail-expiry-wait-function' to nil if the group's parameter + `expiry-wait' is specified by the user or the shimbun's default + value is provided. + 2001-07-27 Katsumi Yamaoka * lisp/gnus-msg.el (gnus-message-make-user-agent): New diff --git a/lisp/nnshimbun.el b/lisp/nnshimbun.el index 0b97298..b10fff2 100644 --- a/lisp/nnshimbun.el +++ b/lisp/nnshimbun.el @@ -668,15 +668,20 @@ and the NOV is open. The optional fourth argument FORCE is ignored." (let* ((expirable (copy-sequence articles)) (name (concat "nnshimbun+" server ":" group)) ;; If the group's parameter `expiry-wait' is non-nil, - ;; `nnmail-expiry-wait' is bound to that value, and - ;; `nnmail-expiry-wait-function' is bound to nil. - ;; See the source code of `gnus-summary-expire-articles'. - ;; Prefer the shimbun's default to `nnmail-expiry-wait' - ;; only when the group's parameter is nil. + ;; the value of the option `nnmail-expiry-wait' will be + ;; bound to that value, and the value of the option + ;; `nnmail-expiry-wait-function' will be bound to nil. + ;; See the source code of `gnus-summary-expire-articles' + ;; how does it work. If the group's parameter is not + ;; specified by user, the shimbun's default value will + ;; be used. (nnmail-expiry-wait (or (nnshimbun-find-parameter name 'expiry-wait t) (shimbun-article-expiration-days nnshimbun-shimbun) nnmail-expiry-wait)) + (nnmail-expiry-wait-function (if nnmail-expiry-wait + nil + nnmail-expiry-wait-function)) article end time) (save-excursion (set-buffer buffer) -- 1.7.10.4