Discussion:
sort search output by date
Nick Dokos
2014-10-21 03:23:00 UTC
Permalink
When I do a gmane nnir search with G G, the resulting nnir group is in
some random(?) order.

An imap search returned an almost sorted buffer: a sorted bunch at the
beginning, a sorted bunch at the end, but a couple of messages between
the two that were out of order - that was a single example though: I
don't know how general this behavior is.

How do I get the nnir summary buffer sorted by date?

Thanks,
--
Nick
Nick Dokos
2014-10-23 05:34:09 UTC
Permalink
Post by Nick Dokos
When I do a gmane nnir search with G G, the resulting nnir group is in
some random(?) order.
An imap search returned an almost sorted buffer: a sorted bunch at the
beginning, a sorted bunch at the end, but a couple of messages between
the two that were out of order - that was a single example though: I
don't know how general this behavior is.
How do I get the nnir summary buffer sorted by date?
I didn't find a hook or option to do that, so in the end I added
gnus-summary-sort-by-date as an :after advice to
gnus-group-make-nnir-group.
--
Nick
Igor Sosa Mayor
2014-10-23 06:09:33 UTC
Permalink
Post by Nick Dokos
Post by Nick Dokos
When I do a gmane nnir search with G G, the resulting nnir group is in
some random(?) order.
An imap search returned an almost sorted buffer: a sorted bunch at the
beginning, a sorted bunch at the end, but a couple of messages between
the two that were out of order - that was a single example though: I
don't know how general this behavior is.
How do I get the nnir summary buffer sorted by date?
I didn't find a hook or option to do that, so in the end I added
gnus-summary-sort-by-date as an :after advice to
gnus-group-make-nnir-group.
I have something like this...

--8<---------------cut here---------------start------------->8---
(add-hook
'gnus-summary-mode-hook
(lambda ()
(when (string-match "^gwene.*" gnus-newsgroup-name)
(make-local-variable 'gnus-show-threads)
(make-local-variable 'gnus-use-adaptive-scoring)
(make-local-variable 'gnus-use-scoring)
(make-local-variable 'gnus-score-find-score-files-function)
(setq gnus-show-threads nil
gnus-use-adaptive-scoring nil)
; gnus-use-scoring nil)
(gnus-summary-sort-by-date))))

--8<---------------cut here---------------end--------------->8---

maybe you can adapt it...
--
:: Igor Sosa Mayor :: ***@gmail.com ::
:: GnuPG: 0x1C1E2890 :: http://www.gnupg.org/ ::
:: jabberid: rogorido :: ::
Loading...