[kteam-tools][PATCH] stable: notify-stable-patch-queued --blacklist=<email address>
Luis Henriques
luis.henriques at canonical.com
Wed Oct 2 17:47:23 UTC 2013
New optional switch "--blacklist=invalid at email.com" adds a email (or,
to be more precise, any string) to the blacklist. Any email recipient
in this list will be discarded.
Signed-off-by: Luis Henriques <luis.henriques at canonical.com>
---
stable/notify-stable-patch-queued | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/stable/notify-stable-patch-queued b/stable/notify-stable-patch-queued
index f525d0a..494583e 100755
--- a/stable/notify-stable-patch-queued
+++ b/stable/notify-stable-patch-queued
@@ -50,6 +50,13 @@ OptParser.add_option(
"git config user.name and user.email (%default)."
)
OptParser.add_option(
+ "-b", "--blacklist", dest="blacklist", action="append", type="string",
+ help="adds a new entry to the blacklist, i.e., if an email recipient "
+ "matches an entry in the blacklist, it won't get notified. "
+ "Useful, for example, when a bogus email address is found in a "
+ "patch."
+)
+OptParser.add_option(
"--version", dest="version", action="store", default="3.5.y.z",
help="sets the kernel version displayed in the subject of the "
"notification emails, default is %default")
@@ -75,6 +82,9 @@ if opts.sender == "":
print "EE: No mail sender was set!"
exit(1)
+if opts.blacklist != None:
+ SobBlacklist = SobBlacklist + opts.blacklist
+
def AssembleMailBody(version, subject, patchlines):
# strip the real version used in our branch for the email
bversion = version.split('y')[0]
--
1.8.3.2
More information about the kernel-team
mailing list