From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help 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 Message-ID: <87y5v6yeyy.fsf@tsdh.uni-koblenz.de> References: <812215ED-D638-4BE4-8AD3-AC7EB95378E0@math.ethz.ch> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1322066142 4343 80.91.229.12 (23 Nov 2011 16:35:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 23 Nov 2011 16:35:42 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 23 17:35:38 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RTFnN-0000h9-1W for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Nov 2011 17:35:37 +0100 Original-Received: from localhost ([::1]:51396 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTFnH-00077t-Cz for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Nov 2011 11:35:31 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:49039) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTFnB-00077X-Or for help-gnu-emacs@gnu.org; Wed, 23 Nov 2011 11:35:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RTFn2-0006AL-PD for help-gnu-emacs@gnu.org; Wed, 23 Nov 2011 11:35:25 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:33049) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTFn2-0006A4-B3 for help-gnu-emacs@gnu.org; Wed, 23 Nov 2011 11:35:16 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RTFn1-0000Un-8p for help-gnu-emacs@gnu.org; Wed, 23 Nov 2011 17:35:15 +0100 Original-Received: from tsdh.uni-koblenz.de ([141.26.67.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Nov 2011 17:35:15 +0100 Original-Received: from tassilo by tsdh.uni-koblenz.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Nov 2011 17:35:15 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 48 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: tsdh.uni-koblenz.de User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.91 (gnu/linux) Cancel-Lock: sha1:CeWYZEfiqrTWikgLOJi1EUn1EYs= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83029 Archived-At: Marius Hofert 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, . | | (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