From 555dcca979d3fc99af1575b863e9732ec0487eaf Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Sun, 24 Mar 2013 11:24:58 +0100 Subject: [PATCH] Also check for RFC-2047 end sequence. --- src/wordEncoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wordEncoder.cpp b/src/wordEncoder.cpp index 82a74cff..332f9bf2 100644 --- a/src/wordEncoder.cpp +++ b/src/wordEncoder.cpp @@ -247,7 +247,7 @@ bool wordEncoder::isEncodingNeeded return true; // If any RFC-2047 sequence is found in the buffer, encode it - if (buffer.find("=?") != string::npos) + if (buffer.find("=?") != string::npos || buffer.find("?=") != string::npos) return true; return false;