Skip to content

Commit f044f11

Browse files
committed
Simplify SQL query for item parts.
- PartTable.name IN ( 'COLLECTIONID', 'PLD:RFC822' ) + PartTable.name IN ( 'PLD:RFC822' ) As suggested by Dan + Volker.
1 parent f15892d commit f044f11

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/src/handler/fetchhelper.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,8 @@ void FetchHelper::parsePartList()
514514
mRemoteRevisionRequested = true;
515515
} else if ( b == AKONADI_PARAM_GID ) {
516516
mGidRequested = true;
517+
} else if ( b == AKONADI_PARAM_COLLECTIONID ) {
518+
// we always return collection IDs anyway
517519
} else {
518520
mRequestedParts.push_back( b );
519521
if ( b.startsWith( AKONADI_PARAM_PLD ) ) {

0 commit comments

Comments
 (0)