From: Olivier Sirven <the.slaa@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Default email address based on displayed newsgroup
Date: Wed, 29 Jul 2009 17:44:20 +0200 [thread overview]
Message-ID: <m2fxcfije3.fsf@basezf.deborah> (raw)
In-Reply-To: h4peoq$etg$1@rileyrgdev.eternal-september.org
Richard Riley <rileyrgdev@gmail.com> writes:
> gnus-posting-styles
>
> e.g
>
> ,----
> | setq gnus-posting-styles `((".*"
> | (name "Richard Riley")
> | (from "Richard Riley <rileyrgATgooglemailDOTcom>")
> | (eval(setq gnushush-user-agent-header (quote real)))
> | (signature-file "~/.emacs.d/.sigs/rgr.sig")
> | (eval (setq mml2015-signers '("xxxxxx")))
> | (organization "aich tea tea pea dicky riley dot net"))))
> `----
>
>
> And then in a custom el file I load I might do:
>
> ,----
> | (add-to-list `gnus-posting-styles `((or (string-match ,(rx (or "DevelopmentEmail" "emacs" "python" "ecb" "exim4" "gdb" "gnus" "hardware" "html" "muse" "mysql" "networking" "opengl" "pgp" "php" "plan" "readers" "security")) gnus-newsgroup-name) (DE-bbdb-match-field-recipient 'email-type "dev"))
> | (name "Richard Riley")
> | (from "Richard Riley <rileyrgdevATgmailDOTcom>")
> | (eval(setq gnushush-user-agent-header (quote real)))
> | (eval (setq mml2015-signers '("xxxxxx")))
> | (signature-file "~/.emacs.d/.sigs/d.sig")) t)
> `----
>
> You would probably take off the "or" clause there.
Thanks it worked exactly as I wanted!
--
Olivier
prev parent reply other threads:[~2009-07-29 15:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-29 11:34 Default email address based on displayed newsgroup Olivier Sirven
2009-07-29 12:12 ` Richard Riley
2009-07-29 15:44 ` Olivier Sirven [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=m2fxcfije3.fsf@basezf.deborah \
--to=the.slaa@gmail.com \
--cc=help-gnu-emacs@gnu.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.