2001-12-09 Nevin Kapur <nevin@jhu.edu>
authorSimon Josefsson <jas@extundo.com>
Sun, 9 Dec 2001 00:34:31 +0000 (00:34 +0000)
committerSimon Josefsson <jas@extundo.com>
Sun, 9 Dec 2001 00:34:31 +0000 (00:34 +0000)
* gnus.texi (Expiring Mail): Add.

texi/ChangeLog
texi/gnus.texi

index aac416f..b102969 100644 (file)
@@ -1,3 +1,7 @@
+2001-12-09  Nevin Kapur  <nevin@jhu.edu>
+
+       * gnus.texi (Expiring Mail): Add.
+
 2001-12-05  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
 
        * gnus.texi (Splitting in IMAP): Typo.  From Colin Marquardt
index 645b199..dd6b85e 100644 (file)
@@ -13073,6 +13073,26 @@ Here's an example for specifying a group name:
 (setq nnmail-expiry-target "nnml:expired")
 @end lisp
 
+@findex nnmail-fancy-expiry-target
+@vindex nnmail-fancy-expiry-targets
+Gnus provides a function @code{nnmail-fancy-expiry-target} which will
+expire mail to groups according to the variable
+@code{nnmail-fancy-expiry-targets}.  Here's an example:
+
+@lisp
+ (setq nnmail-expiry-target 'nnmail-fancy-expiry-target
+       nnmail-fancy-expiry-targets
+       '((to-from "boss" "nnfolder:Work")
+        ("subject" "IMPORTANT" "nnfolder:IMPORTANT.%Y.%b")
+         ("from" ".*" "nnfolder:Archive-%Y")))
+@end lisp
+
+With this setup, any mail that has @code{IMPORTANT} in its Subject
+header and was sent in the year @code{YYYY} and month @code{MMM}, will
+get expired to the group @code{nnfolder:IMPORTANT.YYYY.MMM}. If its
+From or To header contains the string @code{boss}, it will get expired
+to @code{nnfolder:Work}. All other mail will get expired to
+@code{nnfolder:Archive-YYYY}.
 
 @vindex nnmail-keep-last-article
 If @code{nnmail-keep-last-article} is non-@code{nil}, Gnus will never