From f12c2ca738e9b5cb94c3bb50d5c9c8c5b569b61d Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Fri, 20 Nov 2020 14:55:27 +0100 Subject: [PATCH] bug in rfc2047 decoder would sometimes move characters around in mail header (in presence of an equal sign) --- src/utils/mimeparse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/mimeparse.cpp b/src/utils/mimeparse.cpp index 26cbbe97..cf04f7db 100644 --- a/src/utils/mimeparse.cpp +++ b/src/utils/mimeparse.cpp @@ -516,7 +516,7 @@ bool rfc2047_decode(const std::string& in, std::string &out) state = rfc2047charset; } break; - default: state = rfc2047ready; out += '='; out += ch;break; + default: state = rfc2047ready; value += '='; value += ch;break; } } break;