Bug 240218 - Filter "From" by "is not in address book" does not work anymore
Summary: Filter "From" by "is not in address book" does not work anymore
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail
Classification: Applications
Component: filtering (show other bugs)
Version: 1.13.2
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-31 14:12 UTC by Tokes
Modified: 2015-04-12 10:10 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tokes 2010-05-31 14:12:56 UTC
Version:           1.13.2 (using KDE 4.4.2) 
OS:                Linux

When I updated from Kubuntu 9.10 to 10.04 the my Filter stopped working.

I used the following filter: 
 "From" by "is not in address book"
-> "Mark as" important"

(This notifies me on changes of the mail adresses of my contacts.)


Reproducible: Always




OS: Linux (i686) release 2.6.32-22-generic
Compiler: cc
Comment 1 Laurent Montel 2010-06-04 10:41:39 UTC
Can't reproduce here.
Work fine.

Could you use "Tools"->"Filter log viewer" and activate it.
Get new email and look at if filter works

Regards
Comment 2 Tokes 2010-06-14 22:45:23 UTC
Moin Laurent,
thanks for your help!

Maybe my description is misleading. The filter does not break kmail, but just matches every mail. So mails coming from contacts stored in my kaddressbock are matched by 
 "From" by "is not in address book"

Here the log:

[22:35:46] <b>Evaluating filter rules:</b> (match any of the following)
	&quot;From&quot; &lt;is-not-in-addressbook&gt; &quot;is not in address book&quot;
[22:35:46] <font color=#00FF00>1 = </font>&quot;From&quot; &lt;is-not-in-addressbook&gt; &quot;is not in address book&quot; (<i>NAME &lt;MAIL@PROVIDER.COM&gt;</i>)
[22:35:46] <b>Filter rules have matched.</b>
[22:35:46] <b>Applying filter action:</b> Mark As &quot;G&quot;

Greetings
Torben
Comment 3 Laurent Montel 2010-06-23 10:44:16 UTC
Are you sure that email is in your addressbook ?
Comment 4 Tokes 2010-06-23 16:09:03 UTC
Yes, tried with many mails from different people. 

If I compose a message the email address is auto-completed, so I am sure the addressbook is right.

Same thing on 2 machines, both using kubuntu 10.04

Maybe the "Link" to the addressbook is the problem. In Akonadi I have two vcf adressbooks (private and work) plugged in as "KDE addressbook (taditional)".

Thanks for your time!
Torben
Comment 5 Schelte Bron 2010-08-15 12:56:39 UTC
I have pretty much the same problem after upgrading from OpenSuSE 11.2 to 11.3. My filter checked on "From is in address book" which now never matches anymore.
Comment 6 Manu 2010-12-12 04:49:58 UTC
Have the exact same issue with Mandriva 2010.1 and that same filter:

0 = "From" <is-in-addressbook> "is in address book"

the versions are:
Kmail 1.13.3
KDE 4.4.3

I have tried to change the address book from vxard file to akonadi format without any sucess (the adress book works, but the filter still pretends none of the emails is coming from an address book person)
Comment 7 Steve McCarthy 2010-12-23 21:39:45 UTC
TEST CASE: I verified this failure on a new user as follows.

1) Run kmail as new user
2) Create "from is in address book" filter, choose any action, doesn't matter
3) Send yourself email then right click the header to add yourself to address book
4) Run the filter against that same message and it will NOT trigger.

The same header info that was used to create the address book entry fails to trigger the filter.  This with only 1 message, 1 filter and 1 address book entry.

BTW, these bugs appear identical or closely related: 162539, 257889, 250230, & 259181, and I only checked half the list.

Hope this info helps finding a solution.
Comment 8 Tokes 2010-12-29 22:17:35 UTC
Hi Steve, thanks a lot for this nice test case. I really hope that this bug will finally be fixed, since I really like this filter for keeping my addressbook uptodate. Have a nice start into 2011!
Comment 9 bloggs_j 2011-01-14 10:28:27 UTC
(In reply to comment #5)
> I have pretty much the same problem after upgrading from OpenSuSE 11.2 to 11.3.
> My filter checked on "From is in address book" which now never matches anymore.

Exactly the same goes for me too.
Comment 10 bloggs_j 2011-01-14 10:33:57 UTC
*** This bug has been confirmed by popular vote. ***
Comment 11 Csaba Kiss 2013-03-06 20:52:29 UTC
I have just installed the latest and greatest KDE with kmail (4.10.1) and the addressbook filter does not work.
Comment 12 Alexander 2014-01-31 15:43:07 UTC
I can confirm this bug on kmail 4.11.5 . Any chance that this will get fixed after 4 years? If not they should remove the option from the filters dialog, because in the worst case users can lose mails with broken filters.
Comment 13 Alexander 2014-02-07 12:53:28 UTC
I propose we change this bug to critical since there is a real danger of data loss.
Comment 14 Laurent Montel 2015-04-12 10:10:13 UTC
Thank you for taking the time to file a bug report.

KMail2 was released in 2011, and the entire code base went through significant changes. We are currently in the process of porting to Qt5 and KF5. It is unlikely that these bugs are still valid in KMail2.

We welcome you to try out KMail 2 with the KDE 4.14 release and give your feedback.