aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/gnus/gnus-cus.el8
-rw-r--r--lisp/gnus/nnmail.el35
2 files changed, 22 insertions, 21 deletions
diff --git a/lisp/gnus/gnus-cus.el b/lisp/gnus/gnus-cus.el
index 66fa3e0590f..80459a7d62c 100644
--- a/lisp/gnus/gnus-cus.el
+++ b/lisp/gnus/gnus-cus.el
@@ -140,10 +140,10 @@ rules as described later).")
140 :format "%v")) "\ 140 :format "%v")) "\
141When to expire. 141When to expire.
142 142
143Overrides any `nnmail-expiry-wait' and `nnmail-expiry-wait-function' 143Overrides any `nnmail-expiry-wait' or `nnmail-expiry-wait-function'
144when expiring expirable messages. The value can either be a number of 144settings when expiring expirable messages. The value can be
145days (not necessarily an integer) or the symbols `never' or 145either a number of days (not necessarily an integer), or one of
146`immediate'.") 146the symbols `never' or `immediate'.")
147 147
148 (expiry-target (choice :tag "Expiry Target" 148 (expiry-target (choice :tag "Expiry Target"
149 :value delete 149 :value delete
diff --git a/lisp/gnus/nnmail.el b/lisp/gnus/nnmail.el
index c52bc03e109..0f560d300f9 100644
--- a/lisp/gnus/nnmail.el
+++ b/lisp/gnus/nnmail.el
@@ -159,32 +159,33 @@ If nil, groups like \"mail.misc\" will end up in directories like
159 159
160(defcustom nnmail-expiry-wait 7 160(defcustom nnmail-expiry-wait 7
161 "Expirable articles that are older than this will be expired. 161 "Expirable articles that are older than this will be expired.
162This variable can either be a number (which will be interpreted as a 162This variable can be either a number of days (not necessarily an
163number of days) -- this doesn't have to be an integer. This variable 163integer), or one of the symbols `immediate' or `never', meaning
164can also be `immediate' and `never'." 164an article is immediately or never expirable, respectively.
165For more granular control, see `nnmail-expiry-wait-function'."
165 :group 'nnmail-expire 166 :group 'nnmail-expire
166 :type '(choice (const immediate) 167 :type '(choice (const :tag "Immediate" immediate)
167 (number :tag "days") 168 (const :tag "Never" never)
168 (const never))) 169 (number :tag "Days")))
169 170
170(defcustom nnmail-expiry-wait-function nil 171(defcustom nnmail-expiry-wait-function nil
171 "Variable that holds function to specify how old articles should be before they are expired. 172 "Function to determine how old articles should be before they are expired.
172The function will be called with the name of the group that the expiry 173The function is called with the name of the group that the expiry
173is to be performed in, and it should return an integer that says how 174is to be performed in, and should return a value supported by
174many days an article can be stored before it is considered \"old\". 175`nnmail-expiry-wait', which it overrides. If this variable is
175It can also return the values `never' and `immediate'. 176nil, the value of `nnmail-expiry-wait' is used instead.
176 177
177E.g.: 178E.g.:
178 179
179\(setq nnmail-expiry-wait-function 180\(setq nnmail-expiry-wait-function
180 (lambda (newsgroup) 181 (lambda (group)
181 (cond ((string-match \"private\" newsgroup) 31) 182 (cond ((string-match-p \"private\" group) 31)
182 ((string-match \"junk\" newsgroup) 1) 183 ((string-match-p \"junk\" group) 1)
183 ((string-match \"important\" newsgroup) \\='never) 184 ((string-match-p \"important\" group) \\='never)
184 (t 7))))" 185 (t 7))))"
185 :group 'nnmail-expire 186 :group 'nnmail-expire
186 :type '(choice (const :tag "nnmail-expiry-wait" nil) 187 :type '(choice (const :tag "nnmail-expiry-wait" nil)
187 (function :format "%v" nnmail-))) 188 (function :tag "Custom function")))
188 189
189(defcustom nnmail-expiry-target 'delete 190(defcustom nnmail-expiry-target 'delete
190 "Variable that says where expired messages should end up. 191 "Variable that says where expired messages should end up.