Filters a folder based on rules defined in the FilterDriver object.
this |
CamelFilterDriver |
folder |
CamelFolder to be filtered |
cache |
UID cache (needed for POP folders) |
uids |
message uids to be filtered or null (as a shortcut to filter all messages) |
remove |
TRUE to mark filtered messages as deleted |
cancellable |
optional Cancellable object, or null |
-1 if errors were encountered during filtering, otherwise returns 0. |