From: nospam2159@daimi.au.dk (Peter von der Ahé)
Subject: Posting Styles: message-fetch-reply-field always returns nil
Date: 18 Apr 1999 22:16:45 +0200 [thread overview]
Message-ID: <yc0lnfpvg42.fsf@ufleku.daimi.au.dk> (raw)
Hi!
I have set up a posting style, which needs to look at the headers of
the mail being replied to:
(defun reply-to-ahedk-p ()
"Return nil if not replying to a mail sent to ahe.dk"
(save-excursion
(and gnus-article-buffer
(set-buffer (get-buffer-create gnus-article-buffer))
(let ((to (gnus-fetch-field "to")))
(and to
(string-match "@hatespam.ahe.dk" to))))))
(setq gnus-posting-styles
'((reply-to-ahedk-p
(address "peter@hatespam.ahe.dk"))))
I think the reply-to-ahedk-p is kind of an ugly solution, it would
have been nicer to just write:
(defun reply-to-ahedk-p ()
"Return nil if not replying to a mail sent to ahe.dk"
(let ((to (message-fetch-reply-field "to")))
(and to
(string-match "@hatespam.ahe.dk" to))))
Would it be possible to setup the posting styles when
message-fetch-reply-field can return something interesting?
Kind Regards
Peter
next reply other threads:[~1999-04-18 20:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-04-18 20:16 Peter von der Ahé [this message]
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
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=yc0lnfpvg42.fsf@ufleku.daimi.au.dk \
--to=nospam2159@daimi.au.dk \
/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).