From 7cd749fdaef21990cafac3026907d8bbfdc3dbe6 Mon Sep 17 00:00:00 2001 From: Gilles Darold Date: Sun, 7 Jun 2020 08:43:08 +0200 Subject: [PATCH] Remove bounce address validation tag (prvs=) from email address. Thanks to Shawn for the feature request. --- sendmailanalyzer | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sendmailanalyzer b/sendmailanalyzer index ffff563..42cabb4 100755 --- a/sendmailanalyzer +++ b/sendmailanalyzer @@ -2325,6 +2325,9 @@ sub edecode { my ($addr) = @_; + # First remove any bounce address tag validation if any + $addr =~ s/^prvs=[^=]+=//; + if ($addr =~ /=\?[^\?]+\?(.)\?(.*)?=/s) { if (uc($1) eq 'B') { $addr = decode_base64($1);