Gnus development mailing list
 help / color / mirror / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
Subject: Re: Summary format question
Date: 27 May 1997 19:46:00 +0200	[thread overview]
Message-ID: <m2d8qcbyg7.fsf@proletcult.slip.ifi.uio.no> (raw)
In-Reply-To: Nelson Jose dos Santos Ferreira's message of 27 May 1997 15:44:23 +0100

Nelson Jose dos Santos Ferreira <Nelson.Ferreira@inesc.pt> writes:

> BTW, is there a function to extract the value of a specified header ?

Use `mail-header-from' (etc.) on the header parameter passed to the
function pointed to by the %u spec.

> I want to use the %u specifier to extract the From, check for one of my
> addresses. If it's me output -> and the contents of the To: header.
> I'd like to do the same translation as the %a does.

The definition of %a is

(or (car (funcall gnus-extract-address-components gnus-tmp-from))
    gnus-tmp-from)

> BTW, can we customize the %a translation ? I sometimes receive mail from
> people which have words in parentesis which describe their "group", i.e. all
> sysadm have (SYSADM) appended and I'd like to ignore that and give the other
> components of the name.

Quoth the manual:

   Gnus will use the value of the `gnus-extract-address-components'
variable as a function for getting the name and address parts of a
`From' header.  Two pre-defined function exist:
`gnus-extract-address-components', which is the default, quite fast,
and too simplistic solution; and `mail-extract-address-components',
which works very nicely, but is slower.  The default function will
return the wrong answer in 5% of the cases.  If this is unacceptable to
you, use the other function instead.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


  parent reply	other threads:[~1997-05-27 17:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-05-27 14:44 Nelson Jose dos Santos Ferreira
1997-05-27 16:07 ` Kai Grossjohann
1997-05-27 17:46 ` Lars Magne Ingebrigtsen [this message]
1997-05-27 18:10 ` Sudish Joseph

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

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

  git send-email \
    --in-reply-to=m2d8qcbyg7.fsf@proletcult.slip.ifi.uio.no \
    --to=larsi@gnus.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 NNTP newsgroup(s).