Sanity check to not fetch freebusy info from Exchange if no hostname is defined

Monotone-Parent: 15c306f9d11152fee321b11e184bc75e9e2be6f8
Monotone-Revision: 78e0e48d54b37e3da54b0ecca3eb1ed2dd1b41f7

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2012-01-27T20:37:00
This commit is contained in:
Ludovic Marcotte committed 2012-01-27 20:37:00 +00:00
1 parent 87e3db5391
commit 9da91b055f
1 file changed
+1 -1
+1 -1
View File
@@ -294,7 +294,7 @@
contact = [contacts lastObject]; contact = [contacts lastObject];
email = [contact valueForKey: @"c_email"]; email = [contact valueForKey: @"c_email"];
source = [contact objectForKey: @"source"]; source = [contact objectForKey: @"source"];
if ([email length]) if ([email length] && [source MSExchangeHostname])
{ {
exchangeFreeBusy = [[MSExchangeFreeBusy alloc] init]; exchangeFreeBusy = [[MSExchangeFreeBusy alloc] init];
[exchangeFreeBusy autorelease]; [exchangeFreeBusy autorelease];