On Wed, Dec 23, 2015 at 04:10:04AM -0800, Rick Moen via luv-main wrote:
> Quoting Joel W. Shea via luv-main ([email protected]):
> 
> > Yes, but many, including myself; are frustrated by how their MUA
> > behaves as a result, and some even resorting to custom procmail
> > rules to work around it.
>
> Anyone care to share a tested procmail recipe to (locally here, after
> receipt) retroactively correct From: to what the sender specified,
> then remove the spurious MLM-added Reply-To: line?  Thanks in advance.

I don't have a working and tested rule but it should be possible to get
procmail to:

1. delete the From: header
2. rename the Reply-To: header to From:

Unfortunately, there's no way of restoring any original Reply-To header
- the list is now configured to destroy that.



in my case, I already have a rule from years ago renaming Reply-To
to X-Old-Reply-To to reduce the annoyance of previous manifestations of
Reply-To munging abominations:

# rename Reply-To header
:0 fhw
| /usr/bin/formail -R Reply-To X-Old-Reply-To


Without testing, i'd guess that renaming Reply-To: to From: could be:

# rename Reply-To: header to From:
:0 fhw
* 
(^TO|^FROM|^FROM_DAEMON|^Sender:|^X-Been-There:|^List-[^:]*:).*@(lists.)?luv\.asn\.au
| /usr/bin/formail -R Reply-To From -U From

or possibly:

| /usr/bin/formail -R Reply-To From | /usr/bin/formail -U From

(i.e. rename Reply-To to From, and then delete all but the *last* From:
header)

craig

-- 
craig sanders <[email protected]>
_______________________________________________
luv-main mailing list
[email protected]
http://lists.luv.asn.au/listinfo/luv-main

Reply via email to