From 33975de210258435a57aa171bb8533897a45c02c Mon Sep 17 00:00:00 2001 From: Lars Magne Ingebrigtsen Date: Wed, 29 Sep 2010 23:51:51 +0200 Subject: [PATCH] Allow `default' as nnimap-split-methods value. --- lisp/ChangeLog | 3 +++ lisp/nnimap.el | 4 +++- texi/ChangeLog | 1 + texi/gnus.texi | 5 +++-- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 28a598def..545497e1e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2010-09-29 Lars Magne Ingebrigtsen + * nnimap.el (nnimap-split-incoming-mail): If nnimap-split-methods is + `default', use nnmail-split-methods. + * gnus-sum.el (gnus-valid-move-group-p): Make sure that `group' is a symbol. diff --git a/lisp/nnimap.el b/lisp/nnimap.el index ccd85bf82..0d3670af7 100644 --- a/lisp/nnimap.el +++ b/lisp/nnimap.el @@ -1291,7 +1291,9 @@ textual parts.") (defun nnimap-split-incoming-mail () (with-current-buffer (nnimap-buffer) (let ((nnimap-incoming-split-list nil) - (nnmail-split-methods nnimap-split-methods) + (nnmail-split-methods (if (eq nnimap-split-methods 'default) + nnmail-split-methods + nnimap-split-methods)) (nnmail-inhibit-default-split-group t) (groups (nnimap-get-groups)) new-articles) diff --git a/texi/ChangeLog b/texi/ChangeLog index 8495bc5e8..a1dabd77b 100644 --- a/texi/ChangeLog +++ b/texi/ChangeLog @@ -1,6 +1,7 @@ 2010-09-29 Lars Magne Ingebrigtsen * gnus.texi (Using IMAP): Remove the @acronyms from the headings. + (Client-Side IMAP Splitting): Document 'default. 2010-09-27 Lars Magne Ingebrigtsen diff --git a/texi/gnus.texi b/texi/gnus.texi index c847176b0..26e531e1c 100644 --- a/texi/gnus.texi +++ b/texi/gnus.texi @@ -14834,7 +14834,7 @@ Here's an example method that's more complex: @example (nnimap "imap.gmail.com" (nnimap-inbox "INBOX") - (nnimap-split-methods ,nnmail-split-methods) + (nnimap-split-methods default) (nnimap-expunge t) (nnimap-stream 'ssl) (nnir-search-engine imap) @@ -14903,7 +14903,8 @@ This is the @acronym{IMAP} mail box that will be scanned for new mail. @item nnimap-split-methods Uses the same syntax as @code{nnmail-split-methods} (@pxref{Splitting -Mail}). +Mail}), except the symbol @code{default}, which means that it should +use the value of the @code{nnmail-split-methods} variable. @end table -- 2.25.1