source: npl/overig/libvmime/vmime-0.9.2-qp-in-buffers.diff @ 4e011a4

gcc484perl-5.22
Last change on this file since 4e011a4 was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 515 bytes
RevLine 
[c5c522c]1--- svn/src/wordEncoder.cpp     (revision 603)
2+++ svn/src/wordEncoder.cpp     (working copy)
3@@ -239,6 +239,13 @@
4        if (buffer.find_first_of("\n\r") != string::npos)
5                return true;
6 
7+       // If the string contains a QP string, we need to encode this.
8+       // Not a 100% check, but we'd only get more encoded strings.
9+       std::string::size_type pos = buffer.find("=?");
10+       std::string::size_type end = buffer.find("?=");
11+       if (pos != string::npos && end != string::npos && end > pos)
12+               return true;
13+
14        return false;
15 }
16 
Note: See TracBrowser for help on using the repository browser.