all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: help-gnu-emacs@gnu.org
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	[thread overview]
Message-ID: <87y5v6yeyy.fsf@tsdh.uni-koblenz.de> (raw)
In-Reply-To: 812215ED-D638-4BE4-8AD3-AC7EB95378E0@math.ethz.ch

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	other threads:[~2011-11-23 16:35 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-23 16:24 Gnus: How to easily change "From:" from the default to a second account's address? Marius Hofert
2011-11-23 16:35 ` Tassilo Horn [this message]
2011-11-23 22:17   ` Marius Hofert
2011-11-25  2:17     ` Philipp Haselwarter
2011-11-25  3:12       ` Eric Abrahamsen
2011-11-26 12:03         ` Philipp Haselwarter
2011-11-27  1:52           ` Eric Abrahamsen
2011-12-03 21:10             ` Johnny
2011-12-03 22:53               ` Philipp Haselwarter
2011-12-04 12:58                 ` Harry Putnam
2011-12-05 19:44                   ` Richard Riley
2011-12-05 20:18                     ` Johnny
2011-12-05 20:39                       ` Richard Riley
2011-12-05 20:58                         ` Johnny
2011-11-27 19:03 ` Memnon Anon
2011-12-03 19:17 ` Teemu Likonen

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=87y5v6yeyy.fsf@tsdh.uni-koblenz.de \
    --to=tassilo@member.fsf.org \
    --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.