Ack: [kteam-tools][PATCH] stable: notify-stable-patch-queued --blacklist=<email address>

Kamal Mostafa kamal at canonical.com
Wed Oct 2 21:16:20 UTC 2013


On Wed, 2013-10-02 at 18:47 +0100, Luis Henriques wrote:
> 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
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20131002/30b99f35/attachment.sig>


More information about the kernel-team mailing list