Gnus development mailing list
 help / color / mirror / Atom feed
From: jvinson@cheux.ecs.umass.edu (Jack Vinson)
Subject: Re: Sorting some groups differently...
Date: 13 Mar 1996 09:08:06 -0500	[thread overview]
Message-ID: <wovik9axx5.fsf@cheux.ecs.umass.edu> (raw)
In-Reply-To: Andy Eskilsson's message of 12 Mar 1996 21:49:24 +0100

>>>>> "AE" == Andy Eskilsson <mpt95aes@pt.hk-r.se> writes:

AE> I would like to sort the summary buffer of some groups differently
AE> than the others, I seem to remember that the solution were in the
AE> group parameters, but how?

Nope.  You need to change the gnus-thread-sort-functions variable on entry
to the group.  Read the docs on the variable.  I do it in the
gnus-summary-generate-hook.  The basic set up look something like this:

(defun jmv-gnus-prepare-groups ()
            ;; My mail groups, sort by date and score
      (cond ((string-match "nnbabyl:mail" gnus-newsgroup-name)
	     (setq gnus-thread-sort-functions '(gnus-thread-sort-by-date
						gnus-thread-sort-by-total-score)
		   ))
	    ;; My personal archives, sort by subject
	    ((string-match "nnfolder:archive" gnus-newsgroup-name)
	     (setq gnus-thread-sort-functions '(gnus-thread-sort-by-subject)
		   ))
	    ;; The Gnus outgoing mail/news archives, sort by date
	    ((string-match "nnfolder+archive" gnus-newsgroup-name)
	     (setq gnus-thread-sort-functions '(gnus-thread-sort-by-date)
		   ))
	    ;; Gnus draft group, sort by date
	    ((string-match "nndraft" gnus-newsgroup-name)
	     (setq gnus-thread-sort-functions '(gnus-thread-sort-by-date)
		   ))
	    ;; All the rest (nntp), sort by subject and score
	    (t
	     (setq gnus-thread-sort-functions '(gnus-thread-sort-by-subject
						gnus-thread-sort-by-total-score)
		   ))
	    )
)


-- 
Jack Vinson                   jvinson@cheux.ecs.umass.edu
"Narf!" - Pinky               <http://www.cis.upenn.edu/~vinson/home.html>


      reply	other threads:[~1996-03-13 14:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-03-12 20:49 Andy Eskilsson
1996-03-13 14:08 ` 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=wovik9axx5.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).