From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/58256 Path: main.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.gnus.general Subject: Adulterate summary lines Date: Mon, 16 Aug 2004 06:12:31 -0500 Organization: Still searching... Sender: ding-owner@lists.math.uh.edu Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1092655101 19784 80.91.224.253 (16 Aug 2004 11:18:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 16 Aug 2004 11:18:21 +0000 (UTC) Original-X-From: ding-owner+M6797@lists.math.uh.edu Mon Aug 16 13:18:13 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BwfVF-0005VV-00 for ; Mon, 16 Aug 2004 13:18:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1BwfTF-0003bE-00; Mon, 16 Aug 2004 06:16:09 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1BwfT6-0003b6-00 for ding@lists.math.uh.edu; Mon, 16 Aug 2004 06:16:00 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1BwfT6-0005FR-4V for ding@lists.math.uh.edu; Mon, 16 Aug 2004 06:16:00 -0500 Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by justine.libertine.org (Postfix) with ESMTP id 95D063A0061 for ; Mon, 16 Aug 2004 06:15:57 -0500 (CDT) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BwfT1-0005Wr-00 for ; Mon, 16 Aug 2004 13:15:55 +0200 Original-Received: from adsl-68-74-188-217.dsl.emhril.ameritech.net ([68.74.188.217]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Aug 2004 13:15:55 +0200 Original-Received: from reader by adsl-68-74-188-217.dsl.emhril.ameritech.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Aug 2004 13:15:55 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 56 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: adsl-68-74-188-217.dsl.emhril.ameritech.net User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:iGal2WqQ+RRtW/8pyAYOMGHz+W8= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:58256 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:58256 I sometimes use gnus for certain kinds of information storage that isn't within its real purpose. An example might be a group called nnml:Edited Where I place articles I've edited with a homeboy indexing system to be able to lookup certain kinds of info I've found in posts on usenet. I record what I think will be usefull lookup strings in Keyword: header It would be very handy to be able to make that info appear in the summary line. Other examples would want to insert some other info into the summary line. So I'm looking for a framework that I can change easily to insert various parts of the message into the summary line. Possible even the matches to stipulated regex. Or who know what all might be handy. This needs to happen only to certain groups so must be a group-param or agent-param induced framework. Maybe something as simple as setting group summary line there. I believe there is already provision in summary line formatting to call a function and display its result. If so, I'd like to see example code of how this might be done. The manual describes it in some detail but I was not able to really understand it or see how to code it: `u' User defined specifier. The next character in the format string should be a letter. Gnus will call the function `gnus-user-format-function-X', where X is the letter following `%u'. The function will be passed the current header as argument. The function should return a string, which will be inserted into the summary just like information from any other summary specifier. Where I loose it is where it says the function would be passed the current header. Does that mean all headers in rotation or what. Could it be parts of the body too? Using this option how would one make the Keywords line appear in summary buffer or maybe the Date: line? I see a specifier `o' that already comes close... with: `o' The `Date' in YYYYMMDD`T'HHMMSS format. But I'm finding that format too hard to read quickly. I'd like to have my own function that produces MM/DD/YY HH:MM:SS and displays it in summary buffer. I'm thinking it would then be possible to close group call `G p' Change the letter following %u and call a different function. So one could close and reopen with a series of homemade functions if need be. Not sure what these functions need to look like.