Gregory Seidman wrote:
> It looks like the solution may be to set $from to the reflector and use a
> hook to set From to the local address for local mail. Is there any other
> way? I'd *really* like a pattern for whether reverse_name has found
> something or not.
This type of information doesn't really fit into the send-hook pattern
neatly. I think the same functionality could be implemented by adding
another boolean variable to control whether or not the address set by
reverse_name can be overridden by a subsequent my_hdr command. So you
could instead do something like:
set nooverride_reverse_name
send-hook . 'unmy_hdr from'
send-hook 'pattern' 'my_hdr from: foo@bar'
This would cause the my_hdr command to only have effect when not doing a
reply to a message which matched $alternates.
Comments?