Matej --

...and then Matej Cepl said...
% Hi,

Hello!


% 
% I would love to define following in my .muttrc (for obvious reasons):
% 
% macro index \ee "<resend-message>f$record<enter>" \
%                  "resend message with fcc set to sent_mail"
% 
% but unfortunately it doesn't work.
% 
% I have defined previously in my .muttrc
% 
% set record=+sent-`date +%Y-%m`

Hokay.  I note here that $record does not change until your muttrc is
re-read.  I assume that you do not leave mutt running over month
boundaries :-) but the importance of this will be made evident below.


% 
% so I would really like to use this rather complicated construct in
% representation. For this time, I use
% 
% macro index \ee "<resend-message>f+sent-`date +%Y-%m`<enter>" \
%                  "resend message with fcc set to sent_mail"
% 
% but it is getting really hairy (and not good for maintenance of
% .muttrc). Have anybody an idea, how could I use predefined variable in
% .muttrc?

Since, as has come up again, mutt does not have its own scripting
language, all I can suggest is setting $MUTTDATE in your .profile or
.login file and using that for your $record and \ee macro.


% 
%       Thanks

HTH & HAND


% 
%               Mat?j
% 
% -- 
% Matej Cepl, [EMAIL PROTECTED]
% 138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
%  
% Everything you know is wrong.  But some of it is a useful first
% approximation.


:-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.justpickone.org/davidtg/    Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

PGP signature

Reply via email to