From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marius Hofert 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 23:17:00 +0100 Message-ID: <5BBBF1D0-1349-4C17-8D38-F75CE52D2C53@math.ethz.ch> References: <812215ED-D638-4BE4-8AD3-AC7EB95378E0@math.ethz.ch> <87y5v6yeyy.fsf@tsdh.uni-koblenz.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1322086641 30121 80.91.229.12 (23 Nov 2011 22:17:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 23 Nov 2011 22:17:21 +0000 (UTC) Cc: Emacs help To: Tassilo Horn Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 23 23:17:16 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 1RTL7z-0004Am-FZ for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Nov 2011 23:17:15 +0100 Original-Received: from localhost ([::1]:38945 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTL7v-0008St-P4 for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Nov 2011 17:17:11 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:59133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTL7r-0008Sa-5u for help-gnu-emacs@gnu.org; Wed, 23 Nov 2011 17:17:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RTL7o-0008Fz-VB for help-gnu-emacs@gnu.org; Wed, 23 Nov 2011 17:17:07 -0500 Original-Received: from edge10.ethz.ch ([82.130.75.186]:12474) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTL7o-0008Ff-Jh for help-gnu-emacs@gnu.org; Wed, 23 Nov 2011 17:17:04 -0500 Original-Received: from CAS20.d.ethz.ch (172.31.51.110) by edge10.ethz.ch (82.130.75.186) with Microsoft SMTP Server (TLS) id 14.1.339.1; Wed, 23 Nov 2011 23:16:59 +0100 Original-Received: from 80-218-244-31.dclient.hispeed.ch (80.218.244.31) by CAS20.d.ethz.ch (172.31.51.110) with Microsoft SMTP Server (TLS) id 14.1.339.1; Wed, 23 Nov 2011 23:17:01 +0100 In-Reply-To: <87y5v6yeyy.fsf@tsdh.uni-koblenz.de> X-Mailer: Apple Mail (2.1251.1) X-Originating-IP: [80.218.244.31] X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.130.75.186 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:83034 Archived-At: Hi Tassilo, works flawlessly, many thanks (once again). Cheers, Marius On 2011-11-23, at 17:35 , Tassilo Horn wrote: > 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 > >