[Kde-pim] Akonadi Question when removing items
Martin Koller
kollix at aon.at
Wed Mar 26 17:56:28 GMT 2014
On Wednesday 26 March 2014 11:25:04 Daniel Vrátil wrote:
> > I have an mbox, set to compact every 1 msg. Having 5 messages in the box,
> > select first 2 msg, hit "Shift-Del" in kmail.
> > mbox resource gets itemRemoved(), which leads to mbox::purge() which needs
> > to change all remoteids below. FetchJob however only returns 3 as the second
> > is already gone.
>
> Your problem could partially be solved by porting the resource to
> AgentBase::ObserverV3 so that change notifications are delivered in batches.
> This would allow you to do compaction after each batch instead of every single
> change.
>
> Although change notifications are compressed on the server and on the client
> side, it still does not guarantee that two subsequent batches are not
> generated.
>
> Delaying the compaction by couple seconds after last batch should cover most
> cases however.
well, this is not a safe solution. I can always have this race condition where
the agent wants to act on an item which is no longer in the DB.
--
Best regards/Schöne Grüße
Martin
A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?
() ascii ribbon campaign - against html e-mail
/\ - against proprietary attachments
Geschenkideen, Accessoires, Seifen, Kulinarisches: www.bibibest.at
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
More information about the kde-pim
mailing list