From: dsg@mitre.org (David S. Goldberg)
Subject: Re: Posting Styles: message-fetch-reply-field always returns nil
Date: 22 Apr 1999 11:22:14 -0400 [thread overview]
Message-ID: <m1bogkg3ck9.fsf@blackbird.mitre.org> (raw)
In-Reply-To: nospam2159@daimi.au.dk's message of "18 Apr 1999 22:16:45 +0200"
I have the following in my gnus-posting-styles. This lets me do the
right thing (for my definition of right thing) for replies.
(gnus-article-reply
(signature-file
(let* ((net
(save-excursion
(set-buffer gnus-article-buffer)
(car
(cdr
(mail-extract-address-components
(message-fetch-field
"From"))))))
(rec (car (bbdb-search
(bbdb-records) nil nil
net nil nil)))
(sig (if rec
(bbdb-record-getprop
rec 'signature))))
(cond (sig sig)
((string-match "@.*\\.?mitre\\.org" net)
"~/.signature-mitre-i")
((string-match "nnml:personal.*"
gnus-newsgroup-name)
"~/.signature-personal")
(t "~/.signature-mitre"))))
("From"
(let* ((net
(save-excursion
(set-buffer gnus-article-buffer)
(car
(cdr
(mail-extract-address-components
(message-fetch-field
"From"))))))
(rec (car (bbdb-search
(bbdb-records) nil nil
net nil nil)))
(mail-from (if rec
(bbdb-record-getprop
rec 'mail-from))))
(cond (mail-from mail-from)
((string-match "nnml:personal.*"
gnus-newsgroup-name)
"dsg@world.std.com (David S. Goldberg)")
(t (concat user-mail-address
" (David S. Goldberg)"))))))
--
Dave Goldberg
Post: The Mitre Corporation\MS B325\202 Burlington Rd.\Bedford, MA 01730
Phone: 781-271-3887
Email: dsg@mitre.org
prev parent reply other threads:[~1999-04-22 15:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-04-18 20:16 Peter von der Ahé
1999-04-19 6:29 ` Lars Magne Ingebrigtsen
1999-04-19 12:58 ` Kai.Grossjohann
1999-04-21 19:01 ` Lars Magne Ingebrigtsen
1999-04-22 15:22 ` David S. Goldberg [this message]
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=m1bogkg3ck9.fsf@blackbird.mitre.org \
--to=dsg@mitre.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).