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
maint-2.0.2
Ludovic Marcotte 2012-01-27 20:37:00 +00:00
parent 87e3db5391
commit 9da91b055f
1 changed files with 1 additions and 1 deletions

View File

@ -294,7 +294,7 @@
contact = [contacts lastObject];
email = [contact valueForKey: @"c_email"];
source = [contact objectForKey: @"source"];
if ([email length])
if ([email length] && [source MSExchangeHostname])
{
exchangeFreeBusy = [[MSExchangeFreeBusy alloc] init];
[exchangeFreeBusy autorelease];