From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: Feature Request: Message Grouping in Gnus Date: Fri, 14 Aug 2009 20:45:13 +0200 Message-ID: <87ocqi9qva.fsf@marauder.physik.uni-ulm.de> References: <87iqgqk3iv.fsf@alamut.alborz.net> Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1250275589 27720 80.91.229.12 (14 Aug 2009 18:46:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Aug 2009 18:46:29 +0000 (UTC) Cc: ding@gnus.org, emacs-devel@gnu.org To: Volkan YAZICI Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 14 20:46:22 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mc1nA-0007RS-HJ for ged-emacs-devel@m.gmane.org; Fri, 14 Aug 2009 20:46:20 +0200 Original-Received: from localhost ([127.0.0.1]:40087 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mc1n9-0008Rp-OF for ged-emacs-devel@m.gmane.org; Fri, 14 Aug 2009 14:46:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mc1mJ-0007vh-Ve for emacs-devel@gnu.org; Fri, 14 Aug 2009 14:45:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mc1mF-0007ph-UO for emacs-devel@gnu.org; Fri, 14 Aug 2009 14:45:27 -0400 Original-Received: from [199.232.76.173] (port=56305 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mc1mF-0007pQ-No for emacs-devel@gnu.org; Fri, 14 Aug 2009 14:45:23 -0400 Original-Received: from mail.uni-ulm.de ([134.60.1.11]:37101) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mc1mE-0006It-De for emacs-devel@gnu.org; Fri, 14 Aug 2009 14:45:23 -0400 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.175]) by mail.uni-ulm.de (8.14.2/8.14.2) with ESMTP id n7EIjG8L018168; Fri, 14 Aug 2009 20:45:16 +0200 (MEST) Original-Received: from localhost (localhost [127.0.0.1]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id 4C020139AC; Fri, 14 Aug 2009 20:45:16 +0200 (CEST) X-Face: 3Phac&+dw=IZHjhua]bp}LH<*p{qzj8u+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:114254 gmane.emacs.gnus.general:68898 Archived-At: 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/