From kde-commits Wed Aug 31 22:00:18 2011 From: Gregory Schlomoff Date: Wed, 31 Aug 2011 22:00:18 +0000 To: kde-commits Subject: [kdepimlibs/4.7] kimap: KIMAP::FetchJob: When parsing a quoted Message-Id: <20110831220018.30FDFA60B9 () git ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=131482804028368 Git commit ea8d0c2d6260df8f10d3114bf5bc4d3ac8b7d771 by Gregory Schlomoff. Committed on 31/08/2011 at 23:36. Pushed by schlomoff into branch '4.7'. 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/ea8d0c2d6260df8f10d3114bf5bc4d3ac8b7d771 diff --git a/kimap/fetchjob.cpp b/kimap/fetchjob.cpp index 71b437b..3096864 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; }