This was a issue in inoparability of RC-8.1 and carddav_plugin. (crash-override.net)
We use CardDav-Addressbook only, but RC searches only in the contacts DB-table, but carddav_plugin in carddav_contacts.
Maybe following helps someone:
Index: program/steps/mail/func.inc
===================================================================
--- program/steps/mail/func.inc (revision 145)
+++ program/steps/mail/func.inc (working copy)
@@ -586,10 +586,17 @@
{
switch($show_images) {
case '1': // known senders only
- $CONTACTS = new rcube_contacts($RCMAIL->db, $_SESSION['user_id']);
- if ($CONTACTS->search('email', $message->sender['mailto'], true, false)->count) {
- $message->set_safe(true);
- }
+ $book_types = (array) $RCMAIL->config->get('autocomplete_addressbooks', 'sql');
+ foreach ($book_types as $id) {
+ $abook = $RCMAIL->get_address_book($id);
+ $result = $abook->search(array('email'), $message->sender['mailto'], $mode, true, true, array('email'));
+ if($result->count > 0){
+ //This sets the message as save. Do we want that.
+ //If a contact is deleted this message will stay marked "save"
+ //$message->set_safe(true);
+ return;
+ }
+ }
break;
case '2': // always
$message->set_safe(true);
Regards,
Jussi