From: Volkan YAZICI <yazicivo@ttmail.com>
To: emacs-devel@gnu.org
Subject: Feature Request: Message Grouping in Gnus
Date: Fri, 14 Aug 2009 15:01:44 +0300 [thread overview]
Message-ID: <87iqgqk3iv.fsf@alamut.alborz.net> (raw)
Hi,
[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.]
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"))
(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?
Regards.
[1] http://groups.google.com/group/gnu.emacs.gnus/browse_frm/thread/797d30d14dfa068f#
next reply other threads:[~2009-08-14 12:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-14 12:01 Volkan YAZICI [this message]
2009-08-14 18:45 ` Feature Request: Message Grouping in Gnus Reiner Steib
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=87iqgqk3iv.fsf@alamut.alborz.net \
--to=yazicivo@ttmail.com \
--cc=emacs-devel@gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.