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

help with formulating a better macro



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.

The problem is that if I want to send an email after sending one of these
special emails, the header fields used for the special email are used as 
the defaults for the next email.

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.

I'm new to writing macros for mutt (and mutt in general) and there
is probably a better way to achieve this, so if anybody has suggestions
for different ways to implement this I'm all ears.

The macro that I'm using is below, except for the fact that the version
in the config file doesn't have the line continuations.


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


Thanks,
Kevin Beranek