From b046089d96b9947cd0edee06597d3832c35e386d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Sat, 6 Apr 2024 17:03:08 +0200 Subject: [PATCH] lowercase in MIME for variables name*1*, name*2*... --- src/cpp/Attachment.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cpp/Attachment.cpp b/src/cpp/Attachment.cpp index 427eb4a..61742dc 100644 --- a/src/cpp/Attachment.cpp +++ b/src/cpp/Attachment.cpp @@ -302,7 +302,7 @@ cleanString (string line) { DEF_LOG ("Attachment::cleanString", "line: " << line.substr (0, 100) << "..."); static const regex findPart ("(((\"(\\\\.|[^\\\\])*\")|\\s|[^;\\\"])+;?)"); - static const regex findVarVal ("(\\s*[a-zA-Z_*-]+=)(.*;?)"); + static const regex findVarVal ("(\\s*[a-zA-Z_*-]+(\\*[0-9]+\\*)?=)(.*;?)"); string result; smatch m1, m2; @@ -316,7 +316,7 @@ cleanString (string line) { LOG ("id: " << id); toLower (id); result += id; - result += m2[2]; + result += m2[3]; } else result += part; line = m1.suffix ();