From e19fafae04c6733a3c8ccddf9a6565ef2b40dce5 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Tue, 24 Jul 2012 05:28:11 -0400
Subject: [PATCH] Prefer default addressbook also when checking for existence of MDN request recipient

---
 program/steps/mail/show.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/program/steps/mail/show.inc b/program/steps/mail/show.inc
index 70c0833..9f0f7ba 100644
--- a/program/steps/mail/show.inc
+++ b/program/steps/mail/show.inc
@@ -257,7 +257,7 @@
 
   if ($email) {
     // @TODO: search in all address books?
-    $CONTACTS = $RCMAIL->get_address_book(null, true);
+    $CONTACTS = $RCMAIL->get_address_book(-1, true);
     $existing = $CONTACTS->search('email', $email, true, false);
     if ($existing->count)
       return true;

--
Gitblit v1.9.1