Browse Source

lowercase in MIME for variables name*1*, name*2*...

master
François 1 month ago
parent
commit
b046089d96
  1. 4
      src/cpp/Attachment.cpp

4
src/cpp/Attachment.cpp

@ -302,7 +302,7 @@ cleanString (string line) {
DEF_LOG ("Attachment::cleanString", "line: " << line.substr (0, 100) << "..."); DEF_LOG ("Attachment::cleanString", "line: " << line.substr (0, 100) << "...");
static const regex findPart ("(((\"(\\\\.|[^\\\\])*\")|\\s|[^;\\\"])+;?)"); 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; string result;
smatch m1, m2; smatch m1, m2;
@ -316,7 +316,7 @@ cleanString (string line) {
LOG ("id: " << id); LOG ("id: " << id);
toLower (id); toLower (id);
result += id; result += id;
result += m2[2]; result += m2[3];
} else } else
result += part; result += part;
line = m1.suffix (); line = m1.suffix ();

Loading…
Cancel
Save