David Petrou <[EMAIL PROTECTED]> wrote on Mon, 07 Feb 2000:
> is it possible to have a dynamic my_hdr?  i want to add a line to the
> header of my outgoing email, but i want the line to be generated
> dynamically.


I'm not sure if you can do it with a simple call to my_hdr (I doubt
that), but it should be possible to have something like:

  send-hook . 'my_hdr Reply-To: `your_perl_script.pl`'

... which will execute the above hook command for every new email.  If
you get the quoting level right, the command in the backtics (`) will be
re-invoked for each email, giving you a different output for each email.
Note that the above may not be the right level of quoting, I didn't test
it in any way, you may need to experiment a bit to get it working.

Also remember that the script needs to print out a \n at the end, or
Mutt won't recognize the output.


Hope this helps,
Mikko
-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
Woe unto them that rise up early in the morning -- Isaiah 5:11

Reply via email to