* Default email address based on displayed newsgroup
@ 2009-07-29 11:34 Olivier Sirven
2009-07-29 12:12 ` Richard Riley
0 siblings, 1 reply; 3+ messages in thread
From: Olivier Sirven @ 2009-07-29 11:34 UTC (permalink / raw)
To: help-gnu-emacs
Hello there,
I would like to know if there is a way with gnus to configure the
default email address to use depending on the current displayed
newsgroup.
Now, I use this declaration in my .gnus.el:
(setq user-mail-address "the.slaa@gmail.com")
and I'm looking for some variable used to configure this email
address based on a given regexp to be able to use
the.slaa+spams@gmail.com for some specific groups.
Do you know if this possible?
Thanks
--
Olivier
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Default email address based on displayed newsgroup
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
0 siblings, 1 reply; 3+ messages in thread
From: Richard Riley @ 2009-07-29 12:12 UTC (permalink / raw)
To: help-gnu-emacs
Olivier Sirven <the.slaa@gmail.com> writes:
> Hello there,
>
> I would like to know if there is a way with gnus to configure the
> default email address to use depending on the current displayed
> newsgroup.
>
> Now, I use this declaration in my .gnus.el:
> (setq user-mail-address "the.slaa@gmail.com")
>
> and I'm looking for some variable used to configure this email
> address based on a given regexp to be able to use
> the.slaa+spams@gmail.com for some specific groups.
>
> Do you know if this possible?
>
> Thanks
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.
Google for more help/look in gnus manual.
regards
r.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Default email address based on displayed newsgroup
2009-07-29 12:12 ` Richard Riley
@ 2009-07-29 15:44 ` Olivier Sirven
0 siblings, 0 replies; 3+ messages in thread
From: Olivier Sirven @ 2009-07-29 15:44 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-07-29 15:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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.