help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Gnus: How to easily change "From:" from the default to a second acco


From: Tassilo Horn
Subject: Re: Gnus: How to easily change "From:" from the default to a second account's address?
Date: Wed, 23 Nov 2011 17:35:01 +0100
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.91 (gnu/linux)

Marius Hofert <marius.hofert@math.ethz.ch> writes:

Hi Marius,

> If I want to create a new message with "m", it shows my default email
> address in "From:" I specified with (setq user-mail-address
> "my.name@uni.edu") Since I have a second account (googlemail), every
> once in a while I would like to hav "From: my.name@googlemail.com"
> instead of "From: my.name@uni.edu". So far, I deleted the entry and
> typed in my gmail account's address. Is there a simpler way?

Yep, posting styles.

,----[ (info "(gnus)Posting Styles") ]
|    So what if you want a different `Organization' and signature based
| on what groups you post to?  And you post both from your home machine
| and your work machine, and you want different `From' lines, and so on?
`----

> I also tried to hit "m" when the point is on my gmail account in the
> *Group* buffer, but that did not open a new message with the
> corresponding "From:" address...

,----[ C-h k m (in *Group*) ]
| m runs the command gnus-group-mail, which is an interactive compiled Lisp
| function in `gnus-msg.el'.
| 
| It is bound to m, <menu-bar> <Gnus> <Send a mail>.
| 
| (gnus-group-mail &optional ARG)
| 
| Start composing a mail.
| If ARG, use the group under the point to find a posting style.
| If ARG is 1, prompt for a group name to find the posting style.
`----

The way to set the ARG when invoking a commant with M-x or a key binding
is to prefix it with `C-u'.  So if you already have a posting style
defined for the group point is on, `C-u m' will use that for the new
mail.

Bye,
Tassilo
-- 
(What the world needs (I think) is not
      (a Lisp (with fewer parentheses))
      but (an English (with more.)))
Brian Hayes, http://tinyurl.com/3y9l2kf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]