diff options
| author | Glenn Morris | 2019-08-10 08:44:31 -0700 |
|---|---|---|
| committer | Glenn Morris | 2019-08-10 08:44:31 -0700 |
| commit | f47fc426df57aef9f5d9b52578bf183ef9c8d47f (patch) | |
| tree | 242f2bc9dd6f696c48465789ea8b2e25838b7d41 /doc/misc | |
| parent | ce26bb35391c82f4aadc557e22a504a60d0c19d7 (diff) | |
| parent | e7818cb73ff042cb557332c7ea954fd512c87f69 (diff) | |
| download | emacs-f47fc426df57aef9f5d9b52578bf183ef9c8d47f.tar.gz emacs-f47fc426df57aef9f5d9b52578bf183ef9c8d47f.zip | |
Merge from origin/emacs-26
e7818cb Fix nnmail-expiry-wait docs and custom :types
8b7c776 * lisp/simple.el (kill-do-not-save-duplicates): Doc fix. (Bu...
Diffstat (limited to 'doc/misc')
| -rw-r--r-- | doc/misc/gnus.texi | 50 |
1 files changed, 28 insertions, 22 deletions
diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi index dcba47aca05..32d98abd7e3 100644 --- a/doc/misc/gnus.texi +++ b/doc/misc/gnus.texi | |||
| @@ -2916,9 +2916,9 @@ See also @code{gnus-total-expirable-newsgroups}. | |||
| 2916 | If the group parameter has an element that looks like | 2916 | If the group parameter has an element that looks like |
| 2917 | @code{(expiry-wait . 10)}, this value will override any | 2917 | @code{(expiry-wait . 10)}, this value will override any |
| 2918 | @code{nnmail-expiry-wait} and @code{nnmail-expiry-wait-function} | 2918 | @code{nnmail-expiry-wait} and @code{nnmail-expiry-wait-function} |
| 2919 | (@pxref{Expiring Mail}) when expiring expirable messages. The value | 2919 | settings (@pxref{Expiring Mail}) when expiring expirable messages. |
| 2920 | can either be a number of days (not necessarily an integer) or the | 2920 | The value can be either a number of days (not necessarily an integer), |
| 2921 | symbols @code{never} or @code{immediate}. | 2921 | or one of the symbols @code{never} or @code{immediate}. |
| 2922 | 2922 | ||
| 2923 | @item expiry-target | 2923 | @item expiry-target |
| 2924 | @cindex expiry-target | 2924 | @cindex expiry-target |
| @@ -15878,40 +15878,46 @@ don't really mix very well. | |||
| 15878 | 15878 | ||
| 15879 | @vindex nnmail-expiry-wait | 15879 | @vindex nnmail-expiry-wait |
| 15880 | The @code{nnmail-expiry-wait} variable supplies the default time an | 15880 | The @code{nnmail-expiry-wait} variable supplies the default time an |
| 15881 | expirable article has to live. Gnus starts counting days from when the | 15881 | expirable article has to live. The value of this variable can be |
| 15882 | message @emph{arrived}, not from when it was sent. The default is seven | 15882 | either a number of days (not necessarily an integer), or one of the |
| 15883 | days. | 15883 | symbols @code{immediate} or @code{never}, meaning an article is |
| 15884 | immediately or never expirable, respectively. | ||
| 15884 | 15885 | ||
| 15885 | Gnus also supplies a function that lets you fine-tune how long articles | 15886 | Gnus starts counting days from when the message @emph{arrived}, not |
| 15886 | are to live, based on what group they are in. Let's say you want to | 15887 | from when it was sent. The default is seven days. |
| 15887 | have one month expiry period in the @samp{mail.private} group, a one day | ||
| 15888 | expiry period in the @samp{mail.junk} group, and a six day expiry period | ||
| 15889 | everywhere else: | ||
| 15890 | 15888 | ||
| 15891 | @vindex nnmail-expiry-wait-function | 15889 | @vindex nnmail-expiry-wait-function |
| 15890 | The @code{nnmail-expiry-wait-function} variable lets you fine-tune how | ||
| 15891 | long articles are to live, based on what group they are in. When set | ||
| 15892 | to a function, its returned value, if non-@code{nil}, overrides that | ||
| 15893 | of @code{nnmail-expiry-wait}. Otherwise, the value of | ||
| 15894 | @code{nnmail-expiry-wait} is used instead. | ||
| 15895 | |||
| 15896 | For example, let's say you want to have a one month expiry period in | ||
| 15897 | the @samp{mail.private} group, a one day expiry period in the | ||
| 15898 | @samp{mail.junk} group, and a six day expiry period everywhere else. | ||
| 15899 | This can be achieved as follows: | ||
| 15900 | |||
| 15892 | @lisp | 15901 | @lisp |
| 15893 | (setq nnmail-expiry-wait-function | 15902 | (setq nnmail-expiry-wait-function |
| 15894 | (lambda (group) | 15903 | (lambda (group) |
| 15895 | (cond ((string= group "mail.private") | 15904 | (cond ((string= group "mail.private") |
| 15896 | 31) | 15905 | 31) |
| 15897 | ((string= group "mail.junk") | 15906 | ((string= group "mail.junk") |
| 15898 | 1) | 15907 | 1) |
| 15899 | ((string= group "important") | 15908 | ((string= group "important") |
| 15900 | 'never) | 15909 | 'never) |
| 15901 | (t | 15910 | (t |
| 15902 | 6)))) | 15911 | 6)))) |
| 15903 | @end lisp | 15912 | @end lisp |
| 15904 | 15913 | ||
| 15905 | The group names this function is fed are ``unadorned'' group | 15914 | The group names this function is fed are ``unadorned'' group |
| 15906 | names---no @samp{nnml:} prefixes and the like. | 15915 | names---no @samp{nnml:} prefixes and the like. |
| 15907 | 15916 | ||
| 15908 | The @code{nnmail-expiry-wait} variable and | 15917 | As an alternative to the variables @code{nnmail-expiry-wait} or |
| 15909 | @code{nnmail-expiry-wait-function} function can either be a number (not | 15918 | @code{nnmail-expiry-wait-function}, you can also use the |
| 15910 | necessarily an integer) or one of the symbols @code{immediate} or | 15919 | @code{expiry-wait} group parameter to selectively change the expiry |
| 15911 | @code{never}. | 15920 | period (@pxref{Group Parameters}). |
| 15912 | |||
| 15913 | You can also use the @code{expiry-wait} group parameter to selectively | ||
| 15914 | change the expiry period (@pxref{Group Parameters}). | ||
| 15915 | 15921 | ||
| 15916 | @vindex nnmail-expiry-target | 15922 | @vindex nnmail-expiry-target |
| 15917 | The normal action taken when expiring articles is to delete them. | 15923 | The normal action taken when expiring articles is to delete them. |