* gnus.texi (Group Parameters): Document regexp substitution.
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Fri, 17 Aug 2001 15:11:09 +0000 (15:11 +0000)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Fri, 17 Aug 2001 15:11:09 +0000 (15:11 +0000)
texi/ChangeLog
texi/gnus.texi

index 7ab6263..9342d0b 100644 (file)
@@ -1,3 +1,7 @@
+2001-08-17 14:24:14  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * gnus.texi (Group Parameters): Document regexp substitution. 
+
 2001-08-11 23:00:00  ShengHuo ZHU  <zsh@cs.rochester.edu>
        From Nevin Kapur <nevin@jhu.edu>
 
index a54a749..9966e14 100644 (file)
@@ -2603,6 +2603,8 @@ If you do an @kbd{a} command in a mail group and you don't have a
 @code{to-list} group parameter, one will be added automatically upon
 sending the message.
 
+@findex gnus-mailing-list-mode
+@cindex Mail List Groups
 If this variable is set, @code{gnus-mailing-list-mode} is turned on when
 entering summary buffer.
 
@@ -2773,22 +2775,35 @@ presents you with a Customize-like interface.  The latter helps avoid
 silly Lisp errors.)  You might also be interested in reading about topic
 parameters (@pxref{Topic Parameters}).
 
-Group parameters can be set in @code{gnus-parameters} too.  But some
-variables, such as @code{visible}, have no effect.  For example,
+Group parameters can be set via the @code{gnus-parameters} variable too.
+But some variables, such as @code{visible}, have no effect.  For
+example:
 
 @example
 (setq gnus-parameters
-  '(("mail\\..*"  (gnus-show-threads nil)
-                  (gnus-use-scoring nil)
-                  (gnus-summary-line-format
-                        "%U%R%z%I%(%[%d:%ub%-20,20f%]%) %s\n")
-                  (gcc-self . t)
-                  (display . all))
-     ("mail\\.me" (gnus-use-scoring  t))
-     ("list\\..*" (total-expire . t)
-                  (broken-reply-to . t)))
+      '(("mail\\..*"
+         (gnus-show-threads nil)
+         (gnus-use-scoring nil)
+         (gnus-summary-line-format
+          "%U%R%z%I%(%[%d:%ub%-20,20f%]%) %s\n")
+         (gcc-self . t)
+         (display . all))
+
+        ("^nnimap:\\(foo.bar\\)$"
+         (to-group . "\\1"))
+
+        ("mail\\.me"
+         (gnus-use-scoring  t))
+
+        ("list\\..*"
+         (total-expire . t)
+         (broken-reply-to . t))))
 @end example
 
+String value of parameters will be subjected to regexp substitution, as
+the @code{to-group} example shows.
+
+
 @node Listing Groups
 @section Listing Groups
 @cindex group listing
@@ -15742,6 +15757,7 @@ silently to help keep the sizes of the score files down.
 * Adaptive Scoring::         Big Sister Gnus knows what you read.
 * Home Score File::          How to say where new score entries are to go.
 * Followups To Yourself::    Having Gnus notice when people answer you.
+* Scoring On Other Headers:: Scoring on non-standard headers.
 * Scoring Tips::             How to score effectively.
 * Reverse Scoring::          That problem child of old is not problem.
 * Global Score Files::       Earth-spanning, ear-splitting score files.
@@ -16813,6 +16829,39 @@ Whether it's the first two or first three characters that are ``yours''
 is system-dependent.
 
 
+@node Scoring On Other Headers
+@section Scoring On Other Headers
+@cindex scoring on other headers
+
+Gnus is quite fast when scoring the ``traditional''
+headers---@samp{From}, @samp{Subject} and so on.  However, scoring
+other headers requires writing a @code{head} scoring rule, which means
+that Gnus has to request every single article from the backend to find
+matches.  This takes a long time in big groups.
+
+Now, there's not much you can do about this for news groups, but for
+mail groups, you have greater control.  In the @pxref{To From
+Newsgroups} section of the manual, it's explained in greater detail what
+this mechanism does, but here's a cookbook example for @code{nnml} on
+how to allow scoring on the @samp{To} and @samp{Cc} headers.
+
+Put the following in your @file{.gnus.el} file. 
+
+@lisp
+(setq gnus-extra-headers '(To Cc Newsgroups Keywords)
+      nnmail-extra-headers gnus-extra-headers)
+@end lisp
+
+Restart Gnus and rebuild your @code{nnml} overview files with the
+@kbd{M-x nnml-generate-nov-databases} command.  This will take a long
+time if you have much mail.
+
+Now you can score on @samp{To} and @samp{Cc} as ``extra headers'' like
+so: @kbd{I e s p To RET <your name> RET}.
+
+See?  Simple.
+
+
 @node Scoring Tips
 @section Scoring Tips
 @cindex scoring tips