Gnus development mailing list
 help / color / mirror / Atom feed
* score alist(s) from group parameters
@ 2001-04-07  0:54 NAGY Andras
  0 siblings, 0 replies; only message in thread
From: NAGY Andras @ 2001-04-07  0:54 UTC (permalink / raw)


Suppose I want to specify scoring rules for a set of groups in my
config file instead of separate score files.  It seems to me that
currently the only way of doing this is using the
gnus-score-find-score-files-function variable:

...
     This variable can also be a list of functions.  In that case, all
     these functions will be called with the group name as argument,
     and all the returned lists of score files will be applied.  These
     functions can also return lists of score alists directly.


Here's the solution for the classic `score yourself down in gcc-self
groups' problem, using this approach:


(defun my-mail-score (group)
  '(((("from" ("NAGY Andras <nagya@inf.elte.hu>" -1000 nil E))))))

(setq gnus-parameters
      '((":INBOX\\.mail\\."
	 (gcc-self . t)
	 (gnus-use-scoring t)
	 (gnus-score-find-score-files-function 'my-mail-score))
        [...]
       ))

However, it would be much nicer if one could use a real group
parameter to specify the score alist(s) to use.  This could be done
either by extending the semantics of the score-file parameter, or by
introducing a new one.

...
    (score-file ("from" ("NAGY Andras <nagya@inf.elte.hu>" -1000 nil E)))

(or something like that)



Andras


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-04-07  0:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-07  0:54 score alist(s) from group parameters NAGY Andras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).