[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Feature Request: Message Grouping in Gnus
From: |
Reiner Steib |
Subject: |
Re: Feature Request: Message Grouping in Gnus |
Date: |
Fri, 14 Aug 2009 20:45:13 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/22.1 (gnu/linux) |
On Fri, Aug 14 2009, Volkan YAZICI wrote:
> [Sorry if this post doesn't belong to this mailing list -- I tried my
> chance in Gnus mailing list[1] with no luck -- in such a case, any
> pointers will be appreciated.]
gnu.emacs.gnus is the user list, whereas address@hidden (cc-ed) is the
place where you can find Gnus developers. I'd suggest to drop
emacs-devel on further replies.
> It'd be really awesome if one would be able to group the messages listed
> in the summary buffer in Gnus. Consider passing below function to some
> sort of filter hook while grouping messages by day in the summary
> buffer.
>
> (lambda ()
> (let* ((header (message-field-value "Received"))
Not sure why you use Received instead of Date.
> (pos
> (string-match
> (concat
> "\\(Sun\\|Mon\\|Tue\\|Wed\\|Thu\\|Fri\\|Sat\\), " ; "Thu, "
> "\\([0-9]+\\) " ; "13 "
> "\\([A-Za-z]\\{3\\}\\) " ; "Aug "
> "\\([0-9]\\{4\\}\\) " ; "2009 "
> "\\([0-9]\\{2\\}:[0-9]\\{2\\}:[0-9]\\{2\\}\\) " ; "23:23:29 "
> "\\([\\+\\-]\\{1\\}[0-9]+\\) " ; "+0300 "
> "(\\([^) ]+\\))") ; "(EEST)"
> header)))
> (when pos
> (concat
> (subseq header (match-beginning 2) (match-end 2)) " " ; "13 "
> (subseq header (match-beginning 3) (match-end 3)) " " ; "Aug "
> (subseq header (match-beginning 4) (match-end 4)))))) ; "2009 "
>
> And the expected output could be something similar to below.
>
> === INPUT ===
> [ 20: Jared C. Davis ] hash table resizing
> [ 49: Gary Byers ]
> [ 30: Doug Currie ] IDE nits
> [ 72: Gary Byers ]
> [ 18: Gail Zacharias ]
> [ 20: Ron Garret ] Embedding CPython in CCL
> [ 35: Ian Eslick ]
> [ 54: Ron Garret ]
>
> === OUTPUT ===
> ---- 1 Aug 2009 ----
> [ 20: Jared C. Davis ] hash table resizing
> [ 49: Gary Byers ]
> [ 30: Doug Currie ] IDE nits
> [ 72: Gary Byers ]
> [ 20: Ron Garret ] Embedding CPython in CCL
> ---- 2 Aug 2009 ----
> [ 72: Gary Byers ] Re: IDE nits
> [ 18: Gail Zacharias ]
> [ 35: Ian Eslick ] Re: Embedding CPython in CCL
> [ 54: Ron Garret ]
>
> Is such a thing possible? Any comments?
I think it is really hard (or not possible) to combine threading with
date-based sorting.
As pointed out by Ted, you can display the date in the summary.
> Regards.
>
> [1]
> http://groups.google.com/group/gnu.emacs.gnus/browse_frm/thread/797d30d14dfa068f#
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/