From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Guldo K Newsgroups: gmane.emacs.help Subject: Re: hooks and mail Date: Sun, 30 Nov 2003 23:00:18 GMT Organization: [Infostrada] Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87u14l4gk1.fsf@WOtiscaNUITEli.KUREit> References: <87ad6dajr5.fsf@libero.it> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1070234208 9863 80.91.224.253 (30 Nov 2003 23:16:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 30 Nov 2003 23:16:48 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 01 00:16:45 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AQao1-0001ov-00 for ; Mon, 01 Dec 2003 00:16:45 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AQbk2-0006Ol-9n for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Nov 2003 19:16:42 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!nntp.infostrada.it!twister2.libero.it.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-NNTP-Posting-Host: 151.37.33.170 Original-X-Complaints-To: abuse@net24.it Original-X-Trace: twister2.libero.it 1070233218 151.37.33.170 (Mon, 01 Dec 2003 00:00:18 MET) Original-NNTP-Posting-Date: Mon, 01 Dec 2003 00:00:18 MET Original-Xref: shelby.stanford.edu gnu.emacs.help:118827 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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 Xref: main.gmane.org gmane.emacs.help:14769 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14769 François Fleuret writes: > There are two issues here ... How to set mail-default-reply-to's value > and how to make hooks. > > To set mail-default-reply-to, I guess a simple > (setq-default mail-default-reply-to "my.other.name@my.other.address") > somewhere in your .emacs should do it. This is OK, thanks. > For the hook > > > (add-hook 'vm-mail-hook > > '(lambda() > > (setq mail-default-reply-to "me@host.xyz") > > ) > > ) > > I guess you should remove the ' before the function definition (at > least I dont have it in my own hook definitions). It does not work. In fact, what I'm trying to achieve is: set reply-to to the active user-mail-address, whenever I start composing a new message. (or a reply, or a follow-up) So that if I change user-mail-address while vm is open, and then I compose a new message, this new message has already a right reply-to field in its header. Thanks a lot, Guldo