From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Volkan YAZICI Newsgroups: gmane.emacs.devel Subject: Feature Request: Message Grouping in Gnus Date: Fri, 14 Aug 2009 15:01:44 +0300 Message-ID: <87iqgqk3iv.fsf@alamut.alborz.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1250251335 16687 80.91.229.12 (14 Aug 2009 12:02:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Aug 2009 12:02:15 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 14 14:02:08 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 1MbvTx-0007DZ-HA for ged-emacs-devel@m.gmane.org; Fri, 14 Aug 2009 14:02:05 +0200 Original-Received: from localhost ([127.0.0.1]:50966 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MbvTw-0004tL-Ok for ged-emacs-devel@m.gmane.org; Fri, 14 Aug 2009 08:02:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MbvTq-0004sT-4g for emacs-devel@gnu.org; Fri, 14 Aug 2009 08:01:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MbvTk-0004oV-BO for emacs-devel@gnu.org; Fri, 14 Aug 2009 08:01:57 -0400 Original-Received: from [199.232.76.173] (port=50236 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MbvTj-0004oL-Op for emacs-devel@gnu.org; Fri, 14 Aug 2009 08:01:51 -0400 Original-Received: from mail.ttmail.com ([88.255.235.9]:47136 helo=mail1.ttmail.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MbvTj-00033f-1P for emacs-devel@gnu.org; Fri, 14 Aug 2009 08:01:51 -0400 Original-Received: from STT1EXF10.TTHMC.LOCAL ([192.168.19.145]) by mail1.ttmail.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 14 Aug 2009 15:01:47 +0300 Original-Received: from alamut.alborz.net ([139.179.21.138]) by STT1EXF10.TTHMC.LOCAL with Microsoft SMTPSVC(6.0.3790.3959); Fri, 14 Aug 2009 15:01:47 +0300 Original-Received: from (unknown [139.179.21.138]) by AVGW-TTMAIL-5.ttmail.com with smtp id 669a_4010_3cd2ac16_88ca_11de_94ad_0011433771ac; Fri, 14 Aug 2009 15:01:47 +0300 User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) X-OriginalArrivalTime: 14 Aug 2009 12:01:47.0339 (UTC) FILETIME=[FFC881B0:01CA1CD6] X-detected-operating-system: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." 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:114240 Archived-At: 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#