Is there a hook for modifying a To: field?

Chris Green cl at isbd.net
Tue Aug 25 12:05:39 UTC 2020


On Tue, Aug 25, 2020 at 09:15:55AM +1000, raf wrote:
> On Mon, Aug 24, 2020 at 10:32:56AM +0100, Chris Green <cl at isbd.net> wrote:
> 
> > I am on a mailing list which has two addresses, occasionally when one
> > does L[ist reply] the To: address is:-
> > 
> >     ixion at ixiemaster.ixion.org.uk, Ixilist <ixion at ixion.org.uk>
> > 
> > At present I normally notice this and remove one of the addresses but
> > it would be nice if I could automate this.  Is there a hook (send_hook
> > maybe) that can be used to change this?  It can't just change every
> > case of either ixion at ixiemaster.ixion.org.uk or ixion at ixion.org.uk as
> > most of the time a L[ist reply] only gets a single address.
> > 
> > -- 
> > Chris Green
> 
> It seems odd that a mailing list would have two
> addresses. Presumably the are interchangeable. If so,
> perhaps you could use procmail or imapfilter to replace
> all instances of one of the addresses with the other as
> the email arrives. That way, when you read it, mutt
> only sees one of the addresses.
> 
It's the only list I'm on that's like this.  I have a custom filter
program handling incoming mail so I *could* add a special rule but it
would have to step outside the normal logic of the filter.

If I replace all occurrences of one address with the other won't mutt
then simply send a L[ist reply] to the same address twice? ... or does
mutt have internal logic such that it won't send mail to duplicated
addresses?

-- 
Chris Green


More information about the Mutt-users mailing list