diff mbox

notify-stable-review: modify email subject line to include kernel version

Message ID 1382377367-4653-1-git-send-email-luis.henriques@canonical.com
State New
Headers show

Commit Message

Luis Henriques Oct. 21, 2013, 5:42 p.m. UTC
It has been recently request in lkml[1] to modify stable kernel review
emails to clearly tag them as stable patches (it looks like gmail for
example does not allow to filter email from email headers such as
'X-Extended-Stable').

Thus, this patch modifies the email subject lines to include the kernel
version number, as suggested by Ben Hutchings.

[1] https://lkml.org/lkml/2013/10/10/514

Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
---
 stable/notify-stable-review | 2 ++
 1 file changed, 2 insertions(+)

Comments

Kamal Mostafa Oct. 21, 2013, 5:59 p.m. UTC | #1
On Mon, 2013-10-21 at 18:42 +0100, Luis Henriques wrote:
> It has been recently request in lkml[1] to modify stable kernel review
> emails to clearly tag them as stable patches (it looks like gmail for
> example does not allow to filter email from email headers such as
> 'X-Extended-Stable').
> 
> Thus, this patch modifies the email subject lines to include the kernel
> version number, as suggested by Ben Hutchings.
> 
> [1] https://lkml.org/lkml/2013/10/10/514
> 
> Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
> ---
>  stable/notify-stable-review | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/stable/notify-stable-review b/stable/notify-stable-review
> index 2557392..ce6120c 100755
> --- a/stable/notify-stable-review
> +++ b/stable/notify-stable-review
> @@ -308,6 +308,8 @@ see https://wiki.ubuntu.com/Kernel/Dev/ExtendedStable .
>  
>                      if not subject:
>                          if 'Subject:' in line:
> +                            line = line.replace("Subject: [PATCH ",
> +                                                "Subject: [PATCH %s " % (basever))
>                              subject = True
>  
>                      if subject and not header_add:
> -- 
> 1.8.3.2
> 
>
Luis Henriques Oct. 22, 2013, 9:02 a.m. UTC | #2
Cheers,
--
Luis
diff mbox

Patch

diff --git a/stable/notify-stable-review b/stable/notify-stable-review
index 2557392..ce6120c 100755
--- a/stable/notify-stable-review
+++ b/stable/notify-stable-review
@@ -308,6 +308,8 @@  see https://wiki.ubuntu.com/Kernel/Dev/ExtendedStable .
 
                     if not subject:
                         if 'Subject:' in line:
+                            line = line.replace("Subject: [PATCH ",
+                                                "Subject: [PATCH %s " % (basever))
                             subject = True
 
                     if subject and not header_add: