From e2f185e1b3161b0d1de12a04d70d8d32f1fd8761 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Fri, 13 May 2011 14:23:30 -0400
Subject: [PATCH] Don't connect to address books unless necessary

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

diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index 889406b..cfdad79 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -1248,7 +1248,7 @@
   $j = 0;
   $out = '';
 
-  if ($got_writable_abook === null && $books = $RCMAIL->get_address_sources(true)) {
+  if ($addicon && $got_writable_abook === null && $books = $RCMAIL->get_address_sources(true)) {
     $got_writable_abook = true;
   }
 

--
Gitblit v1.9.1