From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann)
Cc: ding@gnus.org
Subject: Re: adding to-address for lots (hundreds) of groups ?
Date: 13 Feb 2001 13:33:44 +0100 [thread overview]
Message-ID: <vafu25yoj87.fsf@lucy.cs.uni-dortmund.de> (raw)
In-Reply-To: <m37l2vxfam.fsf@austin.jhcloos.com> ("James H. Cloos Jr."'s message of "13 Feb 2001 00:33:53 -0600")
On 13 Feb 2001, James H. Cloos, Jr. wrote:
> What I need now is a function that will set to to-address param
> based on the group's name.
(defun jhc-set-to-address ()
(when (and gnus-newsgroup-name
(stringp gnus-newsgroup-name)
(string-match "nnml:\\([a-z]+\\)@" gnus-newsgroup-name))
(gnus-group-set-parameter gnus-newsgroup-name
'to-address
(match-string 1 gnus-newsgroup-name))))
(add-hook 'gnus-summary-mode-hook 'jhc-set-to-address)
Untested! Does this do something useful?
kai
--
Be indiscrete. Do it continuously.
prev parent reply other threads:[~2001-02-13 12:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-13 6:33 James H. Cloos Jr.
2001-02-13 12:33 ` Kai Großjohann [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=vafu25yoj87.fsf@lucy.cs.uni-dortmund.de \
--to=kai.grossjohann@cs.uni-dortmund.de \
--cc=ding@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).