[Kde-pim] Filter Log: Collection::name() is empty?

Milian Wolff mail at milianw.de
Fri Sep 23 01:11:37 BST 2011


Hey all,

since some of my filters are not working, I turned on the filter log as Tobias 
suggested. Indeed it contains  this when I try to mark an email as spam:

[02:07:19] Evaluating filter rules: (match all of the following) "<size>" 
<greater-or-equal> "0"
[02:07:19] 1 = "<size>" <greater-or-equal> "0" ( 2024 )
[02:07:19] Filter rules have matched.
------------------------------
[02:07:19] Applying filter action: Mark As "P"
[02:07:19] Applying filter action: Execute Command "sa-learn -L --spam --no-
sync"
[02:07:20] Applying filter action: Move Into Folder ""

The email is *not* moved nor marked as spam apparently, the filter setup looks 
correct to me (and this used to work just fine before).

Also note the last line. Looking at FilterActionWithFolder::displayString I 
see:

mFolder.isValid() = true (I added debug output)
mFolder.url().path() = "" because mFolder.url() = akonadi:?collection=191

which seems wrong. Rather, I'd say this should return mFolder.name()

But this is empty as well and I have no idea why?! Should setting up a 
Collection from a Collection::Id be all that is required to get a name() ?

Also note that the folder in question has a non-empty name ("Spam") and I see 
it properly in kmail/akonadiconsole. The latter also verifies that the ID used 
in the filter is correct.

bye
-- 
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20110923/0138ea55/attachment.sig>
-------------- next part --------------
_______________________________________________
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