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 06A79A0506 for ; Tue, 12 Apr 2022 10:54:32 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 00BF5410E1; Tue, 12 Apr 2022 10:54:32 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 7EAE740DF6 for ; Tue, 12 Apr 2022 10:54:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1649753670; 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; bh=hi+naPOBMKkfiO2d6Ps8TY/a5z+vo3+/uKwFOZRhpmU=; b=g6blYLS6+CXmoqJcv8POwMM0hxQYz+ET+B/Qq2f1MQgwV9chfXbQwrUpMw7aAxdd2H+lan /JutGmMx59tmWsIJpU4hmbFcdwo5M59HBwDdQdusEElOQlHWvxTla0Lv+hSV5q/GV3XAU1 cSFpXn6MBaV7QjzqJvWu0Vtzwpil0eM= 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-179-rSRZEY_FOdaK-bbEskGBwQ-1; Tue, 12 Apr 2022 04:54:27 -0400 X-MC-Unique: rSRZEY_FOdaK-bbEskGBwQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A9E78800B28; Tue, 12 Apr 2022 08:54:26 +0000 (UTC) Received: from dmarchan.remote.csb (unknown [10.40.192.83]) by smtp.corp.redhat.com (Postfix) with ESMTP id DC56B4066CAB; Tue, 12 Apr 2022 08:54:25 +0000 (UTC) From: David Marchand To: thomas@monjalon.net, alialnu@nvidia.com Cc: ci@dpdk.org Subject: [PATCH] tools: accept patch with subject starting with RFC Date: Tue, 12 Apr 2022 10:54:17 +0200 Message-Id: <20220412085417.15884-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.11.54.1 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 --- tools/filter-patch-email.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/filter-patch-email.sh b/tools/filter-patch-email.sh index 9ac8221..5217df3 100755 --- a/tools/filter-patch-email.sh +++ b/tools/filter-patch-email.sh @@ -43,10 +43,14 @@ 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 '^\[RFC PATCH' ; then + patchsubject=true + break + fi if echo "$subject" | grep -q '^\[PATCH' ; then patchsubject=true break -- 2.23.0