Magnus -- Did you ever get an answer for this? I was going back through my mutt-users folder for anti-spam URLs and tripped on it.
...and then Magnus Bodin said... % % I did some experiments with send-hook, like this: % % send-hook . 'my_hdr Reply-By: `perl -e "print scalar(localtime(time+7200))"` % % and it did indeed generated a new (outlook-annoying) header for each mail. That's good. % % % But when I took this further to generate a dynamic realname like this: % % send-hook spamlist "set realname = \"`perl -e '$t=$^T+81867600; $a=int($t/(7*86400)); $b=$t%(7*86400); printf qq#magnus ver. %d.%06d\n#,$a,$b'`\"" % % The result of the perl-script seems to get cached somehow, since it does % the generation only once per mutt-session. Even if I have other "set % realname=.. " (static ones) that gets executed in between. % % Why is this? Can this be circumvented if I want the external command to be % executed every time? My guess is that it's because you're using "" instead of '' around your hook. If you use single quotes (as in your time example) the inside isn't evaluated until calling time; if you use double quotes it's evaluated at muttrc evaluation time. Neat idea, BTW. Maybe that's why I have it in my mailbox -- but it didn't have a replied flag. % % Silly reason - serious question. Silly reasons are good :-) % % /magnus 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.justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
msg20964/pgp00000.pgp
Description: PGP signature