* How to set vars for mail groups?
@ 1996-02-28 13:29 John Griffith
1996-02-28 14:27 ` Jack Vinson
0 siblings, 1 reply; 2+ messages in thread
From: John Griffith @ 1996-02-28 13:29 UTC (permalink / raw)
Cc: griffith
I want my nnml groups to be sorted only by number, while my nntp
groups I want sorted by score. I know I can set the group parameters
for each nnml group to do this, but what I want to do is:
(setq gnus-secondary-select-methods
'((nnml "" (gnus-thread-sort-functions '(gnus-thread-sort-by-number)))))
But this doesn't work since gnus-thread-sort-functions is not one of
the allowed virtual server variables. Is there a better way to set
general variables for a range of groups or all groups from a server?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How to set vars for mail groups?
1996-02-28 13:29 How to set vars for mail groups? John Griffith
@ 1996-02-28 14:27 ` Jack Vinson
0 siblings, 0 replies; 2+ messages in thread
From: Jack Vinson @ 1996-02-28 14:27 UTC (permalink / raw)
>>>>> "JG" == John Griffith <griffith@sfs.nphil.uni-tuebingen.de> writes:
JG> Is there a better way to set general variables for a range of groups or
JG> all groups from a server?
Yes. I Do it in the gnus-summary-generate-hook:
(defun jmv-gnus-prepare-groups ()
;; My mail groups
(cond ((string-match "nnbabyl" gnus-newsgroup-name)
(setq gnus-thread-sort-functions '(gnus-thread-sort-by-date
gnus-thread-sort-by-total-score)
))
;; Archive groups
((string-match "nnfolder" gnus-newsgroup-name)
(setq gnus-thread-sort-functions '(gnus-thread-sort-by-date)
))
;; Draft group
((string-match "nndraft" gnus-newsgroup-name)
(setq gnus-thread-sort-functions '(gnus-thread-sort-by-date)
))
;; All others
(t
(setq gnus-thread-sort-functions '(gnus-thread-sort-by-subject
gnus-thread-sort-by-total-score)
))
)
)
(add-hook 'gnus-summary-generate-hook 'jmv-gnus-prepare-groups)
--
__o __o __o __o __o __o Jack Vinson
_`\<_`\<_ _`\<_ _`\<_`\<_ _`\<_ Captain Jack - Purple Puddle Eater
(_)/---/(_) (_)/(_) (_)/---/(_) (_)/(_) Sunderland, MA
jvinson@cheux.ecs.umass.edu <http://www.cis.upenn.edu/~vinson/>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1996-02-28 14:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-02-28 13:29 How to set vars for mail groups? John Griffith
1996-02-28 14:27 ` Jack Vinson
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).