[Kde-pim] Review Request 112724: Don't bother IMAP servers with not supported flags
André Wöbbeking
woebbeking at kde.org
Wed Sep 25 13:34:41 BST 2013
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/112724/
-----------------------------------------------------------
(Updated Sept. 25, 2013, 2:34 p.m.)
Review request for KDEPIM, Christian Mollekopf, Dan Vrátil, Kevin Ottens, Kevin Krammer, Laurent Montel, Sergio Luis Martins, and Volker Krause.
Changes
-------
I changed the diff as requested by Kevin. I also made fromAkonadiFlags() private so it can't be called by accident.
As the tests are disabled and don't build I'll write a test for this when the tests are fixed.
Description
-------
I moved the filtering from ChangeItemTask::triggerStoreJob() to ResourceTask::fromAkonadiFlags() which it is used always when IMAP flags are sent. I had to remove the static from fromAkonadiFlags() to be able to call collection().
I see one problem: it needs some time after the start of the imap resource til CollectionFlagsAttribute is set by RetrieveItemsTask. In that time the flags aren't filtered.
Are the permanent flags equal for all folders and could be stored in the resource?
This addresses bugs 278082 and 291332.
http://bugs.kde.org/show_bug.cgi?id=278082
http://bugs.kde.org/show_bug.cgi?id=291332
Diffs (updated)
-----
resources/imap/additemtask.cpp da965a1
resources/imap/changeitemsflagstask.cpp 1c7f415
resources/imap/changeitemtask.cpp 1a5e969
resources/imap/resourcetask.h f2bfed0
resources/imap/resourcetask.cpp a41e884
Diff: http://git.reviewboard.kde.org/r/112724/diff/
Testing
-------
I don't get error messages about invalid parameters anymore.
Thanks,
André Wöbbeking
_______________________________________________
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