anonymize_headers.pcre 601 B

1234567891011
  1. if /^\s*Received:.*Authenticated sender.*\(Postcow\)/
  2. #/^Received: from .*? \([\w-.]* \[.*?\]\)\s+\(Authenticated sender: (.+)\)\s+by.+\(Postcow\) with (E?SMTPS?A?) id ([A-F0-9]+).+;.*?/
  3. /^Received: from .*? \([\w-.]* \[.*?\]\)(.*|\n.*)\(Authenticated sender: (.+)\)\s+by.+\(Postcow\) with (.*)/
  4. REPLACE Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with $3
  5. endif
  6. /^\s*X-Enigmail/ IGNORE
  7. /^\s*X-Mailer/ IGNORE
  8. /^\s*X-Originating-IP/ IGNORE
  9. /^\s*X-Forward/ IGNORE
  10. # Not removing UA by default, might be signed
  11. #/^\s*User-Agent/ IGNORE