Re: help with formulating a better macro
=- Kevin Beranek wrote on Thu 14.Aug'08 at 1:44:29 -0500 -=
> I wrote a macro to automate a portion of sending myself an email
> that will get caught by a filter and moved to a special folder. It
> sets the From, To, Reply-To, and Subject header fields and then
> fires up an editor to compose the email.
Set edit_headers=yes and detour $editor to a script of yours dealing
with the necessary header changes, and reset $editor to the default
after the mail was sent, no need to touch so many other mutt interal
vars you'd have to reset again.
> I've tried to unset the fields as part of the macro after it fires
> up the editor but I can't seem to find an incantation that works.
RTFM "my_hdr", the reverse is right next to it.
> macro index \CR ":push ':set from=<address>; my_hdr Reply-To:
> <address>; \ my_hdr To: <address+reminder>; my_hdr Subject:
> ==Reminder==; \ exec mail;'\n"\n
Useless use of ":push ':...'", drop 1 level of evaluation.
--
© Rado S. -- You must provide YOUR effort for your goal!
EVERY effort counts: at least to show your attitude.
You're responsible for ALL you do: you get what you give.