From f51c2b0f5b95199277160de577b7e5fa1ecbbcb1 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Wed, 21 Apr 2010 14:35:58 +0000 Subject: [PATCH] Monotone-Parent: a4b72920f072cccd72e189b05519b57436eb9471 Monotone-Revision: 71372fb23c7baec6da2c9bd612ed5a65db22f208 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-04-21T14:35:58 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 5 + Main/SOGo+DAV.h | 2 +- Main/SOGo+DAV.m | 448 +++++++++--------- .../Appointments/SOGoAppointmentFolder.m | 2 +- .../Appointments/SOGoAppointmentInboxFolder.m | 1 + .../Appointments/SOGoAppointmentObject.m | 1 + SoObjects/Appointments/SOGoAptMailReceipt.m | 1 + .../Appointments/SOGoWebAppointmentFolder.m | 1 + SoObjects/Contacts/SOGoUserFolder+Contacts.m | 8 +- SoObjects/Mailer/SOGoMailFolder.m | 1 + SoObjects/Mailer/SOGoMailForward.m | 5 +- SoObjects/Mailer/SOGoMailObject.m | 1 + SoObjects/Mailer/SOGoSieveConverter.m | 7 +- SoObjects/SOGo/SOGoCASSession.h | 2 +- SoObjects/SOGo/SOGoCASSession.m | 4 +- SoObjects/SOGo/WOContext+SOGo.m | 5 +- UI/Contacts/UIxContactFoldersView.m | 1 + UI/MailPartViewers/UIxMailPartICalActions.m | 20 +- UI/MailPartViewers/UIxMailPartICalViewer.m | 3 + UI/MailerUI/UIxMailEditor.m | 2 + UI/MailerUI/UIxMailFolderActions.m | 1 + UI/MailerUI/UIxMailMainFrame.m | 2 + UI/SOGoUI/SOGoACLAdvisory.m | 1 + UI/SOGoUI/SOGoFolderAdvisory.m | 1 + UI/Scheduler/UIxCalMulticolumnDayView.m | 5 +- 25 files changed, 281 insertions(+), 249 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7c45eb99c..e2088e450 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-04-21 Wolfgang Sourdeau + + * Main/SOGo+DAV.m: commented out incomplete code for handling + DAV:principal-property-search + 2010-04-20 Wolfgang Sourdeau * SoObjects/SOGo/SOGoUser.m (-mailAccounts): use the user's first diff --git a/Main/SOGo+DAV.h b/Main/SOGo+DAV.h index 6fc096505..d3e338b1f 100644 --- a/Main/SOGo+DAV.h +++ b/Main/SOGo+DAV.h @@ -31,7 +31,7 @@ @interface SOGo (SOGoWebDAVExtensions) - (WOResponse *) davPrincipalMatch: (WOContext *) localContext; -- (WOResponse *) davPrincipalPropertySearch: (WOContext *) localContext; +// - (WOResponse *) davPrincipalPropertySearch: (WOContext *) localContext; - (WOResponse *) davPrincipalSearchPropertySet: (WOContext *) localContext; @end diff --git a/Main/SOGo+DAV.m b/Main/SOGo+DAV.m index bcc111ca9..1764c7728 100644 --- a/Main/SOGo+DAV.m +++ b/Main/SOGo+DAV.m @@ -21,9 +21,11 @@ */ #import +#import #import #import +#import #import #import @@ -38,6 +40,7 @@ #import #import #import +#import #import "SOGo+DAV.h" @@ -235,165 +238,165 @@ return r; } -- (void) _fillMatches: (NSMutableDictionary *) matches - fromElement: (NSObject *) searchElement -{ - NSObject *list; - NSObject *valueNode; - NSArray *elements; - NSString *property, *match; +// - (void) _fillMatches: (NSMutableDictionary *) matches +// fromElement: (NSObject *) searchElement +// { +// NSObject *list; +// NSObject *valueNode; +// NSArray *elements; +// NSString *property, *match; - list = [searchElement getElementsByTagName: @"prop"]; - if ([list length]) - { - elements = [self domNode: [list objectAtIndex: 0] - getChildNodesByType: DOM_ELEMENT_NODE]; - if ([elements count]) - { - valueNode = [elements objectAtIndex: 0]; - property = [NSString stringWithFormat: @"{%@}%@", - [valueNode namespaceURI], - [valueNode nodeName]]; - } - } - list = [searchElement getElementsByTagName: @"match"]; - if ([list length]) - { - valueNode = [[list objectAtIndex: 0] firstChild]; - match = [valueNode nodeValue]; - } +// list = [searchElement getElementsByTagName: @"prop"]; +// if ([list length]) +// { +// elements = [self domNode: [list objectAtIndex: 0] +// getChildNodesByType: DOM_ELEMENT_NODE]; +// if ([elements count]) +// { +// valueNode = [elements objectAtIndex: 0]; +// property = [NSString stringWithFormat: @"{%@}%@", +// [valueNode namespaceURI], +// [valueNode nodeName]]; +// } +// } +// list = [searchElement getElementsByTagName: @"match"]; +// if ([list length]) +// { +// valueNode = [[list objectAtIndex: 0] firstChild]; +// match = [valueNode nodeValue]; +// } - [matches setObject: match forKey: property]; -} +// [matches setObject: match forKey: property]; +// } -- (void) _fillProperties: (NSMutableArray *) properties - fromElement: (NSObject *) propElement -{ - NSEnumerator *elements; - NSObject *propNode; - NSString *property; +// - (void) _fillProperties: (NSMutableArray *) properties +// fromElement: (NSObject *) propElement +// { +// NSEnumerator *elements; +// NSObject *propNode; +// NSString *property; - elements = [[self domNode: propElement - getChildNodesByType: DOM_ELEMENT_NODE] - objectEnumerator]; - while ((propNode = [elements nextObject])) - { - property = [NSString stringWithFormat: @"{%@}%@", - [propNode namespaceURI], - [propNode nodeName]]; - [properties addObject: property]; - } -} +// elements = [[self domNode: propElement +// getChildNodesByType: DOM_ELEMENT_NODE] +// objectEnumerator]; +// while ((propNode = [elements nextObject])) +// { +// property = [NSString stringWithFormat: @"{%@}%@", +// [propNode namespaceURI], +// [propNode nodeName]]; +// [properties addObject: property]; +// } +// } -- (void) _fillPrincipalMatches: (NSMutableDictionary *) matches - andProperties: (NSMutableArray *) properties - fromElement: (NSObject *) documentElement -{ - NSEnumerator *children; - NSObject *currentElement; - NSString *tag; +// - (void) _fillPrincipalMatches: (NSMutableDictionary *) matches +// andProperties: (NSMutableArray *) properties +// fromElement: (NSObject *) documentElement +// { +// NSEnumerator *children; +// NSObject *currentElement; +// NSString *tag; - children = [[self domNode: documentElement - getChildNodesByType: DOM_ELEMENT_NODE] - objectEnumerator]; - while ((currentElement = [children nextObject])) - { - tag = [currentElement tagName]; - if ([tag isEqualToString: @"property-search"]) - [self _fillMatches: matches fromElement: currentElement]; - else if ([tag isEqualToString: @"prop"]) - [self _fillProperties: properties fromElement: currentElement]; - else - [self errorWithFormat: @"principal-property-search: unknown tag '%@'", - tag]; - } -} +// children = [[self domNode: documentElement +// getChildNodesByType: DOM_ELEMENT_NODE] +// objectEnumerator]; +// while ((currentElement = [children nextObject])) +// { +// tag = [currentElement tagName]; +// if ([tag isEqualToString: @"property-search"]) +// [self _fillMatches: matches fromElement: currentElement]; +// else if ([tag isEqualToString: @"prop"]) +// [self _fillProperties: properties fromElement: currentElement]; +// else +// [self errorWithFormat: @"principal-property-search: unknown tag '%@'", +// tag]; +// } +// } #warning this is a bit ugly, as usual -- (void) _fillCollections: (NSMutableArray *) collections - withCalendarHomeSetMatching: (NSString *) value - inContext: (WOContext *) localContext -{ - SOGoUserFolder *collection; - NSRange substringRange; +// - (void) _fillCollections: (NSMutableArray *) collections +// withCalendarHomeSetMatching: (NSString *) value +// inContext: (WOContext *) localContext +// { +// SOGoUserFolder *collection; +// NSRange substringRange; - substringRange = [value rangeOfString: @"/SOGo/dav/"]; - value = [value substringFromIndex: NSMaxRange (substringRange)]; - substringRange = [value rangeOfString: @"/Calendar"]; - value = [value substringToIndex: substringRange.location]; - collection = [[SOGoUser userWithLogin: value] - homeFolderInContext: localContext]; - if (collection) - [collections addObject: collection]; -} +// substringRange = [value rangeOfString: @"/SOGo/dav/"]; +// value = [value substringFromIndex: NSMaxRange (substringRange)]; +// substringRange = [value rangeOfString: @"/Calendar"]; +// value = [value substringToIndex: substringRange.location]; +// collection = [[SOGoUser userWithLogin: value] +// homeFolderInContext: localContext]; +// if (collection) +// [collections addObject: collection]; +// } -- (NSMutableArray *) _firstPrincipalCollectionsWhere: (NSString *) key - matches: (NSString *) value - inContext: (WOContext *) localContext -{ - NSMutableArray *collections; +// - (NSMutableArray *) _firstPrincipalCollectionsWhere: (NSString *) key +// matches: (NSString *) value +// inContext: (WOContext *) localContext +// { +// NSMutableArray *collections; - collections = [NSMutableArray array]; - if ([key - isEqualToString: @"{urn:ietf:params:xml:ns:caldav}calendar-home-set"]) - [self _fillCollections: collections withCalendarHomeSetMatching: value - inContext: localContext]; - else - [self errorWithFormat: @"principal-property-search: unhandled key '%@'", - key]; +// collections = [NSMutableArray array]; +// if ([key +// isEqualToString: @"{urn:ietf:params:xml:ns:caldav}calendar-home-set"]) +// [self _fillCollections: collections withCalendarHomeSetMatching: value +// inContext: localContext]; +// else +// [self errorWithFormat: @"principal-property-search: unhandled key '%@'", +// key]; - return collections; -} +// return collections; +// } -#warning unused stub -- (BOOL) collectionDavKey: (NSString *) key - matches: (NSString *) value -{ - return YES; -} +// #warning unused stub +// - (BOOL) collectionDavKey: (NSString *) key +// matches: (NSString *) value +// { +// return YES; +// } -- (void) _principalCollections: (NSMutableArray **) baseCollections - where: (NSString *) key - matches: (NSString *) value - inContext: (WOContext *) localContext -{ - SOGoUserFolder *currentCollection; - unsigned int count, max; +// - (void) _principalCollections: (NSMutableArray **) baseCollections +// where: (NSString *) key +// matches: (NSString *) value +// inContext: (WOContext *) localContext +// { +// SOGoUserFolder *currentCollection; +// unsigned int count, max; - if (!*baseCollections) - *baseCollections = [self _firstPrincipalCollectionsWhere: key - matches: value - inContext: localContext]; - else - { - max = [*baseCollections count]; - for (count = max; count > 0; count--) - { - currentCollection = [*baseCollections objectAtIndex: count - 1]; - if (![currentCollection collectionDavKey: key matches: value]) - [*baseCollections removeObjectAtIndex: count - 1]; - } - } -} +// if (!*baseCollections) +// *baseCollections = [self _firstPrincipalCollectionsWhere: key +// matches: value +// inContext: localContext]; +// else +// { +// max = [*baseCollections count]; +// for (count = max; count > 0; count--) +// { +// currentCollection = [*baseCollections objectAtIndex: count - 1]; +// if (![currentCollection collectionDavKey: key matches: value]) +// [*baseCollections removeObjectAtIndex: count - 1]; +// } +// } +// } -- (NSArray *) _principalCollectionsMatching: (NSDictionary *) matches - inContext: (WOContext *) localContext -{ - NSMutableArray *collections; - NSEnumerator *allKeys; - NSString *currentKey; +// - (NSArray *) _principalCollectionsMatching: (NSDictionary *) matches +// inContext: (WOContext *) localContext +// { +// NSMutableArray *collections; +// NSEnumerator *allKeys; +// NSString *currentKey; - collections = nil; +// collections = nil; - allKeys = [[matches allKeys] objectEnumerator]; - while ((currentKey = [allKeys nextObject])) - [self _principalCollections: &collections - where: currentKey - matches: [matches objectForKey: currentKey] - inContext: localContext]; +// allKeys = [[matches allKeys] objectEnumerator]; +// while ((currentKey = [allKeys nextObject])) +// [self _principalCollections: &collections +// where: currentKey +// matches: [matches objectForKey: currentKey] +// inContext: localContext]; - return collections; -} +// return collections; +// } /* @@ -417,97 +420,96 @@ */ -- (void) _appendProperties: (NSArray *) properties - ofCollection: (SOGoUserFolder *) collection - toResponses: (NSMutableArray *) responses -{ - unsigned int count, max; - SEL methodSel; - NSString *currentProperty; - id currentValue; - NSMutableArray *response, *props; - NSDictionary *keyTuple; +// - (void) _appendProperties: (NSArray *) properties +// ofCollection: (SOGoUserFolder *) collection +// toResponses: (NSMutableArray *) responses +// { +// unsigned int count, max; +// SEL methodSel; +// NSString *currentProperty; +// id currentValue; +// NSMutableArray *response, *props; +// NSDictionary *keyTuple; - response = [NSMutableArray array]; - [response addObject: davElementWithContent (@"href", XMLNS_WEBDAV, - [collection davURLAsString])]; - props = [NSMutableArray array]; - max = [properties count]; - for (count = 0; count < max; count++) - { - currentProperty = [properties objectAtIndex: count]; - methodSel = SOGoSelectorForPropertyGetter (currentProperty); - if (methodSel && [collection respondsToSelector: methodSel]) - { - currentValue = [collection performSelector: methodSel]; - #warning evil eVIL EVIl! - if ([currentValue isKindOfClass: [NSArray class]]) - { - currentValue = [currentValue objectAtIndex: 0]; - currentValue - = davElementWithContent ([currentValue objectAtIndex: 0], - [currentValue objectAtIndex: 1], - [currentValue objectAtIndex: 3]); - } - keyTuple = [currentProperty asWebDAVTuple]; - [props addObject: davElementWithContent ([keyTuple objectForKey: @"method"], - [keyTuple objectForKey: @"ns"], - currentValue)]; - } - } - [response addObject: davElementWithContent (@"propstat", XMLNS_WEBDAV, - davElementWithContent - (@"prop", XMLNS_WEBDAV, - props))]; - [responses addObject: davElementWithContent (@"response", XMLNS_WEBDAV, - response)]; -} +// response = [NSMutableArray array]; +// [response addObject: davElementWithContent (@"href", XMLNS_WEBDAV, +// [collection davURLAsString])]; +// props = [NSMutableArray array]; +// max = [properties count]; +// for (count = 0; count < max; count++) +// { +// currentProperty = [properties objectAtIndex: count]; +// methodSel = SOGoSelectorForPropertyGetter (currentProperty); +// if (methodSel && [collection respondsToSelector: methodSel]) +// { +// currentValue = [collection performSelector: methodSel]; +// #warning evil eVIL EVIl! +// if ([currentValue isKindOfClass: [NSArray class]]) +// { +// currentValue = [currentValue objectAtIndex: 0]; +// currentValue +// = davElementWithContent ([currentValue objectAtIndex: 0], +// [currentValue objectAtIndex: 1], +// [currentValue objectAtIndex: 3]); +// } +// keyTuple = [currentProperty asWebDAVTuple]; +// [props addObject: davElementWithContent ([keyTuple objectForKey: @"method"], +// [keyTuple objectForKey: @"ns"], +// currentValue)]; +// } +// } +// [response addObject: davElementWithContent (@"propstat", XMLNS_WEBDAV, +// davElementWithContent +// (@"prop", XMLNS_WEBDAV, +// props))]; +// [responses addObject: davElementWithContent (@"response", XMLNS_WEBDAV, +// response)]; +// } -- (void) _appendProperties: (NSArray *) properties - ofCollections: (NSArray *) collections - toResponse: (WOResponse *) response -{ - NSDictionary *mStatus; - NSMutableArray *responses; - unsigned int count, max; +// - (void) _appendProperties: (NSArray *) properties +// ofCollections: (NSArray *) collections +// toResponse: (WOResponse *) response +// { +// NSDictionary *mStatus; +// NSMutableArray *responses; +// unsigned int count, max; - max = [collections count]; - responses = [NSMutableArray arrayWithCapacity: max]; - for (count = 0; count < max; count++) - [self _appendProperties: properties - ofCollection: [collections objectAtIndex: count] - toResponses: responses]; - mStatus = davElementWithContent (@"multistatus", XMLNS_WEBDAV, responses); - [response appendContentString: [mStatus asWebDavStringWithNamespaces: nil]]; -} +// max = [collections count]; +// responses = [NSMutableArray arrayWithCapacity: max]; +// for (count = 0; count < max; count++) +// [self _appendProperties: properties +// ofCollection: [collections objectAtIndex: count] +// toResponses: responses]; +// mStatus = davElementWithContent (@"multistatus", XMLNS_WEBDAV, responses); +// [response appendContentString: [mStatus asWebDavStringWithNamespaces: nil]]; +// } /* rfc3744, should be moved into SOGoUserFolder */ -- (WOResponse *) davPrincipalPropertySearch: (WOContext *) localContext -{ - NSObject *document; - NSObject *documentElement; - NSArray *collections; - NSMutableDictionary *matches; - NSMutableArray *properties; - WOResponse *r; - document = [[localContext request] contentAsDOMDocument]; - documentElement = [document documentElement]; +// - (WOResponse *) davPrincipalPropertySearch: (WOContext *) localContext +// { +// NSObject *document; +// NSObject *documentElement; +// NSArray *collections; +// NSMutableDictionary *matches; +// NSMutableArray *properties; +// WOResponse *r; - matches = [NSMutableDictionary dictionary]; - properties = [NSMutableArray array]; - [self _fillPrincipalMatches: matches andProperties: properties - fromElement: documentElement]; - collections = [self _principalCollectionsMatching: matches - inContext: localContext]; - r = [localContext response]; - [r prepareDAVResponse]; - [self _appendProperties: properties ofCollections: collections - toResponse: r]; - - return r; -} +// document = [[localContext request] contentAsDOMDocument]; +// documentElement = [document documentElement]; +// matches = [NSMutableDictionary dictionary]; +// properties = [NSMutableArray array]; +// [self _fillPrincipalMatches: matches andProperties: properties +// fromElement: documentElement]; +// collections = [self _principalCollectionsMatching: matches +// inContext: localContext]; +// r = [localContext response]; +// [r prepareDAVResponse]; +// [self _appendProperties: properties ofCollections: collections +// toResponse: r]; +// return r; +// } @end diff --git a/SoObjects/Appointments/SOGoAppointmentFolder.m b/SoObjects/Appointments/SOGoAppointmentFolder.m index 48b058a85..29b71dc1d 100644 --- a/SoObjects/Appointments/SOGoAppointmentFolder.m +++ b/SoObjects/Appointments/SOGoAppointmentFolder.m @@ -69,7 +69,7 @@ #import #import -#import "iCalEntityObject+SOGo.h" +#import "iCalRepeatableEntityObject+SOGo.h" #import "iCalPerson+SOGo.h" #import "SOGoAppointmentObject.h" #import "SOGoAppointmentFolders.h" diff --git a/SoObjects/Appointments/SOGoAppointmentInboxFolder.m b/SoObjects/Appointments/SOGoAppointmentInboxFolder.m index 2904fe779..33a9cde73 100644 --- a/SoObjects/Appointments/SOGoAppointmentInboxFolder.m +++ b/SoObjects/Appointments/SOGoAppointmentInboxFolder.m @@ -21,6 +21,7 @@ */ #import +#import #import #import #import diff --git a/SoObjects/Appointments/SOGoAppointmentObject.m b/SoObjects/Appointments/SOGoAppointmentObject.m index 1e906ba68..a143f11ef 100644 --- a/SoObjects/Appointments/SOGoAppointmentObject.m +++ b/SoObjects/Appointments/SOGoAppointmentObject.m @@ -24,6 +24,7 @@ #import #import #import +#import #import #import diff --git a/SoObjects/Appointments/SOGoAptMailReceipt.m b/SoObjects/Appointments/SOGoAptMailReceipt.m index f85ffdc54..f4de27302 100644 --- a/SoObjects/Appointments/SOGoAptMailReceipt.m +++ b/SoObjects/Appointments/SOGoAptMailReceipt.m @@ -34,6 +34,7 @@ #import #import #import +#import #import "SOGoAptMailReceipt.h" diff --git a/SoObjects/Appointments/SOGoWebAppointmentFolder.m b/SoObjects/Appointments/SOGoWebAppointmentFolder.m index 5d0f59e73..e1cf35513 100644 --- a/SoObjects/Appointments/SOGoWebAppointmentFolder.m +++ b/SoObjects/Appointments/SOGoWebAppointmentFolder.m @@ -25,6 +25,7 @@ #import #import #import +#import #import "SOGoWebAppointmentFolder.h" diff --git a/SoObjects/Contacts/SOGoUserFolder+Contacts.m b/SoObjects/Contacts/SOGoUserFolder+Contacts.m index e9b58ab6c..817c91cb8 100644 --- a/SoObjects/Contacts/SOGoUserFolder+Contacts.m +++ b/SoObjects/Contacts/SOGoUserFolder+Contacts.m @@ -32,12 +32,14 @@ #import #import +#import "SOGoContactFolders.h" + #import "SOGoUserFolder+Contacts.h" @interface SOGoUserFolder (private) -- (SOGoAppointmentFolders *) privateContacts: (NSString *) key - inContext: (WOContext *) localContext; +- (SOGoContactFolders *) privateContacts: (NSString *) key + inContext: (WOContext *) localContext; @end @@ -47,7 +49,7 @@ - (NSArray *) davAddressbookHomeSet { NSArray *tag; - SOGoAppointmentFolders *parent; + SOGoContactFolders *parent; parent = [self privateContacts: @"Contacts" inContext: context]; tag = [NSArray arrayWithObjects: @"href", @"DAV:", @"D", diff --git a/SoObjects/Mailer/SOGoMailFolder.m b/SoObjects/Mailer/SOGoMailFolder.m index 553b2213d..1d60f8d43 100644 --- a/SoObjects/Mailer/SOGoMailFolder.m +++ b/SoObjects/Mailer/SOGoMailFolder.m @@ -19,6 +19,7 @@ 02111-1307, USA. */ +#import #import #import #import diff --git a/SoObjects/Mailer/SOGoMailForward.m b/SoObjects/Mailer/SOGoMailForward.m index 3eb5d8980..d1f7261d7 100644 --- a/SoObjects/Mailer/SOGoMailForward.m +++ b/SoObjects/Mailer/SOGoMailForward.m @@ -20,6 +20,8 @@ * Boston, MA 02111-1307, USA. */ +#import + #import #import @@ -89,7 +91,8 @@ NSString *rc; if (htmlComposition) - rc = [[[sourceMail mailHeaders] objectForKey: @"from"] stringByEscapingHTMLString]; + rc = [[[sourceMail mailHeaders] objectForKey: @"from"] + stringByEscapingHTMLString]; else rc = [[sourceMail mailHeaders] objectForKey: @"from"]; diff --git a/SoObjects/Mailer/SOGoMailObject.m b/SoObjects/Mailer/SOGoMailObject.m index f7389be25..53bbcb42c 100644 --- a/SoObjects/Mailer/SOGoMailObject.m +++ b/SoObjects/Mailer/SOGoMailObject.m @@ -30,6 +30,7 @@ #import #import +#import #import #import #import diff --git a/SoObjects/Mailer/SOGoSieveConverter.m b/SoObjects/Mailer/SOGoSieveConverter.m index 54e275575..5a40261e1 100644 --- a/SoObjects/Mailer/SOGoSieveConverter.m +++ b/SoObjects/Mailer/SOGoSieveConverter.m @@ -429,6 +429,8 @@ static NSDictionary *methodRequirements = nil; *flag, *mailbox; SOGoDomainDefaults *dd; + sieveAction = nil; + method = [action objectForKey: @"method"]; if (method) { @@ -484,10 +486,7 @@ static NSDictionary *methodRequirements = nil; } } else - { - scriptError = @"Action missing 'method' parameter"; - sieveAction = nil; - } + scriptError = @"Action missing 'method' parameter"; return sieveAction; } diff --git a/SoObjects/SOGo/SOGoCASSession.h b/SoObjects/SOGo/SOGoCASSession.h index ed16029c2..0b77cb6a9 100644 --- a/SoObjects/SOGo/SOGoCASSession.h +++ b/SoObjects/SOGo/SOGoCASSession.h @@ -46,7 +46,7 @@ andParameters: (NSDictionary *) parameters; + (SOGoCASSession *) CASSessionWithTicket: (NSString *) newTicket; -+ (SOGoCASSession *) CASSessionWithIdentifier: (NSString *) identifier; ++ (SOGoCASSession *) CASSessionWithIdentifier: (NSString *) newIdentifier; - (NSString *) identifier; diff --git a/SoObjects/SOGo/SOGoCASSession.m b/SoObjects/SOGo/SOGoCASSession.m index d12d4795f..acb94a041 100644 --- a/SoObjects/SOGo/SOGoCASSession.m +++ b/SoObjects/SOGo/SOGoCASSession.m @@ -83,14 +83,14 @@ return newSession; } -+ (SOGoCASSession *) CASSessionWithIdentifier: (NSString *) identifier ++ (SOGoCASSession *) CASSessionWithIdentifier: (NSString *) newIdentifier { SOGoCASSession *session; SOGoCache *cache; NSString *casTicket; cache = [SOGoCache sharedCache]; - casTicket = [cache CASTicketFromIdentifier: identifier]; + casTicket = [cache CASTicketFromIdentifier: newIdentifier]; session = [self CASSessionWithTicket: casTicket]; return session; diff --git a/SoObjects/SOGo/WOContext+SOGo.m b/SoObjects/SOGo/WOContext+SOGo.m index c1e4c9c6e..2d0fbbb15 100644 --- a/SoObjects/SOGo/WOContext+SOGo.m +++ b/SoObjects/SOGo/WOContext+SOGo.m @@ -27,8 +27,9 @@ #import #import -#import -#import +#import "SOGoDomainDefaults.h" +#import "SOGoUser.h" +#import "SOGoUserDefaults.h" #import "WOContext+SOGo.h" diff --git a/UI/Contacts/UIxContactFoldersView.m b/UI/Contacts/UIxContactFoldersView.m index ae058bee3..fb17c312a 100644 --- a/UI/Contacts/UIxContactFoldersView.m +++ b/UI/Contacts/UIxContactFoldersView.m @@ -41,6 +41,7 @@ #import #import #import +#import #import #import #import diff --git a/UI/MailPartViewers/UIxMailPartICalActions.m b/UI/MailPartViewers/UIxMailPartICalActions.m index 1324077c1..c3a28625a 100644 --- a/UI/MailPartViewers/UIxMailPartICalActions.m +++ b/UI/MailPartViewers/UIxMailPartICalActions.m @@ -22,6 +22,7 @@ #import #import +#import #import #import @@ -39,15 +40,16 @@ #import -#import -#import -#import -#import -#import -#import -#import -#import -#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import #import "UIxMailPartICalActions.h" diff --git a/UI/MailPartViewers/UIxMailPartICalViewer.m b/UI/MailPartViewers/UIxMailPartICalViewer.m index af17f0f5a..eb83ae485 100644 --- a/UI/MailPartViewers/UIxMailPartICalViewer.m +++ b/UI/MailPartViewers/UIxMailPartICalViewer.m @@ -25,6 +25,8 @@ Show plain/calendar mail parts. */ +#import + #import #import @@ -39,6 +41,7 @@ #import #import +#import #import #import #import diff --git a/UI/MailerUI/UIxMailEditor.m b/UI/MailerUI/UIxMailEditor.m index d35cf239a..4b914af7b 100644 --- a/UI/MailerUI/UIxMailEditor.m +++ b/UI/MailerUI/UIxMailEditor.m @@ -25,6 +25,7 @@ #import #import +#import #import #import #define COMPILING_NGOBJWEB 1 /* we want httpRequest for parsing multi-part @@ -41,6 +42,7 @@ #import #import #import +#import #import #import diff --git a/UI/MailerUI/UIxMailFolderActions.m b/UI/MailerUI/UIxMailFolderActions.m index f865acc51..f04d3283f 100644 --- a/UI/MailerUI/UIxMailFolderActions.m +++ b/UI/MailerUI/UIxMailFolderActions.m @@ -39,6 +39,7 @@ #import #import #import +#import #import diff --git a/UI/MailerUI/UIxMailMainFrame.m b/UI/MailerUI/UIxMailMainFrame.m index 1d2254178..1f6915209 100644 --- a/UI/MailerUI/UIxMailMainFrame.m +++ b/UI/MailerUI/UIxMailMainFrame.m @@ -45,9 +45,11 @@ #import #import #import +#import #import #import #import +#import #import #import "UIxMailMainFrame.h" diff --git a/UI/SOGoUI/SOGoACLAdvisory.m b/UI/SOGoUI/SOGoACLAdvisory.m index b4cd505df..c9f987142 100644 --- a/UI/SOGoUI/SOGoACLAdvisory.m +++ b/UI/SOGoUI/SOGoACLAdvisory.m @@ -20,6 +20,7 @@ * Boston, MA 02111-1307, USA. */ +#import #import #import diff --git a/UI/SOGoUI/SOGoFolderAdvisory.m b/UI/SOGoUI/SOGoFolderAdvisory.m index 00fc813e2..d357b9689 100644 --- a/UI/SOGoUI/SOGoFolderAdvisory.m +++ b/UI/SOGoUI/SOGoFolderAdvisory.m @@ -20,6 +20,7 @@ * Boston, MA 02111-1307, USA. */ +#import #import #import diff --git a/UI/Scheduler/UIxCalMulticolumnDayView.m b/UI/Scheduler/UIxCalMulticolumnDayView.m index f84a84f97..6c1683d1a 100644 --- a/UI/Scheduler/UIxCalMulticolumnDayView.m +++ b/UI/Scheduler/UIxCalMulticolumnDayView.m @@ -28,8 +28,9 @@ #import -#import -#import +#import +#import +#import #import "UIxCalMulticolumnDayView.h"