;;; gnus-offline.el --- To process mail & news at offline environment.
-;;; $Id: gnus-offline.el,v 1.1.2.5.2.36.4.2 1999-08-20 23:20:32 czkmt Exp $
+;;; $Id: gnus-offline.el,v 1.1.2.5.2.36.4.3 1999-08-25 14:29:18 czkmt Exp $
;;; Copyright (C) 1998 Tatsuya Ichikawa
;;; Yukihiro Ito
:group 'gnus-offline
:type 'function)
+(defcustom gnus-offline-agent-automatic-expire t
+ "*Non-nil means expire articles pn every session."
+ :group 'gnus-offline
+ :type 'boolean)
+
;; These variables should be customized using `gnus-offline-customize',
;; not by `customize'.
(if (eq gnus-offline-articles-to-fetch 'mail)
(gnus-offline-restore-mail-group-level))
(if (eq gnus-offline-news-fetch-method 'nnagent)
- (or gnus-agent-expire-all
- (gnus-offline-agent-expire)))
+ (gnus-offline-agent-expire))
(if (and (featurep 'xemacs)
(fboundp 'play-sound-file))
(ding nil 'drum)
(defun gnus-offline-agent-expire ()
"*Expire expirable article on News group."
(interactive)
- (gnus-agent-expire))
+ (when gnus-offline-agent-automatic-expire
+ (let ((gnus-agent-expire-all (if (eq 0 gnus-agent-expire-days)
+ nil
+ gnus-agent-expire-all)))
+ (gnus-agent-expire))))
;;
;; Menu.
;;