DPDK CI discussions
 help / color / mirror / Atom feed
* [PATCH v2] tools: fix parsing message-id in the headers of email
@ 2023-12-14  2:47 Min Zhou
  2023-12-20 13:37 ` Aaron Conole
  0 siblings, 1 reply; 2+ messages in thread
From: Min Zhou @ 2023-12-14  2:47 UTC (permalink / raw)
  To: ci; +Cc: msantana, aconole, dmarchan, thomas, probb, dceara, alialnu, zhoumin

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>
---
 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")
-- 
2.27.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] tools: fix parsing message-id in the headers of email
  2023-12-14  2:47 [PATCH v2] tools: fix parsing message-id in the headers of email Min Zhou
@ 2023-12-20 13:37 ` Aaron Conole
  0 siblings, 0 replies; 2+ messages in thread
From: Aaron Conole @ 2023-12-20 13:37 UTC (permalink / raw)
  To: Min Zhou; +Cc: ci, msantana, dmarchan, thomas, probb, dceara, alialnu

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")


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-12-20 13:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-14  2:47 [PATCH v2] tools: fix parsing message-id in the headers of email Min Zhou
2023-12-20 13:37 ` Aaron Conole

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).