Re: alternates not working when replying to some mailing lists
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Monday, March 24 at 04:18 PM, quoth Dominik Meister:
>> Thanks Kyle, I think I've already once tried using a send-hook, but
>> that somehow messed up with the reverse_name setting. I give it
>> another try.
>
> I just tried it and what happened is that after sending mail to a
> mailing list, all messages get the From: address I use for lists, no
> matter who is the recipient.
Yup, that's what happens. Hooks do not say to mutt "here's a temporary
setting for this email", but rather "when this hook is triggered,
perform this command", so you need to specify your defaults via hooks
as well (for any settings you plan on changing via hooks).
> What I'm doing now and what seems to work is the following:
>
> send-hook . 'set from=private_address@xxxxxxxxxxx'
> send-hook ~l 'set from=list_address@xxxxxxxxxxx'
>
> Does anything speak against this?
If that works, go with it. I'm a little surprised that "set from=..."
works; it was my understanding that at the time send-hook triggered,
the $from variable had already been consulted, and the only thing you
could do to change the return address would be to use a my_hdr
command. But that structure is essentially correct.
The way I do it is to use my_hdr commands and then have a default
setting like this:
send-hook . 'unmy_hdr From'
But like I said, if your configuration works, then stick with it!
~Kyle
- --
Morality, like art, means drawing a line someplace.
-- Oscar Wilde
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iEYEARECAAYFAkfnyn8ACgkQBkIOoMqOI17prACfYyQ8XEkm7GMfg1NLCtKOXH4k
nzEAnAxE7I4lzrv+TmhKLJa6pbH7GBWf
=V9Ax
-----END PGP SIGNATURE-----