<<< Date Index >>>     <<< Thread Index >>>

Re: Generic fcc-save-hook



* Christian Ebert on Saturday, July 01, 2006 at 01:08:14 +0200:
> * Aaron Griffin on Friday, June 30, 2006 at 11:07:03 -0500:
>> I wanted to know if there was an easy way to create a hook that saves
>> sent mail in the current mailbox, if it is a reply, otherwise stick it
>> in the normal record mailbox.
> 
> Untested, and it's late but try:

Well, it definitely /was/ late.

> set record="+normal_record"
> reply-hook ~A "set record='^'"

This doesn't switch back to normal_record. Hm.

But how about addding a macro overriding the default binding `m':

set record="+normal_record"
reply-hook ~A "set record='^'"
macro index,pager m "\
<enter-command>set record='+normal_record'<enter><mail>" \
"compose a new mail message"

c
-- 
_B A U S T E L L E N_ lesen!  --->> <http://www.blacktrash.org/baustellen.html>