Gnus development mailing list
 help / color / mirror / Atom feed
From: jvinson@cheux.ecs.umass.edu (Jack Vinson)
Subject: Re: How to set vars for mail groups?
Date: 28 Feb 1996 09:27:00 -0500	[thread overview]
Message-ID: <wospfv34qz.fsf@cheux.ecs.umass.edu> (raw)
In-Reply-To: John Griffith's message of Wed, 28 Feb 1996 14:29:03 +0100

>>>>> "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/>


      reply	other threads:[~1996-02-28 14:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-02-28 13:29 John Griffith
1996-02-28 14:27 ` Jack Vinson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=wospfv34qz.fsf@cheux.ecs.umass.edu \
    --to=jvinson@cheux.ecs.umass.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).