mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-26 00:43:22 +00:00
See ChangeLog
Monotone-Parent: 82564e2898976a6c09a85817e4b2954a5c58b7a9 Monotone-Revision: 387161e51d5f56bffe765c8e46dec729db13794d Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2011-11-21T14:15:14
This commit is contained in:
@@ -134,19 +134,34 @@
|
||||
return [self isAppleDAVWithSubstring: @"Mac OS X/10."];
|
||||
}
|
||||
|
||||
//
|
||||
// sogod[22188] -[WEClientCapabilities initWithRequest:]: Unknown WebClient: user-agent='CalendarStore/5.0.1 (1139.14); iCal/5.0.1 (1547.4); Mac OS X/10.7.2 (11C74)'
|
||||
//
|
||||
//
|
||||
- (BOOL) isICal4
|
||||
{
|
||||
return [self isAppleDAVWithSubstring: @"iCal/4."];
|
||||
return ([self isAppleDAVWithSubstring: @"iCal/4."] ||
|
||||
[self isAppleDAVWithSubstring: @"iCal/5."]);
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Starting from 10.7, we see something like:
|
||||
//
|
||||
// sogod[27330] -[WEClientCapabilities initWithRequest:]: Unknown WebClient: user-agent='AddressBook/6.1 (1062) CardDAVPlugin/196 CFNetwork/520.2.5 Mac_OS_X/10.7.2 (11C74)'
|
||||
//
|
||||
- (BOOL) isMacOSXAddressBookApp
|
||||
{
|
||||
WEClientCapabilities *cc;
|
||||
BOOL b;
|
||||
|
||||
cc = [self clientCapabilities];
|
||||
|
||||
return ([[cc userAgent] rangeOfString: @"CFNetwork"].location != NSNotFound
|
||||
&& [[cc userAgent] rangeOfString: @"Darwin"].location != NSNotFound);
|
||||
b = [[cc userAgent] rangeOfString: @"CFNetwork"].location != NSNotFound &&
|
||||
([[cc userAgent] rangeOfString: @"Darwin"].location != NSNotFound ||
|
||||
[[cc userAgent] rangeOfString: @"AddressBook"].location != NSNotFound);
|
||||
|
||||
return b;
|
||||
}
|
||||
|
||||
- (BOOL) isIPhoneAddressBookApp
|
||||
|
||||
Reference in New Issue
Block a user