From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79517 Path: news.gmane.org!not-for-mail From: lee Newsgroups: gmane.emacs.gnus.general Subject: Re: accessing article information Date: Tue, 19 Jul 2011 20:24:17 +0200 Organization: my virtual residence Message-ID: <871uxmnn72.fsf@yun.yagibdah.de> References: <87d3hng6vr.fsf@yun.yagibdah.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1311099886 19206 80.91.229.12 (19 Jul 2011 18:24:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 19 Jul 2011 18:24:46 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M27813@lists.math.uh.edu Tue Jul 19 20:24:41 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QjEyH-0006dn-Fe for ding-account@gmane.org; Tue, 19 Jul 2011 20:24:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1QjEy2-0008OV-1d; Tue, 19 Jul 2011 13:24:26 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1QjExz-0008O8-V4 for ding@lists.math.uh.edu; Tue, 19 Jul 2011 13:24:23 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1QjExv-0006AC-K1 for ding@lists.math.uh.edu; Tue, 19 Jul 2011 13:24:23 -0500 Original-Received: from static.103.179.46.78.clients.your-server.de ([78.46.179.103] helo=static.73.179.46.78.clients.your-server.de) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QjExt-00083M-UU for ding@gnus.org; Tue, 19 Jul 2011 20:24:18 +0200 Original-Received: from lee by yun.yagibdah.de with local (Exim 4.76) (envelope-from ) id 1QjExt-00027k-Bu for ding@gnus.org; Tue, 19 Jul 2011 20:24:17 +0200 Mail-Followup-To: ding@gnus.org In-Reply-To: (Lars Magne Ingebrigtsen's message of "Tue, 19 Jul 2011 18:16:50 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin (3.3.1 2010-03-16) analysis follows Bayesian score: 0.0000 Ham tokens: 0.000-1869--6239h-0s--0d--H*u:Emacs, 0.000-1732--5783h-0s--0d--H*u:Gnus, 0.000-1655--5525h-0s--0d--H*u:linux, 0.000-1655--5525h-0s--0d--H*UA:linux, 0.000-1604--5355h-0s--0d--H*UA:gnu Spam tokens: 0.993-1--0h-2s--0d--HX-Spam-Relays-External:sk:static., 0.993-1--0h-2s--0d--H*RU:sk:static., 0.958-4542--1462h-54252s--0d--H*r:quimby.gnus.org, 0.924-249--207h-4113s--0d--H*r:sk:static., 0.886-1766--4273h-54568s--0d--HX-Spam-Relays-External:quimby.gnus.org Autolearn status: no -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 2.0 HELO_DYNAMIC_IPADDR Relay HELO'd using suspicious hostname (IP addr 1) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79517 Archived-At: Lars Magne Ingebrigtsen writes: > lee writes: > >> how do you access information about an article from within a >> `gnus-user-format-function-*' called when generating the summary buffer? >> The documentation says: >> >> ,---- [ info (gnus) Summary Buffer Lines ] >> | `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. >> `---- >> >> What does the header passed to the function look like? > > It's a header vector. Use `mail-header-number' etc to access the slots. Thanks! When I look at the macros defined in nnheader.el, there don't seem to be any macros to access the marks an article has. Can I use `gnus-summary-article-mark' as defined in gnus-sum.el in a `gnus-user-format-function-*' to find out the marks? Hm, looking at the .marks files, where does gnus store marks like killed, caught up with, etc.?