Re: [PATCH] Allow send-hooks to effectively change $from and
Thomas Roessler wrote: [Mon Jul 09 2007, 07:26:21AM EDT]
> I'm not sure there's a significant use case in here that can't be
> solved with my_hdr.
I'd like to set my From address with this algorithm:
- use reverse_name if possible
- otherwise set the From address in a send-hook based on the
There's no way to do this presently with mutt. You can't tell in
a send-hook if reverse_name succeeded. If you use my_hdr, you
Besides, the present behavior is silly. There's no reason that
send-hooks shouldn't be able to change $from and have it take effect
on the current message.
> That said, the way in which two pointers to the same ADDRESS
> structure are being used here is a recipe for later memory
> corruption. Don't do these kinds of things.
I'll change it to a flag and repost.