qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Christian Schoenebeck <qemu_oss@crudebyte.com>
To: qemu-devel@nongnu.org
Cc: "Thomas Huth" <thuth@redhat.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	qemu-trivial@nongnu.org,
	"Philippe Mathieu-Daudé" <philmd@redhat.com>
Subject: Re: [PATCH] scripts/checkpatch: Improve the check for authors mangled by the mailing list
Date: Tue, 16 Feb 2021 13:01:34 +0100	[thread overview]
Message-ID: <6113420.MkNRk1MDtq@silver> (raw)
In-Reply-To: <20210216071512.1199827-1-thuth@redhat.com>

On Dienstag, 16. Februar 2021 08:15:12 CET Thomas Huth wrote:
> There were recently some patches on the list which had their "From:"
> line mangled like this:
> 
>  From: qemu_oss--- via <qemu-devel@nongnu.org>
> 
> Since our test in the checkpatch.pl script did not trigger here, the
> patches finally also ended up in a pull request, with the wrong author
> set. So let's improve the regular expression to also complain on
> these new patterns, too.
> 
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
>  scripts/checkpatch.pl | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
> index e47ad878d8..7f194c842b 100755
> --- a/scripts/checkpatch.pl
> +++ b/scripts/checkpatch.pl
> @@ -1499,7 +1499,7 @@ sub process {
>  			$is_patch = 1;
>  		}
> 
> -		if ($line =~ /^Author: .*via Qemu-devel.*<qemu-devel\@nongnu.org>/) {
> +		if ($line =~ /^(Author|From): .* via .*<qemu-devel\@nongnu.org>/) {
>  		    ERROR("Author email address is mangled by the mailing list\n" .
> $herecurr); }

I would probably generalize the pattern even a bit more:

		if ($line =~ /^(Author|From): .*<qemu-devel\@nongnu.org>/) {

Because mailman's precise sender-rewrite prefix changed couple times. But for 
now the change above will do as well of course.

Reviewed-by: Christian Schoenebeck <qemu_oss@crudebyte.com>

Best regards,
Christian Schoenebeck




      parent reply	other threads:[~2021-02-16 12:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-16  7:15 [PATCH] scripts/checkpatch: Improve the check for authors mangled by the mailing list Thomas Huth
2021-02-16  7:16 ` Philippe Mathieu-Daudé
2021-02-16 12:01 ` Christian Schoenebeck [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6113420.MkNRk1MDtq@silver \
    --to=qemu_oss@crudebyte.com \
    --cc=pbonzini@redhat.com \
    --cc=philmd@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@nongnu.org \
    --cc=thuth@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).