Commit 477059c1 authored by Andras Mantia's avatar Andras Mantia
Browse files

Do not run a modifyjob is the payload did not change, we only write back the...

Do not run a modifyjob is the payload did not change, we only write back the payload modification to disk in maildir/mbox case. There is a similar solution in the maildir resource. Makes the resource much responsive, burns less cpu, eg. on mass "mark as" operations.

svn path=/trunk/KDE/kdepim/runtime/; revision=1197059
parent bacb4e24
......@@ -180,6 +180,11 @@ void MixedMaildirResource::itemChanged( const Item &item, const QSet<QByteArray>
}
}
if ( !payloadChanged ) {
changeProcessed();
return; //ignore flag-only changes
}
Item storeItem( item );
storeItem.setRemoteId( mCompactHelper->currentRemoteId( item ) );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment