[Kde-pim] Review Request 121994: Make SearchPatternString::requiredPart consistent with KMime and Akonadi

Tomáš Trnka tomastrnka at gmx.com
Sun Jan 11 16:51:07 GMT 2015


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

Review request for KDEPIM.


Repository: kdepim


Description
-------

SearchRule::RequiredPart::Envelope covers exactly those headers that are
directly provided by KMime::Message (and filled in by
SerializerPluginMail::deserialize in
kdepim-runtime/plugins/akonadi_serializer_mail.cpp). Anything else has
to use the Header part or the necessary data will not be fetched.

The inconsistency had been causing weird bugs where filters using header
fields other than those provided by Envelope "randomly" worked/failed
depending on whether there was another filter in the chain that caused
the Header part to be fetched. This commit fixes filtering using
arbitrary headers.


Diffs
-----

  mailcommon/search/searchpattern.cpp 18533445ecc479018904290f6e93a6d5933e4950 

Diff: https://git.reviewboard.kde.org/r/121994/diff/


Testing
-------

I'm using this on 4.14 for several months now with heavy filtering without problems. As the change is towards fetching more than before, existing filters cannot break.


Thanks,

Tomáš Trnka

_______________________________________________
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