[Kde-pim] trying to understand akonadi
Martin Koller
kollix at aon.at
Thu Oct 17 17:44:56 BST 2013
On Thursday 17 October 2013 11:31:55 Daniel Vrátil wrote:
> > > One possible reason could be that the mbox resource is acting to quickly
> > > to
> > > the file change notification.
> > > I.e. maybe the resource starts parsing the new mail before it is ready.
> >
> > this should not happen as both lock the file.
> > Also in this case, the mbox entry (the From ... header) shows a date/time of
> > 2013-10-16T17:40:18 but in akonadi I see 2013-10-16 17:40:23
>
> Quick look into MBoxResource code shows, that the bug is indeed on our side.
>
> When the mbox file changes, SingleFileResourceBase calls invalidateCache(
> Collection::rootCollection() ), which leads to calling MBox::retriveItems().
> It tries to lock the MBox (calling MBox::lock()), but completely ignores it's
> return value, whether the locking was successful or not and just continues
> syncing. Proper fix would probably be to call delayTask() if locking fails, but
> I'll have to test it, as I don't use MBox (maybe tomorrow, unless someone
> beats me to it).
That sounds great! If you send me the patch, I'll compile it here and try it out.
>
> >
> <snip>
> >
> > can I somehow force kmail to re-read the mail ? (update folder does not
> > change anything). Sometimes I have seen that when selecting such a mail and
> > apply the filters (CTRL-J) the mail suddenly is moved correctly to the
> > target folder and there it is shown with all details.
>
> In Akonadi Console in Browser tab right-click the folder and click "Clear
> Akonadi Cache", then click "Synchronize folder". Restart AC and KMail to show
> the changes.
Thanks for the hint
--
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
/\ www.asciiribbon.org - 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