<table><tr><td style="">dfaure created this revision.<br />dfaure added a reviewer: dvratil.<br />Restricted Application added a project: KDE PIM.<br />dfaure requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D12427">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>If the current task is e.g. uploading an item to the server, we don't<br />
want to cancelTask (which means give up and never try again), we want to<br />
deferTask, so we try again later. Otherwise, well, this is how we end up<br />
with items without a remote id, which makes syncing that folder much<br />
slower every time due to the item count mismatch.</p>
<p>Abstracted with a new method abortTask, which calls cancel or defer<br />
depending on the type of task.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Sync large folder in kmail, abort sync. But I didn't test any of<br />
the task types other than collection sync...</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R44 KDE PIM Runtime</div></div></div><br /><div><strong>BRANCH</strong><div><div>Applications/18.04</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D12427">https://phabricator.kde.org/D12427</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>resources/imap/resourcetask.cpp<br />
resources/imap/resourcetask.h</div></div></div><br /><div><strong>To: </strong>dfaure, dvratil<br /><strong>Cc: </strong>KDE PIM, dvasin, winterz, vkrause, mlaurent, knauss, dvratil<br /></div>