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 AAA2A43666; Mon, 4 Dec 2023 03:53:27 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8B7BA402AE; Mon, 4 Dec 2023 03:53:27 +0100 (CET) Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by mails.dpdk.org (Postfix) with ESMTP id 39E384026C for ; Mon, 4 Dec 2023 03:53:26 +0100 (CET) Received: from loongson.cn (unknown [10.20.42.74]) by gateway (Coremail) with SMTP id _____8Cx5_EjP21l_qM+AA--.59243S3; Mon, 04 Dec 2023 10:53:24 +0800 (CST) Received: from zm-pc.loongson.cn (unknown [10.20.42.74]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxvdwSP21lb9FTAA--.54677S2; Mon, 04 Dec 2023 10:53:20 +0800 (CST) From: Min Zhou To: ci@dpdk.org Cc: msantana@redhat.com, aconole@redhat.com, dmarchan@redhat.com, thomas@monjalon.net, probb@iol.unh.edu, dceara@redhat.com, zhoumin@loongson.cn Subject: [PATCH v1] tools: fix parsing message-id in the headers of email Date: Mon, 4 Dec 2023 02:52:46 +0000 Message-Id: <20231204025246.14779-1-zhoumin@loongson.cn> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8CxvdwSP21lb9FTAA--.54677S2 X-CM-SenderInfo: 52kr3ztlq6z05rqj20fqof0/1tbiAQAPAWVr5awCawBDsi X-Coremail-Antispam: 1Uk129KBj9xXoWrtr13JFy8Cr17KFW8uF18Xrc_yoWfJwcEk3 93Ar1SqF4DurW2kr1kAFn5CF1SgFWUAwnIkr4DXr98Jr95AF1FqrZ7J3s7Zr98Ar97Jw1a 93Z8Jw17uFZxWosvyTuYvTs0mTUanT9S1TB71UUUUUJqnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUbfAYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVWUCVW8JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV W8JVWxJwA2z4x0Y4vEx4A2jsIE14v26F4j6r4UJwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_ Gr1j6F4UJwAaw2AFwI0_Jrv_JF1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0c Ia020Ex4CE44I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jrv_ JF1lYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwI xGrwCY1x0262kKe7AKxVWUAVWUtwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWU JVW8JwCFI7km07C267AKxVWUXVWUAwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4 vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr41lIxAIcVC0I7IY x2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26c xKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAF wI0_Jr0_GrUvcSsGvfC2KfnxnUUI43ZEXa7IU8zyIUUUUUU== 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 Some email has the message-id header named "Message-id", like this: https://patches.dpdk.org/project/dpdk/patch/20230930010024.34377-1-rdna@apple.com/. So add the parsing for this kind of email. Signed-off-by: Min Zhou --- tools/parse-email.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/parse-email.sh b/tools/parse-email.sh index 9cb9583..fbe038a 100755 --- a/tools/parse-email.sh +++ b/tools/parse-email.sh @@ -35,6 +35,7 @@ subject=$(getheader Subject "$1") from=$(getheader From "$1") msgid=$(getheader Message-Id "$1") [ -n "$msgid" ] || msgid=$(getheader Message-ID "$1") +[ -n "$msgid" ] || msgid=$(getheader Message-id "$1") pwid=$(getheader X-Patchwork-Id "$1") listid=$(getheader List-Id "$1") reply=$(getheader In-Reply-To "$1") -- 2.27.0