From kde-commits Wed Aug 31 21:54:12 2011 From: Gregory Schlomoff Date: Wed, 31 Aug 2011 21:54:12 +0000 To: kde-commits Subject: [kdepimlibs] kimap: KIMAP::FetchJob: When parsing a quoted string, Message-Id: <20110831215412.7998EA6078 () git ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=131482767227875 Git commit b08cb6df22600432e9d00ada719f9a125a083b89 by Gregory Schlomoff. Committed on 31/08/2011 at 23:36. Pushed by schlomoff into branch 'master'. KIMAP::FetchJob: When parsing a quoted string, we were returning the closing quote along with the string. M +1 -1 kimap/fetchjob.cpp http://commits.kde.org/kdepimlibs/b08cb6df22600432e9d00ada719f9a125a083b89 diff --git a/kimap/fetchjob.cpp b/kimap/fetchjob.cpp index 5ed0a05..d4e9a14 100644 --- a/kimap/fetchjob.cpp +++ b/kimap/fetchjob.cpp @@ -489,7 +489,7 @@ QByteArray FetchJobPrivate::parseString( const QByteArray &structure, int &pos ) continue; } if ( structure[pos] == '"' ) { - result = structure.mid( start+1, pos - start ); + result = structure.mid( start+1, pos - start - 1); pos++; break; }