From c6e1408732bcfb4290fbd57a1c6c534bb5c07d69 Mon Sep 17 00:00:00 2001 From: Thomas Oettli Date: Mon, 20 Apr 2020 10:33:49 +0200 Subject: [PATCH] Add missing documentation for option ignore_envfrom --- README.md | 2 ++ docs/pyheader-milter.conf.example | 6 ++++++ setup.py | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1cd2acf..a8e01a7 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,8 @@ The following configuration options are mandatory for a mod-rule: New value of the header. The following configuration options are optional for each rule: +* **ignore_envfrom** + Regular expression to match envelop-from addresses. The rule will be skipped if the expression matches. * **ignore_hosts** Comma-separated list of host and network addresses. The rule will be skipped if the sending host is included here. * **only_hosts** diff --git a/docs/pyheader-milter.conf.example b/docs/pyheader-milter.conf.example index f19dd53..faa4713 100644 --- a/docs/pyheader-milter.conf.example +++ b/docs/pyheader-milter.conf.example @@ -19,6 +19,12 @@ # rules = add_header,del_header,mod_header +# Option: ignore_envfrom +# Notes: Set a regular expression to match envelope-from addresses to be ignored. +# Value: [ REGEX ] +# +ignore_envfrom = ^.*@localhost$ + # Option: ignore_hosts # Notes: Set a list of host and network addresses to be ignored. # All the common host/network notations are supported, including IPv6. diff --git a/setup.py b/setup.py index 765a949..d006ca0 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ def read_file(fname): return f.read() setup(name = "pyheadermilter", - version = "0.0.7", + version = "0.0.8", author = "Thomas Oettli", author_email = "spacefreak@noop.ch", description = "A pymilter based sendmail/postfix pre-queue filter.",