[Kde-pim] Review Request: Fix filter pipeline causing message duplication

Andras Mantia amantia at kde.org
Mon Oct 15 09:30:33 BST 2012


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/106869/
-----------------------------------------------------------

Review request for KDEPIM.


Description
-------

For whoever has any comments before I commit. ;)
 
   Change the filtering pipeline. So far if there was a move and a modifier filter,
    the order was modify followed by move. Now it is move followed by modify.
    The original order in the filters doesn't matter, it is always reordered.
    The problems with the old approach was:
    - if there was a move and a payload modification job, the item was firt modified,
    the payload uploaded back to the original place and then moved. This caused an
    extra store in the backend, that e.g on IMAP causes quite heavy traffic.
    - due to the above behavior, it could happen that the payload change updates
    the remoteId, so the move afterwards moves the *original* item, while the
    modified remains in the original place. This results in mail duplication.
    The behavior was visible with spam filtering on IMAP.
    
    The patch also cleans up the filter processing a little, reducing the number of
    arguments passed to  process() and introduces simple error handling instead
    of the existing complex, but incomplete one.


Diffs
-----


Diff: http://git.reviewboard.kde.org/r/106869/diff/


Testing
-------


Thanks,

Andras Mantia

_______________________________________________
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