DPDK CI discussions
 help / color / mirror / Atom feed
From: Aaron Conole <aconole@redhat.com>
To: Min Zhou <zhoumin@loongson.cn>
Cc: ci@dpdk.org,  msantana@redhat.com,  dmarchan@redhat.com,
	thomas@monjalon.net,  probb@iol.unh.edu,  dceara@redhat.com,
	alialnu@nvidia.com
Subject: Re: [PATCH v2] tools: fix parsing message-id in the headers of email
Date: Wed, 20 Dec 2023 08:37:04 -0500	[thread overview]
Message-ID: <f7tr0jhknb3.fsf@redhat.com> (raw)
In-Reply-To: <20231214024714.26763-1-zhoumin@loongson.cn> (Min Zhou's message of "Thu, 14 Dec 2023 02:47:14 +0000")

Min Zhou <zhoumin@loongson.cn> writes:

> 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/.
>
> This patch passes Message-[iI][dD] as the header argument to
> getheader function.
>
> Acked-by: Aaron Conole <aconole@redhat.com>
> Signed-off-by: Min Zhou <zhoumin@loongson.cn>
> ---

Thanks, applied!

>  tools/parse-email.sh | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/tools/parse-email.sh b/tools/parse-email.sh
> index 9cb9583..de8b5bb 100755
> --- a/tools/parse-email.sh
> +++ b/tools/parse-email.sh
> @@ -33,8 +33,7 @@ getheader () # <header_name> <email_file>
>  
>  subject=$(getheader Subject "$1")
>  from=$(getheader From "$1")
> -msgid=$(getheader Message-Id "$1")
> -[ -n "$msgid" ] || msgid=$(getheader Message-ID "$1")
> +msgid=$(getheader Message-[iI][dD] "$1")
>  pwid=$(getheader X-Patchwork-Id "$1")
>  listid=$(getheader List-Id "$1")
>  reply=$(getheader In-Reply-To "$1")


      reply	other threads:[~2023-12-20 13:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-14  2:47 Min Zhou
2023-12-20 13:37 ` Aaron Conole [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=f7tr0jhknb3.fsf@redhat.com \
    --to=aconole@redhat.com \
    --cc=alialnu@nvidia.com \
    --cc=ci@dpdk.org \
    --cc=dceara@redhat.com \
    --cc=dmarchan@redhat.com \
    --cc=msantana@redhat.com \
    --cc=probb@iol.unh.edu \
    --cc=thomas@monjalon.net \
    --cc=zhoumin@loongson.cn \
    /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).