Discussion:
yuck == when reply-to looks like "X" <X> instead of "Name" <X>
ant
2018-03-06 23:08:30 UTC
Permalink
a certain e-mail provider does this (a more complete
example is at the end of this query).

the From header is correct. so what i'm looking for
is a message hook which redoes the Reply-To: header
before the message gets shown to me and it
somehow magically scans header, saves From address and format
and then if it finds out that the message has one of those
yucky Reply-Tos i want it to fix it using the saved From
address. otherwise it should leave the Reply-To: header
alone.

in matching patterns i see no Reply-To: character so it
looks like i have to create this from the more general case
of using the entire headers character.

as i've been reading through documentation and searching
for quite a while already i thought i would just ask as
perhaps someone has already done this but google isn't
showing me any love on this one and my brain cells are now
mush so i will ask and check later to see if anyone has
an obvious reply.


Example:

=====
Date: Tue, 6 Mar 2018 21:26:41 +0000 (UTC)
From: Joe Smith <***@example.com>
Reply-To: "***@example.com" <***@example.com>
To: me <***@someotherexample.com>
Message-ID: <***@mail.someotherexample.com>
...
Subject: this is borked...
=====
Date: Tue, 6 Mar 2018 21:26:41 +0000 (UTC)
From: Joe Smith <***@example.com>
Reply-To: Joe Smith <***@example.com>
To: me <***@someotherexample.com>
Message-ID: <***@mail.someotherexample.com>
...
Subject: this is unborked...
=====


thank you,


ant
Patrick Shanahan
2018-03-06 23:18:49 UTC
Permalink
Post by ant
a certain e-mail provider does this (a more complete
example is at the end of this query).
the From header is correct. so what i'm looking for
is a message hook which redoes the Reply-To: header
before the message gets shown to me and it
somehow magically scans header, saves From address and format
and then if it finds out that the message has one of those
yucky Reply-Tos i want it to fix it using the saved From
address. otherwise it should leave the Reply-To: header
alone.
in matching patterns i see no Reply-To: character so it
looks like i have to create this from the more general case
of using the entire headers character.
as i've been reading through documentation and searching
for quite a while already i thought i would just ask as
perhaps someone has already done this but google isn't
showing me any love on this one and my brain cells are now
mush so i will ask and check later to see if anyone has
an obvious reply.
=====
Date: Tue, 6 Mar 2018 21:26:41 +0000 (UTC)
...
Subject: this is borked...
=====
Date: Tue, 6 Mar 2018 21:26:41 +0000 (UTC)
...
Subject: this is unborked...
=====
why don't you just make the header visible, Reply-To:

or look into procmail/formail
--
(paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri
http://en.opensuse.org openSUSE Community Member facebook/ptilopteri
Registered Linux User #207535 @ http://linuxcounter.net
Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode
Continue reading on narkive:
Loading...