Fix mu tag parsing from Keywords header

Split tags in the Keywords field on commas instead of spaces

https://datatracker.ietf.org/doc/html/rfc5322#section-3.6.5

Fixes #2932
This commit is contained in:
libanp
2026-06-08 23:26:18 +01:00
committed by Seth Ladygo
parent 2ba741117a
commit 01c07d8bcc

View File

@ -317,7 +317,7 @@ static std::vector<std::string>
extract_tags(const MimeMessage& mime_msg)
{
constexpr std::array<std::pair<const char*, char>, 3> tag_headers = {{
{"X-Label", ' '}, {"X-Keywords", ','}, {"Keywords", ' '}
{"X-Label", ' '}, {"X-Keywords", ','}, {"Keywords", ','}
}};
std::vector<std::string> tags;