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:
@ -317,7 +317,7 @@ static std::vector<std::string>
|
|||||||
extract_tags(const MimeMessage& mime_msg)
|
extract_tags(const MimeMessage& mime_msg)
|
||||||
{
|
{
|
||||||
constexpr std::array<std::pair<const char*, char>, 3> tag_headers = {{
|
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;
|
std::vector<std::string> tags;
|
||||||
|
|||||||
Reference in New Issue
Block a user