all repos — listfix @ 9b3a1f8448fa2c7e4558ebe1bb5a841141637210

Postfix Mailing List Software; Maintained on behalf the of Agency Economy Incorporated NFP.

Add sender to Reply-To if the sender is not part of the list.

	modified:   listfix_filter.py
Brian Barto bartobrian@gmail.com
Mon, 21 Mar 2022 22:02:10 -0400
commit

9b3a1f8448fa2c7e4558ebe1bb5a841141637210

parent

bc58135869a746ab34a80b274976c6bb8926865d

1 files changed, 4 insertions(+), 1 deletions(-)

jump to
M listfix_filter.pylistfix_filter.py

@@ -276,7 +276,10 @@

## Costruct Filtered Email email_filtered.append(f"From: \"{sender_name} via {list_name}\" <{list_email}>\n") -email_filtered.append(f"Reply-To: {list_email}\n") +if (sender not in email_lists[list_email]): + email_filtered.append(f"Reply-To: {list_email}, {sender}\n") +else: + email_filtered.append(f"Reply-To: {list_email}\n") exclude_headers = ["To", "Cc", "Subject", "Content-[^:]+", "MIME-Version"] email_filtered.extend(strip_headers(email, exclude_headers))