unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: gnus-user-format-function extract header
Date: Sat, 03 May 2014 01:54:19 +0200	[thread overview]
Message-ID: <87a9azspn8.fsf@nl106-137-194.student.uu.se> (raw)
In-Reply-To: 83wqe5muus.fsf@example.com

David Hume <David.Hume@example.com> writes:

>> If you check out the gnus-summary-line-format help,
>> you see a long list of what to put in it, and almost
>> every option is related to headers - what header
>> information do you want to show, that isn't possible
>> to show already the built-in way?
>
> I have checked it out, that's how I found out about
> %uQ. But the information I want is from a
> non-standard header.

Try this:

(defun gnus-user-format-function-A (header)
  (format "%s" header))

(setq gnus-summary-line-format "%2{%U%} %0{%I%a%} %1{%s%}%uA\n")

As you see, the header argument doesn't seem to be
*all* headers. If you add a goofy header, it doesn't
appear.

But: you have a mean of identifying the message, so I
take it you can hit the disk, extract the goofy header
with a grep (and cut), and return it.

-- 
underground experts united:
http://user.it.uu.se/~embe8573


  parent reply	other threads:[~2014-05-02 23:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-01 14:11 gnus-user-format-function extract header David Hume
2014-05-01 14:21 ` Emanuel Berg
2014-05-01 14:33   ` David Hume
2014-05-01 14:46     ` Emanuel Berg
2014-05-02 23:54     ` Emanuel Berg [this message]
2014-05-03 10:19       ` David Hume

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a9azspn8.fsf@nl106-137-194.student.uu.se \
    --to=embe8573@student.uu.se \
    --cc=help-gnu-emacs@gnu.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).