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

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

Re: hooks and mail


From: Guldo K
Subject: Re: hooks and mail
Date: Sun, 30 Nov 2003 23:00:18 GMT
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Fran├žois Fleuret <address@hidden> 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 "address@hidden")
> 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 "address@hidden")
> >   )
> > )
> 
> 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


reply via email to

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