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

gcc484ntopperl-5.22
Last change on this file since c5c522c 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
  • svn/src/wordEncoder.cpp

     
    239239        if (buffer.find_first_of("\n\r") != string::npos)
    240240                return true;
    241241
     242        // If the string contains a QP string, we need to encode this.
     243        // Not a 100% check, but we'd only get more encoded strings.
     244        std::string::size_type pos = buffer.find("=?");
     245        std::string::size_type end = buffer.find("?=");
     246        if (pos != string::npos && end != string::npos && end > pos)
     247                return true;
     248
    242249        return false;
    243250}
    244251
Note: See TracBrowser for help on using the repository browser.