1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 04:10:54 -08:00

nnmail.el (nnmail-article-group): Check for a direct fancy split method.

gnus.texi (Client-Side IMAP Splitting): Add a complete nnimap fancy splitting example.
This commit is contained in:
Lars Ingebrigtsen 2011-01-30 02:51:45 +00:00 committed by Katsumi Yamaoka
parent 228724bc63
commit fe72c8fa4e
4 changed files with 22 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2011-01-30 Lars Ingebrigtsen <larsi@gnus.org>
* gnus.texi (Client-Side IMAP Splitting): Add a complete nnimap fancy
splitting example.
2011-01-29 Eli Zaretskii <eliz@gnu.org>
* makefile.w32-in (MAKEINFO): Remove options, leave only program name.

View file

@ -14244,6 +14244,18 @@ The default is @samp{(%Deleted %Seen)}.
@end table
Here's a complete example @code{nnimap} backend with a client-side
``fancy'' splitting method:
@example
(nnimap "imap.example.com"
(nnimap-inbox "INBOX")
(nnimap-split-methods
(| ("MailScanner-SpamCheck" "spam" "spam.detected")
(to "foo@@bar.com" "foo")
"undecided")))
@end example
@node Getting Mail
@section Getting Mail

View file

@ -1,5 +1,8 @@
2011-01-30 Lars Ingebrigtsen <larsi@gnus.org>
* nnmail.el (nnmail-article-group): Check for a direct fancy split
method.
* nnimap.el (nnimap-request-head): Protect against not finding the
article by Message-ID.

View file

@ -1148,6 +1148,8 @@ FUNC will be called with the group name to determine the article number."
(setq nnmail-split-trace nil))
(if (or (and (symbolp nnmail-split-methods)
(fboundp nnmail-split-methods))
(memq (car-safe nnmail-split-methods)
'(| &))
(and (listp nnmail-split-methods)
;; Not a regular split method, so it has to be a
;; fancy one.