From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1E018A0506 for ; Tue, 12 Apr 2022 11:12:26 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 08ACC410E1; Tue, 12 Apr 2022 11:12:26 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 4336D40DF6 for ; Tue, 12 Apr 2022 11:12:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1649754743; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/uCr2W5yi7Hu54PGctppbb43ahOQ7kE/DUc/7T7DmDY=; b=Ygy5mRmY+m8RCZo/SG+NjhzWVrZo6Pb9vWIb/jJJcHwY84Ddq+LzM4WQvg1rX5FZqrj7wI gdeQReHFn0wZEk2Pgd5QjLHpwjy4Z5GRhRSfbA2IrrhtYdyEQrlIaa0xeAMpDuhwiQz50k Aoj8paVigfbzp8lsUPoj9Iw3q85eH0A= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-606-3DuqHOz_MpK24yAnxlkgjw-1; Tue, 12 Apr 2022 05:12:13 -0400 X-MC-Unique: 3DuqHOz_MpK24yAnxlkgjw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id BAD768339DD; Tue, 12 Apr 2022 09:12:12 +0000 (UTC) Received: from dmarchan.remote.csb (unknown [10.40.192.83]) by smtp.corp.redhat.com (Postfix) with ESMTP id EA3CB145BA52; Tue, 12 Apr 2022 09:12:11 +0000 (UTC) From: David Marchand To: thomas@monjalon.net, alialnu@nvidia.com Cc: ci@dpdk.org Subject: [PATCH v2] tools: accept patch with subject starting with RFC Date: Tue, 12 Apr 2022 11:12:07 +0200 Message-Id: <20220412091207.24005-1-david.marchand@redhat.com> In-Reply-To: <20220412085417.15884-1-david.marchand@redhat.com> References: <20220412085417.15884-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.7 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david.marchand@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-BeenThere: ci@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK CI discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ci-bounces@dpdk.org If a mail does not contain a X-Mailer: header, only a subject matching [PATCH qualifies this mail as being a patch. Extend this filter and accept [RFC PATCH too. Signed-off-by: David Marchand --- Changes since v1: - factorize matching with a regexp, --- tools/filter-patch-email.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/filter-patch-email.sh b/tools/filter-patch-email.sh index 9ac8221..6593403 100755 --- a/tools/filter-patch-email.sh +++ b/tools/filter-patch-email.sh @@ -43,11 +43,11 @@ parse () set -- $line if ! $content ; then [ "$1" != 'X-Mailer:' -o "$2" != 'git-send-email' ] || gitsend=true - if echo "$line" | grep -qa '^Subject:.*\[PATCH' ; then + if echo "$line" | grep -qa '^Subject:.*PATCH' ; then subject=$(echo "$line" | sed 's,^Subject:[[:space:]]*,,') while [ -n "$subject" ] ; do echo "$subject" | grep -q '^\[' || break - if echo "$subject" | grep -q '^\[PATCH' ; then + if echo "$subject" | grep -qE '^\[(RFC |)PATCH' ; then patchsubject=true break fi -- 2.23.0