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

Changing recipients by a hook



Hello, world!\n

When replying, I would sometimes like to have the address I send the
reply to modified according to the message's subject (or other header
fields) [*]. I have tried the following construct:

        send-hook .* "unmy_hdr To:"
        send-hook '~s XXX' "my_hdr To: somewhere@xxxxxx"

and failed (nothing observable happened; reply-hook also did not help).

Is there any clever trick to accomplish that?

The only working way I have found is to turn `edit_hdrs' on and point
`editor' to a shell script which munges the headers and runs the real
editor. However, this is neither elegant nor straigtforward.

[Mutt version: 1.5.9i from Debian Sarge]

                                Have a nice fortnight
-- 
Martin `MJ' Mares   <mj@xxxxxx>   http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
There really exists a Microsoft product that doesn't suck -- unfortunately, 
it's a vacuum cleaner.


[*] For the curious among us: The reason to do that is that a bunch of
monitoring scripts sends its reports to one mailing list, but I reply
to one of the reports, I wish to send it to another list, which is read
by the whole department.