all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
To: Volkan YAZICI <yazicivo@ttmail.com>
Cc: ding@gnus.org, emacs-devel@gnu.org
Subject: Re: Feature Request: Message Grouping in Gnus
Date: Fri, 14 Aug 2009 20:45:13 +0200	[thread overview]
Message-ID: <87ocqi9qva.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <87iqgqk3iv.fsf@alamut.alborz.net> (Volkan YAZICI's message of "Fri, 14 Aug 2009 15:01:44 +0300")

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 ding@gnus.org (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/




      reply	other threads:[~2009-08-14 18:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-14 12:01 Feature Request: Message Grouping in Gnus Volkan YAZICI
2009-08-14 18:45 ` Reiner Steib [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=87ocqi9qva.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    --cc=ding@gnus.org \
    --cc=emacs-devel@gnu.org \
    --cc=yazicivo@ttmail.com \
    /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.