Fix encoding of protected header subject
authorAndre Heinecke <aheinecke@gnupg.org>
Fri, 22 Feb 2019 05:45:13 +0000 (06:45 +0100)
committerAndre Heinecke <aheinecke@gnupg.org>
Fri, 22 Feb 2019 05:45:13 +0000 (06:45 +0100)
* src/mimedataprovider.cpp (MimeDataProvider::finalize): Parse
the subject through rfc2047

src/mimedataprovider.cpp

index 6afcdcd..7e3f8a4 100644 (file)
@@ -1107,6 +1107,10 @@ void MimeDataProvider::finalize ()
           else
             {
               m_internal_subject = subject + strlen ("Subject: ");
+              if (m_internal_subject.size())
+                {
+                  m_internal_subject = rfc2047_parse (m_internal_subject.c_str ());
+                }
             }
         }
     }