From: ShengHuo ZHU <zsh@cs.rochester.edu>
Subject: Re: matching headers with gnus-posting-styles
Date: 21 Dec 2000 15:34:48 -0500 [thread overview]
Message-ID: <2n3dfhtswn.fsf@tiger.jia.vnet> (raw)
In-Reply-To: <20001221191503.10216.qmail@web2103.mail.yahoo.com>
lewst <lewst@yahoo.com> writes:
> Greetings,
>
> The following posting style isn't working for me:
>
> (setq gnus-posting-styles
> '((".*"
> (signature-file "~/.signature"))
> (header "^\\(To\\|CC\\|Cc\\):.*" ".*sourceforge.net"
> (signature-file "~/.signature-sf"))))
>
> What I'm trying to do is change my .signature based on who I'm sending
> a mail message to. So, if the address in the To: or Cc: headers has
> "sourceforge.net" in it, I'd like to use .signature-sf instead.
>
> With the above, I always get just ".signature" no matter who I'm
> sending to. What am I doing wrong?
gnus-posting-styles is only applied before you start to compose a
mail. Any modification after that has no effect on the your mail.
Therefore, Gnus will not change the signature according to who you are
sending to. Though `header' is documented, I don't think it is right.
Some packages are written for modifying your mail when sending. But I
can not remember what they are.
ShengHuo
next prev parent reply other threads:[~2000-12-21 20:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-21 19:15 lewst
2000-12-21 19:57 ` Nick Papadonis
2000-12-21 20:52 ` David S. Goldberg
2000-12-21 20:34 ` ShengHuo ZHU [this message]
2000-12-21 21:59 ` Kai Großjohann
2000-12-21 20:10 lewst
2000-12-21 20:31 ` Charles Sebold
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=2n3dfhtswn.fsf@tiger.jia.vnet \
--to=zsh@cs.rochester.edu \
/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).