Filtering based on testing whether a sender's address is in an address book fails when the sender's address is additional imported by the PGP plugin. In my case, the first rule depended on a address book look-up is chosen (the sender's address is not in the checked address book but the address is associate with an imported PGP key).
The PGP plugin does not import addresses. I don't really understand what you are trying to describe.
Well, the auto complete in the address field also uses entries from PGP-Keys. I have a filtering rule which checks whether the sender is in a specific address book and moves the message to a folder. Normally, that works as expected: if a person is in this address book the message is moved to the specified folder. However, if the sender's address is also in a PGP-Key, the message is moved to the specified folder, too. Even if the sender is not in the specified address book.
Changes related to this bug have been committed. Please check latest Git and update the bug accordingly. You can also get the patch from: http://git.claws-mail.org/ ++ ChangeLog 2015-08-04 12:35:02.861405703 +0200 http://git.claws-mail.org/?p=claws.git;a=commitdiff;h=c96ac033e4fb9e3c9eadfee3ac3f3d2f47da7e37 Merge: d92be0b 2780845 Author: Colin Leroy <colin@colino.net> Date: Tue Aug 4 12:35:02 2015 +0200 Merge branch 'master' of file:///home/git/claws http://git.claws-mail.org/?p=claws.git;a=commitdiff;h=2780845b62dfebf852b88848c83e302c350287c0 Author: Colin Leroy <colin@colino.net> Date: Tue Aug 4 12:35:14 2015 +0200 Remove file that should be ignored http://git.claws-mail.org/?p=claws.git;a=commitdiff;h=b4582cad28c37972af381447a8580a51acffaa3d Merge: 9693e93 200a466 Author: Colin Leroy <colin@colino.net> Date: Tue Aug 4 12:34:37 2015 +0200 Merge branch 'master' of ssh+git://git.claws-mail.org/home/git/claws http://git.claws-mail.org/?p=claws.git;a=commitdiff;h=9693e93d08f21661bd6ceb63e687f7ee8687300d Author: Colin Leroy <colin@colino.net> Date: Tue Aug 4 11:01:04 2015 +0200 Fix bug #3352, "found_in_addressbook matches entries from GPG keyring" Only include GPG keyring in autocompletion when we're not completing on a specific addressbook.