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

Re: shell escapes in .muttrc



* Jon Nathan <jon@xxxxxxxxxxx> [040113 20:29]:
> set record="~/mail/sent/sent-`date +%m%Y`"

> However, it appears that the shell escape is only executed upon
> mutt startup.  If I start mutt on, say, Dec 25 and keep it running
> over the end-of-month boundary, mail sent on Jan 1 will be stored in
> the sent-122003 folder instead of sent-012004.   Of course if I exit
> and restart mutt, mail will be saved to the correct monthly folder.

send-hook . 'set record="~/mail/sent/sent-`date +%m%Y`"'

will be evaluated every time you send a message...

-Johan
-- 
Johan Almqvist
http://www.almqvist.net/johan/qmail/