Joshua --
...and then Joshua Stein said...
% I write an email every day that I put the date in the subject and as of
% now I do 'm\n(list alias)\n(^Z,'date' at the prompt to look at the date,
BTW, it might be easier to just
!date
before you hit 'm' so that you don't have to mess with foreground and
background; that will run a shell escape and show you the output of the
command (date) on your bottom line.
% then fg to return to mutt and type in the date and the rest of the
% subject)\n'. Anyhow, is there a way to put an external command in a
% macro so I can make:
%
% 'm\n(list alias)\n(whatever I need to run "date +'%B %d")\n'
How about a send-hook instead of focusing on the macro? Something like
send-hook . 'unmy_hdr Subject:'
send-hook <some-matching-pattern> 'my_hdr Subject: `date`'
might get it for you... By using '' instead of "" in the hook I think
that you *should* get your backtick expansion done at message time
instead of muttrc read time. Note that this is not tested.
%
% and be thrown right into the editor when I hit the key this macro is
% bound to?
Hmmm... Well, if you macro started the mail process and filled in the
recipient, the hook would take care of the subject and then you should
drop right into the editor. So something like
macro index ,m "<mail>list-alias-name\n"
would probably get you going. Note that this is untested.
%
% --
% Joshua Stein | http://jcs.org | [EMAIL PROTECTED]
% Superblock Information Systems | http://superblock.net
HTH & HAND
:-D
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.bigfoot.com/~davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
The "new millennium" starts at the beginning of 2001. There was no year 0.
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*
PGP signature