2008-09-05 Wolfgang Sourdeau * SoObjects/Mailer/SOGoMailReply.m: made class a child of SOGoMailForward, since we need to access more or less the same fields from the original message, especially in outlook reply mode. ([SOGoMailReply -setOutlookMode:newOutlookMode]): new accessor defining in which mode we are. * SoObjects/Mailer/SOGoMailObject+Draft.m ([SOGoMailObject -contentForReply]): if the reply style is outlook, then we use the content generated for inline forwarding. ([SOGoMailObject -useOutlookStyleReplies]): new method that indicates whether the ud key "SOGoMailUseOutlookStyleReplies". * SoObjects/Mailer/SOGoMailFolder.m ([SOGoMailFolder -expungeLastMarkedFolder]): do not perform the expunge if the marked folder is the current folder. 2008-09-04 Wolfgang Sourdeau * UI/MailPartViewers/UIxMailPartAlternativeViewer.m ([UIxMailPartAlternativeViewer -selectPartIndexFromTypes:]): give precedence on multipart/related parts. * UI/MailPartViewers/UIxMailRenderingContext.m ([UIxMailRenderingContext -viewerForBodyInfo:_info]): add the mixed viewer as the viewer for "multipart/digest" content. * UI/MailPartViewers/UIxMailPartTextViewer.m (convertChars): fixed a buffer overflow. Incremented the buffer size to 8192. 2008-09-02 Wolfgang Sourdeau * SoObjects/Mailer/SOGoMailManager.m ([NGImap -copyMailURL:toFolderURL:password:]): do not compare the urls based on the instance that NGImap4ConnectionManager returns, because disabling the pooling will generate a bad result, even though the host:port pairs are the same. 2008-09-01 Wolfgang Sourdeau * UI/MailerUI/UIxMailView.m ([UIxMailView -appendToResponse:_responseinContext:_ctx]): no longer invoke [NGImap4Client logout], since this is now handled by the NGImap4Connection manager (or not). * UI/MailerUI/UIxMailActions.m ([UIxMailActions -markMessageUnreadAction]): no longer make use of [SOGoMailFolder unselect]. ([UIxMailActions -markMessageReadAction]): idem. * SoObjects/Mailer/SOGoMailFolder.m ([-unselect]): removed method since we no longer need it. * SoObjects/Mailer/SOGoMailBaseObject.m ([SOGoMailBaseObject -dealloc]): release "imap4". If the IMAP4 connection pooling is disabled, the object will otherwise never be released. * SoObjects/Mailer/SOGoMailAccount.m ([SOGoMailAccount +initialize]): use the user default "SOGoFallbackIMAP4Server" to override the value of "serverName" from the actual user settings. Fallback to "localhost" if value is unset. * SoObjects/Mailer/SOGoMailAccount.m ([SOGoMailAccount -imap4URLString]): use the value of SOGoFallbackIMAP4Server, as mentionne above. * UI/MailerUI/UIxMailEditor.m ([UIxMailEditor -from]): retain the initialized value of from, otherwise we create a future zombie. * SoObjects/SOGo/SOGoObject.m ([SOGoObject -initWithName:_nameinContainer:_container]): we no longer retain the context, to avoid making a circular reference. * SoObjects/SOGo/SOGoUser.m ([SOGoUser -initWithLogin:newLoginroles:newRoles]): moved the core from init here. ([-init]): removed method. 2008-08-29 Wolfgang Sourdeau * UI/MailerUI/UIxMailView.m ([UIxMailView -appendToResponse:_responseinContext:_ctx]): logout from the imap connectin once the response has been appended. 2008-08-29 Ludovic Marcotte * SoObjects/Mailer/SOGoDraftObject.m ([SOGoDraftObject -addRecipients:recipientstoArray:array]): same as below. * SoObjects/Mailer/SOGoDraftObject.m: ([SOGoDraftObject -addEMailsOfAddresses:_addrstoArray:_ma]): test if the returned email is nil before adding it to the array. 2008-08-28 Wolfgang Sourdeau * UI/MailerUI/UIxMailActions.m ([UIxMailActions -markMessageUnreadAction]): unselect the mailbox after the operation. ([UIxMailActions -markMessageReadAction]): same as above. * UI/MailPartViewers/UIxMailPartICalViewer.m ([UIxMailPartICalViewer -hasCalendarAccess]): new method that returns whether the current user has access to the calendar module, so that buttons can be hidden. 2008-08-27 Wolfgang Sourdeau * SoObjects/Mailer/SOGoMailBodyPart.m ([SOGoMailBodyPart -lookupImap4BodyPartKey:inContext:]): if the "parts" object is not found, we try "body"->"parts". 2008-08-26 Francis Lachapelle * UI/MailerUI/UIxMailMainFrame.m ([composeAction]): build the contact's fullname from its card's attribute "n" if "fn" is not defined. * UI/Contacts/UIxContactView.m ([fullName]): idem. * UI/Contacts/UIxContactEditor.m ([addressBooksList]): new method to retrieve the address books to which the user can write. ([saveAction]): if the user change the destination address book, the contact is now correctly moved to it. * UI/Scheduler/UIxAppointmentEditor.m ([viewAction]): new method that returns a JSON representation of an event. * UI/Scheduler/UIxAppointmentEditor.m ([newAction]): removed the rights validation from the product.plist to this method so the user redirect to the proper folder if rights are insufficient. * UI/Scheduler/UIxTaskEditor.m ([newAction]): idem. * UI/Contacts/UIxContactEditor.m ([newAction]): idem. * UI/Scheduler/UIxCalendarSelector.m ([calendars]): removed the roles as they are no longer verified through JavaScript. * SoObjects/SOGo/SOGoFolder.m ([_compareByNameInContainer:otherFolder]): fixed an order problem with the personal folders. * SoObjects/SOGo/NSString+Utilities.m ([_rangeOfURLInRange:refRange]): added some ending characters. ([_handleURLs:selfCopy textToMatch:match prefix:prefix inRanges:ranges]): fixed the parsing so URLs are properly identified. * UI/MailerUI/UIxMailAccountActions.m ([-composeAction]): added support to define the subject through the URL. 2008-08-26 Wolfgang Sourdeau * UI/MainUI/SOGoRootPage.m ([SOGoRootPage -setUserName:_value]) ([SOGoRootPage -userName]): removed accessors, since the corresponding ivar is not used and was removed too. * UI/SOGoUI/UIxComponent.m ([-shortUserNameForDisplay]): no longer make use of the "wrongusernamepassword" hack. * UI/MainUI/SOGoRootPage.m ([SOGoRootPage -connectAction]): return HTTP code 403 if the username and the password passed in the request are not valid. * SoObjects/SOGo/SOGoUserFolder.m ([SOGoUserFolder -lookupName:_keyinContext:_ctxacquire:_flag]): whenever a user has no access to the specified module, a response with code 403 and the content of "UIxModuleAccessDenied" will be generated. * UI/SOGoUI/UIxModuleAccessDenied.[hm]: new template module displaying an error message. 2008-08-22 Wolfgang Sourdeau * UI/MailPartViewers/UIxMailRenderingContext.m ([UIxMailRenderingContext -viewerForBodyInfo:_info]): display parts with a bodyId as an attachment. * UI/Contacts/UIxContactView.m ([UIxContactView -workUrl]) ([UIxContactView -homeUrl]): the test for the presence of a protocol was inverted, causing the output of wrong urls anyway... * SoObjects/Contacts/SOGoContactLDIFEntry.m ([SOGoContactLDIFEntry -vCard]): replaced query for field "notes" with "description". Added support for Mozilla custom fields 1 to 4. * SoObjects/Mailer/SOGoHTMLMailBodyPart.[hm]: new class module implementing the HTML content body parts. * UI/MailPartViewers/UIxMailPartHTMLViewer.m ([UIxMailPartExternalHTMLViewer -init]): new class derived from UIxMailPartHTMLViewer but which as as a full page wrapper. 2008-08-22 Ludovic Marcotte * Modified SoObjects/Mailer/NSData+Mail.m -decodedSubject so we correctly implement decoding instead of relying on the broken SOPE implementation. 2008-08-21 Ludovic Marcotte * SoObjects/SOGo/LDAPUserManager.m Renamed the SOGOLDAPUserManagerCleanupInterval defaults to SOGoLDAPUserManagerCleanupInterval. We correctly add our timer to the runloop and fixed a typo in the selector name. 2008-08-21 Wolfgang Sourdeau * SoObjects/SOGo/NSString+Utilities.m ([NSString -caseInsensitiveMatches:match]): new method that helps matching strings against patterns. 2008-08-21 Ludovic Marcotte * Updated the icons to use those from Thunderbird 2 and from Lightning 0.9. Also added those new files : UI/WebServerResources/tbtv_account_17x17.png UI/WebServerResources/tbtv_drafts_17x17.png UI/WebServerResources/tbtv_inbox_17x17.png UI/WebServerResources/tbtv_leaf_corner_17x17.png UI/WebServerResources/tbtv_sent_17x17.png UI/WebServerResources/tbtv_trash_17x17.png Dropped : UI/WebServerResources/tbtv_account_17x17.gif UI/WebServerResources/tbtv_drafts_17x17.gif UI/WebServerResources/tbtv_inbox_17x17.gif UI/WebServerResources/tbtv_leaf_corner_17x17.gif UI/WebServerResources/tbtv_sent_17x17.gif UI/WebServerResources/tbtv_trash_17x17.gif 2008-08-20 Wolfgang Sourdeau * UI/PreferencesUI/UIxAdditionalPreferences.[hm]: new template class that enables the user to append links or other infos needed to change preferences not handled by SOGo. The tab will display when setting the ud key "SOGoUIxAdditionalPreferences" to YES. 2008-08-19 Wolfgang Sourdeau * UI/MainUI/SOGoBrowsersPanel.[hm]: new template class that helps displaying a choice of browsers compatible with SOGo. The code was extracted from UIxPageFrame. * UI/Scheduler/UIxAppointmentEditor.m ([UIxAppointmentEditor -viewAction]): apply the user's timezone to the startdate before formatting it. 2008-08-18 Ludovic Marcotte * SoObjects/Mailer/SOGoDraftObject.m ([SOGoDraftObject -mimeHeaderMapWithHeaders:_headers]): properly quote atoms in mail addresses. * UI/MailPartViewers/UIxMailPartMessageViewer.m ([UIxMailPartMessageViewer -formattedComponents:components]): don't report nil components. 2008-08-13 Wolfgang Sourdeau * SoObjects/Appointments/iCalEventChanges+SOGo.m ([iCalEventChanges -sequenceShouldBeIncreased]): added summary and comment. * SoObjects/SOGo/LDAPUserManager.m ([LDAPUserManager -contactInfosForUserWithUIDorEmail:uid]): only use the authentication sources. 2008-08-11 Wolfgang Sourdeau * SoObjects/Appointments/SOGoComponentOccurence.m ([SOGoComponentOccurence +occurenceWithComponent:newComponentwithMasterComponent:newMasterinContainer:newContainer]): seconds is now a NSTimeInterval instead of an int, to avoid casting problems on the PowerPC architecture. 2008-08-10 Wolfgang Sourdeau * UI/MailPartViewers/UIxMailPartICalViewer.m ([UIxMailPartICalViewer -currentUserAttendee]): select the most recent event. * SoObjects/SOGo/SOGoContentObject.m ([SOGoContentObject -copyToFolder:newFolder]) ([SOGoContentObject -moveToFolder:newFolder]): new operation methods. 2008-08-10 Ludovic Marcotte * UI/Contacts/UIxContactView.m ([UIxContactView -homeUrl]) ([UIxContactView -workUrl]): prefixes the urls with "http://" if not already prefixed. 2008-08-09 Wolfgang Sourdeau * SoObjects/Appointments/SOGoComponentOccurence.m ([SOGoComponentOccurence -changeParticipationStatus:newPartStat]): implemented proxy method. * SoObjects/Appointments/SOGoCalendarComponent.m ([SOGoCalendarComponent -sendEMailUsingTemplateNamed:_pageNameforOldObject:_oldObjectandNewObject:_newObjecttoAttendees:_attendees]): the sender email is always the one of the owner, even though the action might be done by a delegate. If the case, we setup the "SENT-BY" parameter of the organizer field. ([SOGoCalendarComponent -sendResponseToOrganizer]): If needed, setup the "SENT-BY" parameter of the attendee field. * UI/Scheduler/UIxComponentEditor.m ([UIxComponentEditor -toolbar]): changed algoritm so that a delegate would really see what the owner would, depending on his/her rights. * SoObjects/Mailer/SOGoMailBodyPart.m ([SOGoMailBodyPart -lookupImap4BodyPartKey:inContext:]): find a class based on the mime type of the subpart described by the partInfo. * SoObjects/Appointments/iCalEntityObject+SOGo.m ([iCalEntityObject -quickRecordDateAsNumber:_datewithOffset:offsetforAllDay:allDay]): changed the type of "seconds" to NSTimeInterval to avoid casting errors on PPC. * UI/MailPartViewers/UIxMailPartICalActions.m ([UIxMailPartICalActions -updateUserStatusAction]) ([UIxMailPartICalActions -acceptAction]) ([UIxMailPartICalActions -declineAction]): if the event doesn't exist in the user table, declare it as new. 2008-08-07 Wolfgang Sourdeau * SoObjects/SOGo/LDAPUserManager.m ([LDAPUserManager -fetchContactsMatching:filter]): fetch entries matching filter only in addressbooks. ([LDAPUserManager -fetchUsersMatching:filter]): same as above for authentication sources only. * SoObjects/Appointments/SOGoUserFolder+Appointments.m ([SOGoUserFolder -davCalendarUserAddressSet]): the addresses returned should be those of the owner and not of the current user. * SoObjects/Appointments/SOGoAppointmentObject.m ([SOGoAppointmentObject +webdavAclManager]): declare DAV:write as equivalent of ..._ModifyComponent (instead of DAV:write-content). 2008-08-05 Wolfgang Sourdeau * UI/Contacts/UIxContactEditor.m ([UIxContactEditor -isNew]): invoke "isNew" to the client object only if it is an instance of SOGoContentObject... 2008-08-04 Wolfgang Sourdeau * SoObjects/Appointments/SOGoCalendarComponent.m ([SOGoCalendarComponent -calendar:create:secure]): we now return a deep copy of the current calendar element, so that further modifications do not impact the original copy. * SoObjects/SOGo/SOGoUser.m ([SOGoUser +initialize]): same as below. * Main/SOGo.m ([SOGo -run]): rename AgenorProfileURL to SOGoProfileURL automagically. 2008-07-29 Wolfgang Sourdeau * UI/Scheduler/UIxCalListingActions.m ([UIxCalListingActions -eventsBlocksAction]): return event blocks with the serial number of the event they refer to in the events list (first array) rather than their cname, so that specific occurences can be differenciated. * SoObjects/SOGo/SOGoUserFolder.m ([SOGoUserFolder -davUserQuery:queryContext]): make searches only in user repositories and not in addressbooks. 2008-07-28 Wolfgang Sourdeau * UI/Scheduler/UIxCalMonthView.m ([UIxCalMonthView -weeksToDisplay]): add one day to the computed delta, because there is always at least one week displayed. * SoObjects/SOGo/SOGoUserFolder.m ([SOGoUserFolder -foldersOfType:typematchingUID:uid]): make searches only in user repositories and not in addressbooks. * SoObjects/SOGo/LDAPUserManager.m ([LDAPUserManager -fetchUsersMatching:filter]): new method allowing to make searches only in user repositories. 2008-07-25 Wolfgang Sourdeau * UI/Scheduler/UIxCalMainView.m ([UIxCalMainView -dayStartHour]): new getter for computing the default scroll point in the day and week views. * UI/Scheduler/UIxCalDayTable.m ([UIxCalDayTable -clickableHourCellClass]): the "dayEndHour" is the hour where the outOfDay class starts. * UI/PreferencesUI/UIxPreferences.m ([UIxPreferences -hasChanged]) ([UIxPreferences -setHasChanged:newHasChanged]): new accessors method for a new hidden input field that is set to 1 if the values have changed and require a refresh of the main window. * SoObjects/SOGo/AgenorUserDefaults.[hm]: renamed module class and class moduel to SOGoUserDefaults. * Main/SOGo.m ([SOGo -run]): the table referred to as "AgenorProfileURL" is now referred to as "SOGoProfileURL". 2008-07-24 Wolfgang Sourdeau * SoObjects/SOGo/SOGoWebAuthenticator.m ([SOGoWebAuthenticator -checkLogin:_loginpassword:_pwd]), SoObjects/SOGo/SOGoDAVAuthenticator.m ([SOGoDAVAuthenticator -checkLogin:_loginpassword:_pwd]): disable "bypass" authentification method, since it doesn't work anyway. * SoObjects/SOGo/SOGoWebAuthenticator.m ([SOGoWebAuthenticator -init]), SoObjects/SOGo/SOGoDAVAuthenticator.m ([SOGoDAVAuthenticator -init]): use "SOGoAuthenticationMethod" first, since "SOGoAuthentificationMethod" was a typo. If none are specified, fallback on "LDAP". 2008-07-23 Wolfgang Sourdeau * SoObjects/Appointments/SOGoCalendarComponent.m ([SOGoCalendarComponent -secureContentAsString]): use a mutable copy of the calendar in order to be able to modify it, otherwise SOGo crashes. ([-isFolderish]): removed method, so that the components won't be listed as DAV collections. 2008-07-21 Wolfgang Sourdeau * SoObjects/SOGo/SOGoContentObject.m ([SOGoContentObject -PUTAction:_ctx]): when the object is new, return 201. Otherwise, return 204 as success code. 2008-07-18 Wolfgang Sourdeau * UI/Scheduler/UIxCalWeekView.m ([UIxCalWeekView -startDate]): same as below. * UI/Scheduler/UIxCalMonthView.m ([UIxCalMonthView -weeksToDisplay]): use the user's first day of week to chose the day to start the series. ([UIxCalMonthView -dayCellClasses]): take the user's first day of week into account. ([UIxCalMonthView -endDate]): same as above. * UI/Scheduler/UIxCalMainView.m ([UIxCalMainView -firstDayOfWeek]): new template accessor. * UI/Scheduler/UIxCalDayTable.m ([UIxCalDayTable -currentHourLineClass]): new template accessor. ([UIxCalDayTable -clickableHourCellClass]): add the class 'outOfDay' when the current hour is out of the user's day start and end hour ranges. * UI/Scheduler/UIxCalDateSelector.m ([UIxCalDateSelector -firstDayOfWeek]): new template accessor. * UI/Scheduler/UIxAttendeesEditor.m ([UIxAttendeesEditor -dayStartHour]) ([UIxAttendeesEditor -dayEndHour]): new template accessors. * UI/Scheduler/UIxTaskEditor.m ([UIxTaskEditor -newStartDate]), UI/Scheduler/UIxAppointmentEditor.m ([UIxAppointmentEditor -newStartDate]): take the user-configured day start hour into account. * UI/PreferencesUI/UIxPreferences.m ([UIxPreferences -firstWeekList]): no longer list the option that enables the hiding of week numbers. * SoObjects/SOGo/SOGoUser.m ([SOGoUser -firstDayOfWeek]) ([SOGoUser -firstDayOfWeekForDate:date]) ([SOGoUser -dayOfWeekForDate:date], [SOGoUser -dayStartHour]) ([SOGoUser -dayEndHour]) ([SOGoUser -firstWeekOfYearForDate:date]) ([SOGoUser -weekNumberForDate:date]): new methods that help take the calendar-related user preferences into account. 2008-07-17 Wolfgang Sourdeau * UI/Scheduler/UIxCalMonthView.m ([UIxCalMonthView -weeksToDisplay]): we now display rows of weeks rather than columns of week days. * UI/Scheduler/UIxCalListingActions.m ([UIxCalListingActions -eventsBlocksAction]): event blocks now that the "c_recurrence_id" virtual field into account. * UI/Common/UIxObjectActions.m ([UIxObjectActions -deleteAction]): new action method, moved from UIxContactView so that it is generalized to all SOGoObjects. * SoObjects/Appointments/SOGoCalendarComponent.m ([SOGoCalendarComponent -init]): we now save the calendar to avoid multiple parsing and instantiation of children components. ([SOGoCalendarComponent -toOneRelationshipKeys]): declare components as children. ([SOGoCalendarComponent -lookupName:lookupNameinContext:localContextacquire:acquire]): handle the search for components and their occurences. ([SOGoCalendarComponent -saveComponent:newObject]): added code to update recurrence ids whenever the user saves a new version of the master component. * SoObjects/Appointments/SOGoAppointmentObject.m ([SOGoAppointmentObject -occurence:occ]) ([SOGoAppointmentObject -newOccurenceWithID:recID]) ([SOGoAppointmentObject -prepareDeleteOccurence:occurence]): new methods to handle occurences. * SoObjects/Appointments/SOGoAppointmentFolder.m ([SOGoAppointmentFolder -fixupCycleRecord:_recordcycleRange:_r]): declare a new "c_recurrence_id" field, that will be overwritten with further exception occurences. * UI/Scheduler/UIxOccurenceDialog.[hm]: new dialog asking whether to edit/delete all occurences of a recurrent event or only the one selected. * SoObjects/Appointments/SOGoComponentOccurence.[hm]: super class of new classes belows. * SoObjects/Appointments/SOGoAppointmentOccurence.[hm]: new class module that handle occurences within events. * SoObjects/Appointments/SOGoTaskOccurence.[hm]: new class module that handle occurences within todos. 2008-07-16 Wolfgang Sourdeau * UI/Scheduler/UIxCalListingActions.m ([UIxCalListingActions -eventsBlocksAction]): take user participation status into account again. * SoObjects/Appointments/iCalEntityObject+SOGo.m ([iCalEntityObject -quickRecordDateAsNumber:_datewithOffset:offsetforAllDay:allDay]): enhanced method to do the special computations for all day events. 2008-07-16 Francis Lachapelle * UI/Contacts/UIxContactEditor.m ([BOOL isNew]) ([void setAddressBookItem:_item]) ([id addressBookItem]) ([NSArray addressBooksList]) ([SOGoContactFolder componentAddressBook]) ([NSString addressBookDisplayName]): new methods to allow the selection of the destination address book when creating a new contact. 2008-07-15 Wolfgang Sourdeau * UI/Scheduler/NSDictionary+Scheduler.m: new category module that implement helper methods for the Scheduler module. ([NSDictionary -compareEventByStart:otherEvent]): new method that compares event block dictionaries based on their value for "start". * UI/Scheduler/UIxCalListingActions.m ([UIxCalListingActions -eventsBlocksAction]): new web method that returns the list of events as well as the precomputed blocks of events, whether "all day" or not. * SoObjects/Appointments/SOGoAppointmentFolder.m ([SOGoAppointmentFolder -fetchCoreInfosFrom:_startDateto:_endDatetitle:titlecomponent:_componentadditionalFilters:filters]): requests "c_iscycle". 2008-07-15 Francis Lachapelle * UI/Contacts/UIxContactFolderActions.m: new class for actions on contacts of a specific address book. * UI/Contacts/UIxContactFolderActions.m ([NSException _moveContacts:toFolder:andKeepCopy:]): private method to move and optionnaly copy one or many contacts to another address book. * UI/Contacts/UIxContactFolderActions.m ([WOActionResults copyAction]): copy one or many contacts to another address book. * UI/Contacts/UIxContactFolderActions.m ([WOActionResults moveAction]): move one or many contacts to another address book. 2008-07-14 Wolfgang Sourdeau * SoObjects/SOGo/SOGoContentObject.m ([SOGoContentObject -setIsNew:newIsNew]): new setter that declares the record as new, since it is no longer so by default. * SoObjects/Appointments/SOGoAppointmentFolder.m ([SOGoAppointmentFolder -davCalendarOrder]) ([SOGoAppointmentFolder -setDavCalendarOrder:newColor]): new accessors to handle Apple's "calendar-order" property. * SoObjects/Appointments/iCalRepeatableEntityObject+SOGo.m ([iCalRepeatableEntityObject -cycleInfo]): exception dates are now returned as an array of strings. * SoObjects/Appointments/SOGoAppointmentFolder.m ([SOGoAppointmentFolder -fixupCyclicRecords:_recordsfetchRange:_r]): fix an infinite loop occuring when the exception date was not the first date in the list. 2008-07-11 Wolfgang Sourdeau * SoObjects/Appointments/SOGoAppointmentFolder.m ([SOGoAppointmentFolder -fetchFields:_fieldsfrom:_startDateto:_endDatetitle:titlecomponent:_componentadditionalFilters:filters]): take exceptional modifications into account. * SoObjects/Appointments/iCalToDo+SOGo.m: new class module with category methods for iCalToDo. ([iCalToDo -quickRecord]): same as for method below. * SoObjects/Appointments/iCalEvent+SOGo.m ([iCalEvent -quickRecord]): new method taken from OCSiCalFieldExtractor. 2008-07-10 Wolfgang Sourdeau * SoObjects/SOGo/NSString+DAV.m ([NSString -asWebDAVTuple]): new method that parses a webdav tag in the form "{ns:}tag" and returns a dictionary. * SoObjects/Appointments/SOGoUserFolder+Appointments.m ([SOGoUserFolder -davPrincipalPropertySearch:queryContext]): new method to answer to "principal-property-search" report. * SoObjects/Appointments/SOGoAppointmentFolders.m ([SOGoAppointmentFolders -davComplianceClassesInContext:]): new method that declares "calendar-access" and "calendar-schedule". * SoObjects/Appointments/SOGoCalendarComponent.m ([SOGoCalendarComponent -sendIMIPReplyForEvent:eventto:recipient]): new method, derived from sendResponseToOrganizer but more generic. ([SOGoCalendarComponent -sendResponseToOrganizer]): make use of the new method mentionne above. 2008-07-09 Wolfgang Sourdeau * SoObjects/Appointments/SOGoAppointmentFolders.m ([SOGoAppointmentFolders -davCreateCalendarCollection:newNameinContext:createContext]): new method that execute a "MKCALENDAR" request. * SoObjects/SOGo/SOGoObject.m (SOGoSelectorForPropertyGetter): new function that returns the selector for the getter method for the specified property. (SOGoSelectorForPropertySetter): same as above for the setter method. * SoObjects/SOGo/WORequest+SOGo.m ([WORequest -davPatchedPropertiesWithTopTag:topTag]): new category method to help with parsing properties modified or removed from PROPPATCH methods and alike. * SoObjects/SOGo/SOGoContentObject.m ([SOGoContentObject -PUTAction:_ctx]): increment the version number only if the record is not new. * SoObjects/Appointments/SOGoAppointmentFolder.m ([SOGoAppointmentFolder -davCalendarFreeBusySet]): new method that returns the HREF to the calendars involved in the user's freebusy. ([SOGoAppointmentFolder -setDavCalendarFreeBusySet:newFreeBusySet]): new method that PRETENDS to modify the list of calendars mentionned above. ([SOGoAppointmentFolder -caldavEventRequest:eventwithContent:iCalStringfrom:originatorto:recipients]): add support for the "CANCEL" method. * SoObjects/Appointments/SOGoAppointmentObject.m ([SOGoAppointmentObject -postCalDAVEventCancelTo:recipients]): new method that implements support for the CalDAV "CANCEL" method for POSTs. * SoObjects/SOGo/SOGoContentObject.m ([SOGoContentObject -PUTAction:_ctx]): the version passed to saveContentString:baseVersion: is the current value of "version". If the operation is succesful, the version is incremented from here since no refresh is done from GCS. The returned etag has thus now the correct value. 2008-07-09 Francis Lachapelle * UI/MailerUI/UIxMailMainFrame.m ([WOActionResults composeAction]): added support to specify an address book and one more many contact IDs. 2008-07-08 Wolfgang Sourdeau * SoObjects/Appointments/SOGoAppointmentFolder.m ([SOGoAppointmentFolder -caldavEventRequest:eventwithContent:iCalStringfrom:originatorto:recipients]): simplified method since REPLY and REQUEST posts are very similar. * SoObjects/Appointments/SOGoAppointmentObject.m ([SOGoAppointmentObject -postCalDAVEventReplyTo:recipients]): new method that handle CalDAV REPLY posts by updating the event in the table of the SOGo users and send the reply by email as well. * SoObjects/Appointments/SOGoCalendarComponent.m ([SOGoCalendarComponent -sendEMailUsingTemplateNamed:_pageNameforOldObject:_oldObjectandNewObject:_newObjecttoAttendees:_attendees]): take the current user as originator rather than the object's owner. 2008-07-07 Francis Lachapelle * UI/Contacts/UIxContactFoldersView.m ([WOActionResults allContactSearchAction]): new method to search contacts among all address books. 2008-07-04 Wolfgang Sourdeau * SoObjects/SOGo/SOGoObject.m ([SOGoObject -POSTAction:localContext]): take the content type as well as the request and pass them as parameter to the new method below. ([SOGoObject -davPOSTRequest:requestwithContentType:cTypeinContext:localContext]): new method designed to handle POST requests on DAV objects. 2008-06-30 Wolfgang Sourdeau * SoObjects/Appointments/SOGoAppointmentFolder.m ([SOGoAppointmentFolder -caldavEventRequest:eventfrom:originatorto:recipients]): handle caldav replies. ([SOGoAppointmentFolder -lookupComponentByUID:uid]): new method that returns an event search by uid. * SoObjects/Appointments/SOGoUserFolder+Appointments.m ([SOGoUserFolder -davCalendarHomeSet]) ([SOGoUserFolder -davCalendarScheduleInboxURL]) ([SOGoUserFolder -davCalendarScheduleOutboxURL]) ([SOGoUserFolder -davDropboxHomeURL]) ([SOGoUserFolder -davNotificationsURL]): new methods for supporting the caldav-schedule draft extension to CalDAV. * SoObjects/Appointments/SOGoAppointmentFolder.m ([SOGoAppointmentFolder -davComplianceClassesInContext:]): append "calendar-schedule" to the list. ([SOGoAppointmentFolder -POSTAction:localContext]): new method to handle POST CalDAV requests. ([SOGoAppointmentFolder -davCollectionTag]): new method. * SoObjects/Contacts/SOGoContactLDAPFolder.m ([SOGoContactLDAPFolder -lookupName:objectNameinContext:lookupContextacquire:acquire]): use lookupContactentryWithUIDorEmail to make sure we use the ID field specified in the user defaults to match the username, and that the users can be found using their email. 2008-06-27 Wolfgang Sourdeau * SoObjects/Appointments/SOGoFreeBusyObject.m ([SOGoFreeBusyObject -contentAsString]): add the ending interval to "today" instead of to the start date. ([SOGoFreeBusyObject -contentAsStringWithMethod:methodfrom:_startDateto:_endDate]): new method that accepts a method parameter to specify in the returned iCalendar object. 2008-06-23 Wolfgang Sourdeau * SoObjects/SOGo/SOGoObject.m ([SOGoObject -labelForKey:key]): enhanced method to request the user language, his/her browser languages and the system language as fallback. * UI/Contacts/UIxContactsListViewContainer.m ([-currentContactFolderName]): no longer interprets the name of the personal folder, since the default name is now localized at creation time. 2008-06-20 Wolfgang Sourdeau * UI/Scheduler/UIxCalendarProperties.m ([UIxCalendarProperties -calendarSyncTag]) ([UIxCalendarProperties -setCalendarSyncTag:newTag]): new accessors to retrieve and set the calendar tags from the template. * SoObjects/Appointments/SOGoAppointmentFolder.m ([SOGoAppointmentFolder -syncTag]) ([SOGoAppointmentFolder -setSyncTag:newSyncTag]): new accessors that retrieves and set the calendar tags. * UI/Contacts/UIxContactEditor.m ([UIxContactEditor -canCreateOrModify]): new overriden method that checks whether the current clientObject is an instance of SOGoContactLDIFEntry before returning the super method. This is to avoid the case where the "save" button would appear because the user is listed as a super user, which owns everything. 2008-06-19 Wolfgang Sourdeau * UI/MainUI/SOGoUserHomePage.m ([SOGoUserHomePage -readFreeBusyAction]): accelerated the process of rendering free busy information by using ptr** instead of NSArray. * SoObjects/Appointments/SOGoFreeBusyObject.m ([SOGoFreeBusyObject +initialize]): initialize the default interval based on the new "SOGoFreeBusyDefaultInterval" user default array. ([SOGoFreeBusyObject -fetchFreeBusyInfosFrom:startDateto:endDate]): fetch the events from all the owner calendars. * SoObjects/Appointments/SOGoAppointmentFolder.m ([SOGoAppointmentFolder -fetchFields:_fieldsfrom:_startDateto:_endDatetitle:titlecomponent:_componentadditionalFilters:filters]): add processed recurrent events to the list of records. ([SOGoAppointmentFolder -fetchFreeBusyInfosFrom:_startDateto:_endDate]): request the "c_cycleinfo" field in order for the recurrent events to be taken into account. 2008-06-13 Wolfgang Sourdeau * SoObjects/Appointments/SOGoAppointmentFolder.m ([-fetchContentObjectNames]): removed useless method. ([-fetchAllSOGoAppointments]): removed useless method. ([SOGoAppointmentFolder -fetchCoreInfosFrom:_startDateto:_endDatetitle:titlecomponent:_componentadditionalFilters:filters]): retrieve the fields required for object instantiation and cache the resulting records. ([SOGoAppointmentFolder -bareFetchFields:fieldsfrom:startDateto:endDatetitle:titlecomponent:componentadditionalFilters:filters]): new method based on the non-bare part but simpler and without the handling of cyclic records. ([SOGoAppointmentFolder -davCalendarQuery:queryContext]) ([SOGoAppointmentFolder -davCalendarMultiget:queryContext]): optimized those methods by replacing often-used NSArray instances with arrays of ptr** and by removing utility submethods when useful. * SoObjects/Contacts/SOGoContactGCSEntry.m ([SOGoContactGCSEntry -vCard]): use the new "content" ivar. * SoObjects/Contacts/SOGoContactGCSFolder.m ([-deduceObjectForName:inContext:]): removed method since the object type is now deduced in the parent class. ([SOGoContactGCSFolder -objectClassForResourceNamed:name]): new overriden method. * SoObjects/SOGo/SOGoGCSFolder.m ([-fetchContentStringsAndNamesOfAllObjects]): removed useless method. ([SOGoGCSFolder -lookupName:keyinContext:localContextacquire:acquire]): added new overriden method, to fetch all the required metadata and content for basic handling of SOGoContentObjects. ([SOGoGCSFolder -fetchContentObjectNames]): prefetch and cache all the metadata and content of children objects since this method is used by the PROPFIND operation, which will likely require children instantiation. ([SOGoGCSFolder -objectClassForComponentName:componentName]): new mandatory method for subclasses. ([SOGoGCSFolder -objectClassForContent:content]): new mandator method for subclasses. ([SOGoGCSFolder -lookupName:keyinContext:localContextacquire:acquire]): fetch and cache the requested child object record. * SoObjects/SOGo/SOGoObject.m ([SOGoObject -ownerInContext:localContext]): set a new ivar: activeUserIsOwner to reduce method calls. * Main/SOGo.m ([SOGo -dispatchRequest:_request]): we now report the time taken by the request, if the "SOGoDebugRequests" user default is set. * SoObjects/SOGo/SOGoContentObject.m ([SOGoContentObject +objectWithRecord:objectRecordinContainer:newContainer]): new constructor that instantiate an object based on the data found in the corresponding database record. ([SOGoContentObject -setOCSPath:newOCSPath]): removed this method and other OCS related ones, since we no longer fetch the record data from here. Indeed, the object is now built from within its container, so that caches can be created and queries avoided. * SoObjects/SOGo/NSArray+Utilities.m ([NSArray -asPointersOfObjects]): new method that transforms an NSArray into an array of ptr**; 2008-06-02 Wolfgang Sourdeau * UI/MailPartViewers/UIxMailPartICalViewer.m ([UIxMailPartICalViewer -canOriginalEventBeUpdated]): new template accessor that return whether the use status has changed in the original reply and if its sequence number concurs. * UI/MailPartViewers/UIxMailPartICalActions.m ([UIxMailPartICalActions -updateUserStatusAction]): we accept the modification if the sequence number from the reply is equal or SUPERIOR (for Lightning bugs), rather than inferior, where the reply is obsolete anyway. 2008-05-31 Wolfgang Sourdeau * SoObjects/Mailer/SOGoMailFolder.m ([SOGoMailFolder +initialize]): new method where we read the three new defaults variables "SOGoIMAPAclStyle", "SOGoIMAPAclUsernamesAreQuoted", "SOGoIMAPAclConformsToIMAPExt". ([SOGoMailFolder +imapAclStyle]): new method that returns the rfc number to which the imap server conforms to regarding the acl. ([SOGoMailFolder -aclsForUser:uid]): added right 'c' and 'd' from rfc2086. ([SOGoMailFolder -setRoles:rolesforUser:uid]): convert SOGo permissions to the acl rights conforming to the RFC configured with SOGoIMAPAclStyle. ([SOGoMailFolder -aclUsers]): unquote usernames if "SOGoIMAPAclUsernamesAreQuoted" is set. Remove usernames listed as special usernames in http://www.tools.ietf.org/wg/imapext/draft-ietf-imapext-acl/ if "SOGoIMAPAclConformsToIMAPExt" is set. * UI/MailerUI/UIxMailUserRightsEditor.m ([UIxMailUserRightsEditor conformsToRFC4314]): new template getter. 2008-05-22 Wolfgang Sourdeau * SoObjects/SOGo/SOGoUserFolder.m ([SOGoUserFolder -davCollectionQuery:queryContext]): fixed the owner url returned in the list so that it matches what the regular davOwner method returns. * UI/MailerUI/UIxMailFolderActions.m ([UIxMailFolderActions -renameFolderAction]): select the INBOX folder before renaming the target folder. * UI/MainUI/SOGoRootPage.m ([SOGoRootPage -loginSuffix]): new method that returns the login suffix configured in the user defaults. ([SOGoRootPage -hasLoginSuffix]): returns whether a login suffix has been configured in the user defaults. * SoObjects/SOGo/SOGoUser.m ([SOGoUser -mailAccounts]): request the user login to the imap server from the LDAP user manager. * SoObjects/SOGo/LDAPUserManager.m ([LDAPUserManager -getImapLoginForUID:uid]): new method that returns the user identifier to use when login to the imap server, in case it's not the ldap uid. This is configurable through the boolean user default "SOGoForceIMAPLoginWithEmail". * SoObjects/Mailer/SOGoDraftObject.m ([SOGoDraftObject -sendMail]): the email passed as parameter to sendmail is now the bare user email. 2008-05-21 Wolfgang Sourdeau * UI/MailerUI/UIxMailFolderActions.m ([UIxMailFolderActions -deleteFolderAction]): select the INBOX folder before removing the target folder, so that Courier does not complain about the current mailbox being in use. 2008-05-16 Wolfgang Sourdeau * SoObjects/SOGo/SOGoGCSFolder.m ([SOGoGCSFolder -subscribe:reallyDoinTheNameOf:delegatedUserfromMailInvitation:isMailInvitationinContext:localContext]): published method. ([-folderReference]): no longer distingish between the user owned and the subscribed folders. * SoObjects/SOGo/SOGoFolder.m ([SOGoFolder -compare:otherFolder]): no longer use the "_" in the folder's nameInContainer. * UI/Common/UIxFolderActions.m ([UIxFolderActions -subscribeAction]) ([UIxFolderActions -unsubscribeAction]): use the client object's method for un-/subscribing. * SoObjects/SOGo/SOGoObject.m ([SOGoObject -pathArrayToSOGoObject]): removed useless method. * SoObjects/Appointments/SOGoAppointmentFolder.m ([SOGoAppointmentFolder -davCalendarQuery:queryContext]): added partial support for the "text-match" caldav directive. 2008-05-15 Wolfgang Sourdeau * UI/Contacts/UIxContactFoldersView.m ([-newAction]): removed useless method. 2008-05-05 Wolfgang Sourdeau * SoObjects/SOGo/SOGoObject.m ([SOGoObject -davAclQuery:queryContext]): parse the names only of element nodes. * UI/Common/UIxFolderActions.m ([UIxFolderActions -activateFolderAction]) ([UIxFolderActions -deactivateFolderAction]): reversed the logic and remove or add the folder name from/into the 'InactiveFolders' settings key. * SoObjects/Appointments/SOGoAppointmentFolder.m ([SOGoAppointmentFolder -create]): no longer write the folder name in the 'ActiveFolders' settings key. ([-isActive]): returns whether the folder is NOT listed in the 'InactiveFolders' settings key. 2008-05-02 Wolfgang Sourdeau * Main/SOGo.m ([SOGo -davURL], [SOGo -soURL]): copied methods from SOGoObject. * SoObjects/SOGo/SOGoUserFolder.m ([SOGoUserFolder -davDisplayName]): new overriden method to provide a display name to the users principal. * SoObjects/SOGo/SOGoPermissions.[hm]: removed the "Save Acls" permission since its purposes matches SOPE's "Change Permissions". * SoObjects/SOGo/SOGoGCSFolder.m ([SOGoGCSFolder +webdavAclManager]): new overriden method. * SoObjects/SOGo/SOGoParentFolder.m ([SOGoParentFolder +webdavAclManager]): new overriden method. * UI/MailPartViewers/UIxMailPartTextViewer.m (convertChars): do not cast pointers to unsigned int to avoid problems with big endian archs. * SoObjects/Contacts/SOGoContactLDAPFolder.m ([-davNamespaces]): removed method. * SoObjects/Contacts/SOGoContactGCSFolder.m ([-davNamespaces]): removed method. * SoObjects/SOGo/SOGoGCSFolder.m ([SOGoGCSFolder +webdavAclManager]): new overriden method. * SoObjects/SOGo/SOGoFolder.m ([SOGoFolder +webdavAclManager]): new overriden method. * SoObjects/Appointments/SOGoAppointmentObject.m ([SOGoAppointmentObject +webdavAclManager]): new overriden method. * SoObjects/Appointments/SOGoAppointmentFolder.m ([SOGoAppointmentFolder +webdavAclManager]): new overriden method. ([-davNamespaces]): removed method. ([-lookupGroupFolderForUIDs:_uidsinContext:]) ([-lookupGroupCalendarFolderForUIDs:_uidsinContext:_ctx]): disabled methods. * SoObjects/SOGo/SOGoWebDAVAclManager.[hm]: new class module that implements the rendering of DAV acl trees as well as their mapping from SOGo permissions. * SoObjects/SOGo/SOGoObject.m ([SOGoObject +initialize]): libSOGo is now a framework, so we can simplify the loading of the DAVReportMap. ([-lookupGroupsFolder]): disabled method. ([SOGoObject -davOwner], [SOGoObject -davAclRestrictions]) ([SOGoObject -davPrincipalCollectionSet]) ([SOGoObject -davCurrentUserPrivilegeSet]) ([SOGoObject -davSupportedPrivilegeSet], [SOGoObject -davAcl]) ([SOGoObject -davPrincipalMatch:localContext]) ([SOGoObject -davSupportedReportSet]): (re-)implemented dav methods with our new dav rendering paradigm. ([-davNamespaces]): removed method. ([SOGoObject -domNode:nodegetChildNodesByType:type]): new helper method to help subclass with parsing dav requests, especially wrt REPORT ones. ([SOGoObject +webdavAclManager]): new overridable method that returns a properly configured DAV acl manager (see above). * SoObjects/Appointments/SOGoUserFolder+Appointments.[hm]: new category module that implements DAV methods required by CalDAV. * UI/SOGoUI/UIxComponent.m ([UIxComponent -applicationPath]): disabled all mentions of "SOGoGroupFolder*". * SoObjects/SOGo/SOGoDAVRendererTypes.[hm]: removed subclass module, superseded by the new method mentionned below. * SoObjects/SOGo/SOGoWebDAVValue.m ([SOGoWebDAVValue -stringForTag:_keyrawName:setTaginContext:contextprefixes:prefixes]): a simple wrapper that returns an uninterpreted NSString to SOPE. * SoObjects/SOGo/NSArray+DAV.[hm], * SoObjects/SOGo/NSDictionary+DAV.[hm], * SoObjects/SOGo/NSObject+DAV.[hm], * SoObjects/SOGo/NSString+DAV.[hm], * SoObjects/SOGo/NSURL+DAV.[hm]: new class category modules that handle the correct generation of DAV entries, with namespace accounting. Those were implemented to enable the use of a simple SoWebDAVValue as the root of the resulting string, thereby avoiding the xml escaping done by SOPE when returning a real NSString. 2008-04-25 Wolfgang Sourdeau * SoObjects/SOGo/LDAPSource.m ([LDAPSource -fetchContactsMatching:match]) ([LDAPSource -lookupContactEntryWithUIDorEmail:uid]): take all the mail fields into account when doing a search. 2008-04-23 Wolfgang Sourdeau * SoObjects/SOGo/SOGoObject.m ([SOGoObject +initialize]): the module is now a framework and we now load the new DAVReportMap description file. ([-davOwner]): the principal URL is now based on the DAV application URL. ([SOGoObject -lookupName:lookupNameinContext:localContextacquire:acquire]): we now lookup report methods from here (code from SOGoFolder). The method has changed to refer to the new DAVReportMAP description file in order to resolve the lookups on self. ([SOGoObject -davSupportedReportSet]): implemented the new "supported-report-set" dav method, based on the new mechanism described above. * SoObjects/SOGo/SOGoFolder.m: REPORT lookups are now done directly from SOGoObject. * SoObjects/SOGo/SOGoUser.m ([SOGoUser -initWithLogin:newLoginroles:newRoles]): we make sure realUID is not an empty string. * SoObjects/SOGo/SOGoUserFolder.m ([SOGoUserFolder -davResourceType]): we declare self as a "principal". * SoObjects/SOGo/SOGoContentObject.m ([SOGoContentObject -davContentLength]): the content length should is now based on the UTF-8 encoding. 2008-04-22 Wolfgang Sourdeau * UI/Scheduler/UIxCalendarSelector.m ([UIxCalendarSelector -contrastingTextColor]): new method (code taken from Lightning) that returns a foreground color easily readible based on the brightness of the background color. * SoObjects/SOGo/SOGoGCSFolder.m ([SOGoGCSFolder -setDavDisplayName:newName]): deny the renaming of the folder if not owner. * SoObjects/SOGo/SOGoObject.m ([SOGoObject -davSetProperties:setPropsremovePropertiesNamed:removedPropsinContext:localContext]): certain properties should be authorized when not owner. 2008-04-21 Wolfgang Sourdeau * UI/Scheduler/UIxColorPicker.[hm]: new class module that implements a javascript-based color picker. * UI/Scheduler/UIxCalendarProperties.[hm]: new class module that implements the interface for renaming and recoloring the calendars. 2008-04-15 Wolfgang Sourdeau * UI/MailPartViewers/UIxMailPartHTMLViewer.m ([_UIxHTMLMailContentHandler -characters:_charslength:_len]) ([_UIxHTMLMailContentHandler -comment:_charslength:_len]): don't cast the unichar data to char, to avoid issues with endianness which prevents the CSS from being parsed properly. * UI/MailerUI/UIxMailEditor.m ([UIxMailEditor -isMailReply]): new method that returns the JS values "true" or "false" as strings is the mail has a non-null count of recipients. 2008-04-14 Wolfgang Sourdeau * SoObjects/Appointments/SOGoAppointmentFolder.m ([SOGoAppointmentFolder -davCalendarQuery:queryContext]) ([SOGoAppointmentFolder -davCalendarMultiget:queryContext]): deduce the cname of objects even if we are using hostless urls. 2008-03-31 Wolfgang Sourdeau * UI/SOGoUI/SOGoACLAdvisory.m ([SOGoACLAdvisory -resourceName]): use the resource display name instead of its "nameInContainer". 2008-03-28 Wolfgang Sourdeau * SoObjects/Contacts/SOGoContactLDIFEntry.m ([SOGoContactLDIFEntry -isFolderish]): new overriden method. * SoObjects/Appointments/SOGoAppointmentFolder.m ([SOGoAppointmentFolder -appendObject:objectproperties:propertieswithBaseURL:baseURLtoComplexResponse:r]): check whether the current user has access to the objects returned before including their properties. 2008-03-27 Wolfgang Sourdeau * SoObjects/SOGo/AgenorUserDefaults.m ([AgenorUserDefaults -primaryFetchProfile]): we unescape the fetched value before constructing the NSDictionary. * UI/Scheduler/UIxComponentEditor.m ([UIxComponentEditor -setComponent:newComponent]): the weeks start on sunday in OpenStep and are indexed from 0. 2008-03-25 Wolfgang Sourdeau * UI/Scheduler/UIxComponentEditor.m ([UIxComponentEditor -takeValuesFromRequest:_rqinContext:_ctx]): treat the regular monthly recurrences as all others. * SoObjects/SOGo/SOGoGCSFolder.m ([SOGoGCSFolder -davSetProperties:setPropsremovePropertiesNamed:removedPropsinContext:localContext]): returns an exception if the property to modify is not "davDisplayName" and if the current user has not the owner role over the current collection. 2008-03-25 Francis Lachapelle * UI/Scheduler/UIxCalMainView.m ([UIxCalMainView -verticalDragHandleStyle]): CSS style wrt to position of drag handle saved by current user. ([UIxCalMainView -horizontalDragHandleStyle]): idem. ([UIxCalMainView -eventsListViewStyle]): idem. * UI/Contacts/UIxContactsListViewContainer.m ([UIxContactsListViewContainer -verticalDragHandleStyle]): CSS style wrt to position of drag handle saved by current user. ([UIxContactsListViewContainer -horizontalDragHandleStyle]): idem. ([UIxContactsListViewContainer -contactsListContentStyle]): idem. * UI/MailerUI/UIxMailMainFrame.m ([UIxMailMainFrame -verticalDragHandleStyle]): CSS style wrt to position of drag handle saved by current user. ([UIxMailMainFrame -horizontalDragHandleStyle]): idem. ([UIxMailMainFrame -mailboxContentStyle]): idem. 2008-03-18 Wolfgang Sourdeau * SoObjects/Appointments/SOGoAppointmentFolder.m ([SOGoAppointmentFolder -davCalendarMultiget:queryContext]): implemented new CalDAV method. ([SOGoAppointmentFolder -davCalendarQuery:queryContext]): refactored method to return exactly the properties requested in the query and to share code with the new method above. * SoObjects/Appointments/SOGoCalendarComponent.m ([SOGoCalendarComponent -davCalendarData]): added method for better CalDAV compliance. 2008-03-17 Wolfgang Sourdeau * SoObjects/SOGo/SOGoObject.m ([SOGoObject -davAclQuery:queryContext]): declare the "text/xml" mime type only when the content is not empty. Otherwise, returns no mime type at all and set the status code to 204. 2008-03-10 Wolfgang Sourdeau * UI/Scheduler/UIxCalMonthViewOld.m ([UIxCalMonthViewOld -endDate]): removed useless method. * SoObjects/SOGo/NSCalendarDate+SOGo.m ([-dayOfWeeK:_dayoffsetFromSunday:_offset]): removed useless method. ([-sundayOfWeek]): removed useless method. 2008-03-07 Wolfgang Sourdeau * OGoContentStore/OCSContactFieldExtractor.m ([OCSContactFieldExtractor -extractQuickFieldsFromVList:vList]): new method to handle extraction of quick information from the VLIST components. I.e.: the display name of the card. * SoObjects/SOGo/SOGoFolder.m ([SOGoFolder -isValidContentName:name]): moved method from SOGoAppointmentFolder's isValidAppointmentName. * SoObjects/Contacts/SOGoContactGCSFolder.m ([SOGoContactGCSFolder -objectClassForContent:content]) ([SOGoContactGCSFolder -deduceObjectForName:inContext:]) ([SOGoContactGCSFolder -requestNamedIsHandledLater:name]) ([SOGoContactGCSFolder -lookupName:inContext:acquire:]): those methods were modified to match the ones in SOGoAppointmentFolder, in order to manage both vcard and vlist components. * SoObjects/Contacts/SOGoContactGCSList.[hm]: new class module that implements the list counterpart to VCARD: VLIST. * UI/Contacts/UIxContactEditor.m ([UIxContactEditor -saveURL]): new accessor that returns the url + "saveAsContact". ([UIxContactEditor -shouldTakeValuesFromRequest:requestinContext:context]): changed method to match the one from the event and todo editor module. ([UIxContactEditor -editActionName]): changed to "editAsContact". ([UIxContactEditor -newAction]): changed method to match the one from the event and todo editor module. * UI/Contacts/UIxListView.m: new view module for the VLIST format components. * UI/Contacts/UIxListEditor.m: new edition module for the VLIST format components. * SoObjects/Contacts/SOGoContactGCSList.m: new controller module for the VLIST format. 2008-03-04 Wolfgang Sourdeau * SoObjects/SOGo/SOGoObject.m ([SOGoObject -isFolderish]): new parent method, meant to be overriden. ([SOGoObject -davIsCollection]): moved method from SOGoFolder up to this parent class. 2008-02-25 Wolfgang Sourdeau * SoObjects/SOGo/SOGoGCSFolder.m ([SOGoGCSFolder -davSubscribe:queryContext]): implemented subscribing users other that the current one, if the user doing the operation is a superuser. ([SOGoGCSFolder -davUnsubscribe:queryContext]): same as above for unsubscription. 2008-02-22 Wolfgang Sourdeau * SoObjects/SOGo/SOGoUserFolder.m ([SOGoUserFolder -davUserQuery:queryContext]): new method for the "user-query" inverse DAV method. * SoObjects/SOGo/SOGoGCSFolder.m ([SOGoGCSFolder -aclUsersForObjectAtPath:objectPathArray]): return unique uids. * SoObjects/SOGo/SOGoFolder.m ([-davNamespaces]): removed method. * SoObjects/SOGo/SOGoDAVRendererTypes.h (SoWebDAVValue): added SOGoDAVDictionary webdav value class. * SoObjects/SOGo/NSArray+Utilities.m ([NSArray -uniqueObjects]): new method that returns unique occurences of the objects. * SoObjects/Contacts/SOGoContactGCSFolder.m ([SOGoContactGCSFolder -davNamespaces]): same as below. * SoObjects/Appointments/SOGoAppointmentFolder.m ([SOGoAppointmentFolder -davNamespaces]): take the parents namespaces into account. * SoObjects/SOGo/SOGoObject.m ([SOGoObject -addUserInAcls:uid]): new method. ([SOGoObject -removeUserFromAcls:uid]): new methods (see below). ([SOGoObject -davNamespaces]): declare the "urn:inverse:params:xml:ns:inverse-dav" namespace. ([SOGoObject -davRecordForUser:user]) ([SOGoObject -davAclQuery:queryContext]): new methods to answer to the "user-list", "roles", "set-roles", "add-user", "remove-user" inverse DAV methods. * UI/Common/UIxObjectActions.m ([UIxObjectActions -addUserInAclsAction]) ([UIxObjectActions -removeUserFromAclsAction]): moved the core of those methods into SOGoObject and translate its result into an appropriate HTTP status. 2008-02-20 Wolfgang Sourdeau * SoObjects/SOGo/SOGoGCSFolder.m ([SOGoGCSFolder -davInverseACL]): first implementation of a DAV interface to SOGo roles. Returns the result in JSON. 2008-02-14 Wolfgang Sourdeau * GNUmakefile: migrated to GNUstep Make 2. 2008-02-12 Wolfgang Sourdeau * SoObjects/Appointments/SOGoFreeBusyObject.m ([SOGoFreeBusyObject -iCalStringForFreeBusyInfos:_infosfrom:_startDateto:_endDate]): we no longer invoke [container login], since this method has been removed. Instead we invoke ownerInContext:. * SoObjects/SOGo/SOGoFolder.m ([SOGoFolder -fetchContentObjectNames]): new model method for all subclasses. This will be removed in the future since toOneRelationshipKeys must be sufficient. * SoObjects/SOGo/SOGoGCSFolder.m ([SOGoGCSFolder -defaultFilenameExtension]): removed useless method. ([-toOneRelationshipKeys]): moved method into SOGoFolder.m. 2008-02-08 Wolfgang Sourdeau * UI/MailPartViewers/UIxMailPartICalViewer.m ([UIxMailPartICalViewer -currentUserAttendee]): new method that returns the current user as an attendee representation in the displayed event, if found. * SoObjects/Mailer/SOGoMailAccount.m ([SOGoMailAccount -_urlHostString]): replace "@" with %40 AFTER invoking stringByEscapingURL. * SoObjects/Mailer/SOGoMailBaseObject.m ([SOGoMailBaseObject -isBodyPartKey:key]): hacked a little bit to test for the length of the key trimmed from its bordering digits. So if the key contains only digits, we consider it to be a body part key. There is room for improvement but we can consider this will be accurate in 99.99% of the cases. Also, removed the context parameter which was useless. * SoObjects/SOGo/SOGoObject.m ([SOGoObject -davComplianceClassesInContext:localContext]): new method, declaring "access-control" in the compliance classes. 2008-02-07 Wolfgang Sourdeau * SoObjects/Mailer/SOGoMailAccount.m ([SOGoMailAccount -imap4URLString]): compose the mail hostname part of the url by escaping the username. This is part of the fix below. * SoObjects/SOGo/SOGoUser.m ([SOGoUser -mailAccounts]): if the loginname for the default mail account contains an "@", it should be url-escaped to avoid confusing NSURL. ([SOGoUser -accountWithName:accountName]): new method that wanders the accounts list and returns the one that matches the name passed as parameter, if found. * SoObjects/SOGo/SOGoUserFolder.m ([-login]): removed useless method. ([SOGoUserFolder -ownerInContext:_ctx]): compute the owner name from a SOGoUser instance initialized with the nameInContainer as initial login name. This way, all the objects belonging to the corresponding user will be accessible with all the fields mentionned in the "bindFields" LDAP settings value. ([SOGoUserFolder -privateCalendars:keyinContext:localContext]) ([SOGoUserFolder -privateContacts:_keyinContext:_ctx]): use -[self ownerInContext:] to determine the OCS path. * SoObjects/Mailer/SOGoSharedMailAccount.[hm]: removed useless module. * SoObjects/Mailer/SOGoSharedInboxFolder.[hm]: removed useless module. * UI/PreferencesUI/UIxPreferences.m ([UIxPreferences -setSignature:newSignature]): invoke -[SOGoUser saveMailAccounts] * SoObjects/SOGo/SOGoUser.m ([SOGoUser -defaultIdentity]): method moved from UIxPreferences.m. ([SOGoUser -saveMailAccounts]): new methods that save the "MailAccounts" preference in the user settings. * SoObjects/SOGo/LDAPUserManager.m ([LDAPUserManager +initialize]): issue a warning whenever "SOGoDefaultMailDomain" is not configured in the user defaults, setting it to "localhost" by default. ([LDAPUserManager +defaultMailDomainIsConfigured]): new method that returns whether "SOGoDefaultMailDomain" is configured. 2008-02-06 Wolfgang Sourdeau * SoObjects/SOGo/SOGoGCSFolder.m ([SOGoGCSFolder -ocsFolder]): send an email only when not in a dav request. ([SOGoGCSFolder -delete]): same as above. * SoObjects/Mailer/SOGoMailAccount.m ([SOGoMailAccount -supportsQuotas]): test quota support by querying the server capability. 2008-02-05 Wolfgang Sourdeau * UI/MailPartViewers/UIxMailPartICalActions.m ([UIxMailPartICalActions -acceptAction]) ([UIxMailPartICalActions -declineAction]): define the organizer of the event as one of the reply-to or from addresses whenever the organizer is not specified in those Outlook invitations. 2008-02-01 Wolfgang Sourdeau * UI/MailerUI/UIxMailMainFrame.m ([UIxMailMainFrame -quotaSupport]): new json string that lists the quota support among the user's mail accounts. * SoObjects/Mailer/SOGoMailAccount.m ([SOGoMailAccount -supportsQuotas]): new method that returns whether the current account server has support for quotas. 2008-01-29 Wolfgang Sourdeau * SoObjects/SOGo/SOGoGCSFolder.m ([SOGoGCSFolder -davSetProperties:setPropsremovePropertiesNamed:removedPropsinContext:localContext]): new method that takes the displayname into account. * SoObjects/SOGo/SOGoParentFolder.m ([SOGoParentFolder -davCreateCollection:pathInfoinContext:localContext]): new method that acts as a proxy to newFolderWithName:andNameInContainer:. 2008-01-28 Wolfgang Sourdeau * UI/Scheduler/UIxComponentEditor.m ([UIxComponentEditor -takeValuesFromRequest:_rqinContext:_ctx]): make use of the << operator to handle the day masks in custom rules. 2008-01-24 Wolfgang Sourdeau * SoObjects/SOGo/SOGoUser.m ([SOGoUser +userWithLogin:newLoginroles:newRoles]): test if the user is well initialized before registering it with the SOGo cache. ([SOGoUser -initWithLogin:newLoginroles:newRoles]): returns a user only if the realUID has been found, otherwise we dealloc self and return nil. * SoObjects/Appointments/SOGoAppointmentFolder.m: if c_cycleinfo is an NSNull instance, we consider it to be empty and return automatically with an error message in the log. * OGoContentStore/OCSiCalFieldExtractor.m ([OCSiCalFieldExtractor -extractQuickFieldsFromTodo:_task]): handle recurrence info in tasks. * UI/MailPartViewers/UIxMailPartViewer.m ([UIxMailPartViewer -pathToAttachment]): in the case where the client object is not a mail body part (when the message IS the attachment), we append 0 to generate the url, instead of the filename. 2008-01-22 Wolfgang Sourdeau * SoObjects/Appointments/SOGoAppointmentFolder.m ([SOGoAppointmentFolder -fetchFields:_fieldsfromFolder:_folderfrom:_startDateto:_endDatetitle:titlecomponent:_component]): change the algorithm a little bit to compare the roles of the current users to see if he is an "owner" instead of solely checking its login name. This enables the users listed as "SuperUsers" to be considered as owners and see everything as expected. 2008-01-18 Wolfgang Sourdeau * SoObjects/Contacts/SOGoFolder+CardDAV.m ([SOGoFolder -davAddressbookQuery:queryContext]): when empty values are fed to SOGo, their dictionary should be explicitly set to nil. 2008-01-16 Wolfgang Sourdeau * SoObjects/SOGo/SOGoCache.m ([SOGoCache -registerObject:objectwithName:nameinContainer:container]): register the object and its parents too. * SoObjects/SOGo/SOGoUser.m ([SOGoUser +userWithLogin:newLoginroles:newRoles]): try to retrieve the specified user from the SOGoCache. * SoObjects/SOGo/SOGoObject.m ([SOGoObject -lookupName:lookupNameinContext:localContextacquire:acquire]): try to retrieve the object specified from the cache and returns it if it exists. * SoObjects/Appointments/SOGoAppointmentFolder.m ([SOGoAppointmentFolder -lookupName:inContext:acquire:]): cache the result in the SOGoCache. * Main/SOGo.m ([SOGo -dispatchRequest:_request]): initialize and kill the shared cache before and after the connection processing. * SoObjects/SOGo/SOGoCache.[hm]: new cache module implementing a per-connection cache mechanism. 2008-01-16 Ludovic Marcotte * Minor adjustments / bug fixes to previous commit. 2008-01-14 Ludovic Marcotte * Added files related to the custom recurrence editor of the SOGo Web interface. The CSS needs to be done correctly. * Fixed a bug in the daily recurrence generator. We now consider the byDayMask, if any. * Moved the repeat/reminder code to the UIxComponentEditor class / template. * Added a few JavaScript methods to HTMLElement.js 2008-01-08 Francis Lachapelle * UI/MailerUI/UIxMailAccountActions.m ([UIxMailAccountActions -composeAction]): the mailto form parameter can now be a comma-separated list of email addresses. 2007-12-21 Ludovic Marcotte * UI/Contacts/UIxContactView.m Modified -secondaryEmail so that we always get the "last" email address in case no preferred one was specified in the vCard. Also fixed a memory leak in this method. 2007-12-20 Wolfgang Sourdeau * SoObjects/SOGo/SOGoContentObject.m ([SOGoContentObject -aclsForUser:uid]): removed useless ACL checks on the current object to reduce DB usage. 2007-12-17 Wolfgang Sourdeau * UI/MailerUI/UIxMailEditor.m ([UIxMailEditor -attachmentNames]): initialize "attachmentNames" if it was NOT initialized... I think this was a typo. * SoObjects/Mailer/SOGoDraftObject.m ([SOGoDraftObject -fetchMailForForwarding:sourceMail]): append the signature to mails forwarded as attachment. * UI/MailPartViewers/UIxMailPartViewer.m ([UIxMailPartViewer -clientPart]): new method that returns the corresponding SOGoMailPart instance. ([UIxMailPartViewer -pathToAttachment]): simplified method, ensure the filename is present. If the part has none, create one with the "Untitled-" prefix. Add an extension if none is found. * UI/MailPartViewers/UIxMailPartImageViewer.m ([UIxMailPartImageViewer -pathToImage]): removed method since it implementents exactly the same functionality as [UIxMailPartViewer -pathToAttachment]. * SoObjects/Mailer/SOGoMailBodyPart.m ([SOGoMailBodyPart -filename]): new method that returns the filename to the current part by taking the different mime implementations into account. [SOGoMailBodyPart -isBodyPartKey:inContext:]: commented out method because we need to handle the part recognition in a different way, by using the prefix "part" for example. One day we will do that. * UI/Scheduler/NSArray+Scheduler.m ([NSMutableArray -reverseArray]): new category method. 2007-12-17 Francis Lachapelle * UI/MailerUI/UIxMailMainFrame.m ([UIxMailMainFrame -composeAction]): fixed URL when no recipient is specified. 2007-12-14 Ludovic Marcotte * SoObjects/Appointments/SOGoCalendarComponent.m We set headers in lowercase so that they get properly encoded by SOPE. * SoObjects/Mailer/SOGoDraftObject.m Minor cleanups. 2007-12-13 Francis Lachapelle * UI/MailerUI/UIxMailMainFrame.m ([UIxMailMainFrame -saveFoldersStateAction]) ([UIxMailMainFrame -getFoldersStateAction]): new methods to get and set the folders state of the user's web view. 2007-12-13 Wolfgang Sourdeau * UI/MainUI/SOGoRootPage.m ([SOGoRootPage -crashAction]): new action methods that generates a segmentation faults. ([SOGoRootPage -exceptionAction]): new method that returns an exception object. ([SOGoRootPage -raisedExceptionAction]): new method that raises an exception without returning it. * UI/SOGoUI/UIxComponent.m ([UIxComponent -responseWithStatus:status]) ([UIxComponent -responseWithStatus:statusandString:contentString]) ([UIxComponent -responseWithStatus:statusandJSONRepresentation:contentObject]) ([UIxComponent -responseWith204]): new utility methods. * UI/Common/WODirectAction+SOGo.m ([WODirectAction -responseWithStatus:statusandString:contentString]) ([WODirectAction -responseWithStatus:statusandJSONRepresentation:contentObject]): new utility methods. * SoObjects/SOGo/NSScanner+BSJSONAdditions.m ([NSScanner -scanJSONStringDelimiterString]): new category module taken from BSJSONAdditions 1.3. * SoObjects/SOGo/NSDictionary+BSJSONAdditions.[hm]: new category module taken from BSJSONAdditions 1.3. http://blakeseely.com/downloads.html 2007-12-12 Wolfgang Sourdeau * SoObjects/SOGo/NSString+Utilities.m ([NSString -stringByDetectingURLs]): we now go back until the real start of the found url. * SoObjects/Mailer/SOGoMailObject.m ([SOGoMailObject -fetchAttachmentIds]): new method that wanders through the mail structure to collect the attachment content ids and to associate them with their url. * UI/MailPartViewers/UIxMailPartHTMLViewer.m ([_UIxHTMLMailContentHandler -startElement:_localNamenamespace:_nsrawName:_rawNameattributes:_attributes]): the content-ids are now enclosed between "<>" before retrieval from the attachment dictionary. ([UIxMailPartHTMLViewer -cssContent]) ([UIxMailPartHTMLViewer -flatContentAsString]): the content-ids are now fetch from the clientobject (an instance of SOGoMailObject) with the new "fetchAttachmentIds" method. 2007-12-12 Francis Lachapelle * UI/Scheduler/UIxCalListingActions.m ([UIxCalListingActions -eventsListAction]): added the state of the calendar's owner with respect to the current event. * UI/Scheduler/UIxComponentEditor.m ([UIxComponentEditor -_loadAttendees]): added the retrieval of attendees state on current event. 2007-12-12 Ludovic Marcotte * UI/MailPartViewers/UIxMailRenderingContext.{h,m} Removed template caching which added very little and created re-entrant issues. * UI/MailPartViewers/UIxMailPartHTMLViewer.m Added a hack (and stated so in the source file) to avoid what seems to be a bug in libxml. 2007-12-12 Wolfgang Sourdeau * SoObjects/SOGo/SOGoContentObject.m ([SOGoContentObject -davCreationDate]) ([SOGoContentObject -davLastModified]) ([SOGoContentObject -davContentLength]): implemented dav methods. 2007-12-10 Francis Lachapelle * SoObjects/Mailer/SOGoMailBodyPart.m ([SOGoMailBodyPart -GETAction:]): when asAttachment is set to true, the header "content-disposition" is set to "attachment" so browsers like IE and Safari properly asks the user to save the file. 2007-12-10 Wolfgang Sourdeau * UI/MailPartViewers/UIxMailPartHTMLViewer.m ([UIxMailPartHTMLViewer -flatContentAsString]): when in UIxMailPartAlternative, scan the filenames of potential cid at the same level as our parent. 2007-12-07 Wolfgang Sourdeau * Main/SOGo.m ([SOGo -run]): the table creation script now have a @{tableName} substitution variable to be substitued with the real table name obtained from the configuration variables. 2007-12-07 Ludovic Marcotte * UI/MailPartViewers/UIxMailRenderingContext.m We treat multipart/appledouble like multipart/mixed for now. That allows the user to save both parts. * Corrected typos in Localizable.string files. 2007-12-06 Wolfgang Sourdeau * UI/Common/UIxAclEditor.m ([-currentUserIsOwner]): replaced method with -canModifyAcls that invokes the security manager instead for the permission "SaveAcls" on the client object. * SoObjects/Appointments/SOGoCalendarComponent.m ([SOGoCalendarComponent -contentAsString]): securize the returned content. ([SOGoCalendarComponent -aclsForUser:uid]): check whether the user is an organizer or a participant as well. * SoObjects/Appointments/SOGoAppointmentObject.m ([SOGoAppointmentObject -changeParticipationStatus:_status]): the user we should change the status of is not the active user but the owner of the object. This is for delegation. * SoObjects/Appointments/SOGoAppointmentFolder.m ([SOGoAppointmentFolder -fetchContentObjectNames]): fetch the elements through the fetchFields:from:to:title:component: method method, so that the result is already filtered depending on the acl. * UI/Scheduler/UIxComponentEditor.m ([UIxComponentEditor -toolbar]): if the current user is a delegate, take the permission "ModifyComponent" into account. Also, do not let him/her modify an event for which he/she is the organizer. * SoObjects/Contacts/SOGoContactLDAPFolder.m ([SOGoContactLDAPFolder -davResourceType]): declared as a carddav addressbook collection. * SoObjects/Contacts/SOGoContactGCSFolder.m ([SOGoContactGCSFolder -davResourceType]): declared as a carddav addressbook collection. * SoObjects/SOGo/SOGoObject.m ([SOGoObject -davLastModified]): override SoObject's implementation. Otherwise a localized date is returned. * UI/Common/UIxPageFrame.m ([UIxPageFrame -isCalendar]) ([UIxPageFrame -isContacts], [UIxPageFrame -isMail]): getters to determine which module is the current one. 2007-12-06 Francis Lachapelle * UI/Scheduler/NSArray+Scheduler.m ([NSArray -compareEventsTitleAscending:otherEvent]) ([NSArray -compareEventsLocationAscending:otherEvent]) ([NSArray -compareEventsEndDateAscending:otherEvent]) ([NSArray -reversedArray]): new methods that sort an array of events depending of various parameters. * UI/Scheduler/UIxCalListingActions.m ([UIxCalListingActions -eventsListAction]): added support for sorting events. 2007-12-06 Wolfgang Sourdeau * UI/MailerUI/UIxMailEditor.m ([UIxMailEditor -saveAction]) ([UIxMailEditor -sendAction]): make sure that the attachments having the same filename are correctly sequenced (ex: base.ext, base-1.ext, base-2.ext). * SoObjects/Mailer/SOGoMailBodyPart.m ([SOGoMailBodyPart -fetchBLOB]): added support for quoted-printable decoding. Also, we return nil if the type is not supported. 2007-12-05 Wolfgang Sourdeau * UI/Scheduler/UIxTaskEditor.m ([UIxTaskEditor -newAction]): create task obejcts with the .ics extension. * UI/Scheduler/UIxAppointmentEditor.m ([UIxAppointmentEditor -newAction]): create appointment objects with the .ics extension. * UI/Contacts/UIxContactEditor.m ([UIxContactEditor -newAction]): create objects with the .vcf extension. * Main/NSException+Stacktrace.m: added missing symbols from NSException.m and NSDebug.m (GNUstep). * UI/MainUI/SOGoUserHomePage.m ([SOGoUserHomePage -foldersSearchAction]): make use of the new search methods in SOGoUserFolder (see below). * UI/Contacts/UIxContactFoldersView.m ([-foldersSearchAction]): moved method into ../MainUI/SOGoUserHomePage.m. * SoObjects/SOGo/SOGoUserFolder.m ([SOGoUserFolder -foldersOfType:folderTypeforUID:uid]): only return folders owned by the specified user. 2007-12-05 Francis Lachapelle * SoObjects/Mailer/SOGoDraftObject.m: the condition for replyToAll has to be done later to avoid duplicated to and cc addresses. 2007-12-04 Wolfgang Sourdeau * SoObjects/Appointments/SOGoAppointmentFolder.m ([SOGoAppointmentFolder -davCalendarQuery:queryContext]): fixed a leak. * SoObjects/SOGo/SOGoGCSFolder.m ([SOGoGCSFolder -davSubscribe:localContext]) ([SOGoGCSFolder -davUnsubscribe:localContext]): subscribe an unsubscribe from DAV-based accesses. We could be compatible with Microsoft's extensions but we have no need for a "subcription id", so we implement our own. * SoObjects/SOGo/SOGoObject.m ([SOGoObject -POSTAction:localContext]): new method to intercept DAV POSTs, which we now use to implement certain custom commands such as "subscribe" and "unsubscribe". * SoObjects/SOGo/SOGoUserFolder.m ([SOGoUserFolder -davNamespaces]): declare the "urn:inverse:params:xml:ns:inverse-dav" xml ns. ([SOGoUserFolder -foldersOfType:folderTypeforUID:uid]): new method designed to replace the UIxContactFoldersView.m mechanism for displaying folders to subcribe to, as a common code base for both Web and DAV-based subscriptions. ([SOGoUserFolder -foldersOfType:typematchingUID:uid]): same as above. ([SOGoUserFolder -davCollectionQuery:queryContext]): new method that implement a custom DAV-based protocol query for querying folder based on specified attributes. 2007-12-03 Ludovic Marcotte * Main/NSException+Stacktrace.{h,m} - new files to handle automatic stack trace generation upon an uncaught exception. * Updated the templates and Localizable.string files to fix typos and add new strings. * SoObjects/Mailer/SOGoMailBodyPart.m Fixed attachment retreival when the first character is a digit. * SoObjects/SOGo/SOGoGCSFolder.m Fixed the sending of emails when folders are created/removed. Notifications are sent if the defaults SOGoFoldersSendEMailNotifications is set to YES. * UI/Common/UIxUserRightsEditor.m * UI/Templates/SOGoACLEnglishModificationAdvisory.wox * UI/Templates/SOGoACLFrenchModificationAdvisory.wox * UI/Templates/SOGoACLGermanModificationAdvisory.wox Added the capabilities to email notifications when ACLs have changed on a DAV collection or an IMAP mailbox. Also added new templates (3 .wox) to deal with this. * UI/WebServerResources/ContactsUI.js UI/WebServerResources/SchedulerUI.js Added warnings on operations w/o selection. 2007-11-30 Wolfgang Sourdeau * SoObjects/SOGo/SOGoParentFolder.m ([SOGoParentFolder -appendSubscribedSources]): don't include sources for which we don't have the SOGoPerm_AccessObject permission. * SoObjects/SOGo/NSCalendarDate+SOGo.m ([NSCalendarDate -rfc822DateString]): we want positive timezones to be specified with a leading "+" too. 2007-11-29 Wolfgang Sourdeau * SoObjects/SOGo/SOGoGCSFolder.m ([SOGoGCSFolder +folderWithSubscriptionReference:referenceinContainer:aContainer]): return nil if the subscribed folder has no display name (meaning it no longer exists). * SoObjects/SOGo/SOGoParentFolder.m ([SOGoParentFolder -appendPersonalSources]): don't include sources which are no longer existing. * SoObjects/SOGo/SOGoContentObject.m ([SOGoContentObject -ocsPathOfContainer]): return the intended value, not that of ocsPath... * SoObjects/Appointments/SOGoCalendarComponent.m ([SOGoCalendarComponent -sendResponseToOrganizer]): send the message only of sendEMailNotifications is set. * SoObjects/SOGo/SOGoObject.m ([SOGoObject -subscriptionRoles]): new method that returns the roles that qualifies for adding the special "authorized subscribed" sogo role. 2007-11-27 Wolfgang Sourdeau * SoObjects/SOGo/SOGoContentObject.m ([SOGoContentObject -aclsForUser:uid]): copy all the roles from the container. If the object is new, make sure the roles contain "ObjectEditor" if and only if "ObjectCreator" is present. * SoObjects/SOGo/SOGoGCSFolder.m ([SOGoGCSFolder -aclsForUser:uid]): no longer take the "ObjectReader" role into account. * UI/Common/UIxFolderActions.m ([UIxFolderActions -canAccessContentAction]): always return HTTP status 204. We want this because we are relying on the SOPE access control manager to grant access to this method. This requires a fine-tuned access control in SOGo itself... * UI/Contacts/UIxContactsUserRightsEditor.m ([-userCanReadObjects]) ([-setUserCanReadObjects:userCanReadObjects]): removed methods. * UI/MailerUI/UIxMailUserRightsEditor.m ([UIxMailUserRightsEditor -updateRights]): no longer take the "ObjectReader" role into account. ([-userCanReadMails], [-setUserCanReadMails:userCanReadMails]): removed methods. * SoObjects/Appointments/SOGoFreeBusyObject.m ([SOGoFreeBusyObject -fetchFreeBusyInfosFrom:_startDateto:_endDate]): specify context when looking up the Calendar folder. 2007-11-26 Wolfgang Sourdeau * UI/Scheduler/UIxTaskEditor.m ([UIxTaskEditor -todo]): same as below. * UI/Scheduler/UIxAppointmentEditor.m ([UIxAppointmentEditor -event]): create the event if it doesn't exist. * UI/PreferencesUI/UIxPreferences.m ([UIxPreferences -userHasCalendarAccess]) ([UIxPreferences -userHasMailAccess]): same as below, for displaying preference tabs. * UI/Common/UIxPageFrame.m ([UIxPageFrame -userHasCalendarAccess]): new accessor for the link banner. ([UIxPageFrame -userHasMailAccess]): same as above. * SoObjects/SOGo/SOGoUserFolder.m ([SOGoUserFolder -toManyRelationshipKeys]): do not report the path to modules to which the user has no access. No longer cache this information statically, the array will be generated at each call. ([SOGoUserFolder -lookupName:_keyinContext:_ctxacquire:_flag]): ignore the path to modules to which the user has no access. * SoObjects/SOGo/SOGoUser.m ([SOGoUser -canAccessModule:module]): new method that returns whether the user has access to the specified module. * SoObjects/SOGo/LDAPSource.m ([LDAPSource -initFromUDSource:udSource]): take a new parameter named 'ModulesContraints' that defines a set of constraints for accessing specified named modules. This is an optout, meaning the modules will be present unless a constraint is specified. * SoObjects/Appointments/SOGoAppointmentFolder.m ([SOGoAppointmentFolder -roleForComponentsWithAccessClass:accessClassforUser:uid]): cache acl to reduce method calls. ([SOGoAppointmentFolder -fetchFields:_fieldsfromFolder:_folderfrom:_startDateto:_endDatetitle:titlecomponent:_component]): if the user is not the current user, we strip the useless info from the meta data. * UI/Common/WODirectAction+SOGo.m ([WODirectAction -labelForKey:key]): new category method. * UI/Scheduler/UIxAppointmentEditor.m ([UIxAppointmentEditor -event]): same as below. * UI/Scheduler/UIxTaskEditor.m ([UIxTaskEditor -todo]): request a secured version of the component. * UI/MailPartViewers/UIxMailPartViewer.m ([-fallbackStringEncoding]): removed method. ([UIxMailPartViewer -flatContentAsString]): we no longer use [self fallbackStringEncoding]. Instead we directly specify NSISOLatin1StringEncoding if UTF-8 has failed. * UI/MailPartViewers/UIxMailPartICalViewer.m ([-fallbackStringEncoding]): removed method. 2007-11-25 Ludovic Marcotte * SoObjects/Mailer/SOGoMailForward.m Use [sourceMail decodedSubject] instead of [sourceMail subject] Signature fix in -signature - see the comment for SOGoMailReply. * SoObjects/Mailer/SOGoMailObject.m Improved -stringFromData: to try UTF-8 then fallback to Latin1 * SoObjects/Mailer/SOGoMailReply.m Modified -messageBody to strip the signature from the reply. Also modified -signature to add "-- \n%@" instead of the broken ""--\r\n%@" pattern. * UI/MailPartViewers/UIxMailPartAlternativeViewer.m We now favor text/calendar parts over text/html and text/plain parts when viewing a multipart/alternative mail. This allows us to show the email invitations coming from Microsoft Outlook. * UI/MailerUI/UIxMailAccountActions.m Signature fix in -composeAction - see the comment for SOGoMailReply. * UI/MailPartViewers/UIxMailPartViewer.m Modified -flatContentAsString to use UTF-8 as the default fallback encoding for 8-bit content. * SoObjects/Mailer/SOGoDraftObject.m Modified _fillInReplyAddresses:replyToAll:envelope: so that if there's no recipient, we add at least ourself to the list. Fixed a mem leak in the same method. 2007-11-22 Wolfgang Sourdeau * UI/MailPartViewers/UIxMailRenderingContext.m ([UIxMailRenderingContext -viewerForBodyInfo:_info]): same as below. * SoObjects/Mailer/SOGoMailObject.m ([SOGoMailObject -plainTextContentFetchKeys]): same as below. * SoObjects/Mailer/SOGoMailBodyPart.m ([SOGoMailBodyPart +bodyPartClassForMimeType:mimeTypeinContext:_ctx]): accept the application/ics type from Google Calendar. * SoObjects/SOGo/NSCalendarDate+SOGo.m ([NSCalendarDate +distantFuture]): rewrote method to return an object that is compatible with NSCalendarDate, unlike the implementation in GNUstep. ([NSCalendarDate +distantPast]): same as above. 2007-11-21 Wolfgang Sourdeau * UI/MailPartViewers/UIxMailPartHTMLViewer.m: fixed infinite loop when charset is us-ascii, match it to ascii rather than none. * SoObjects/Appointments/SOGoAppointmentFolder.m ([SOGoAppointmentFolder -fetchFields:_fieldsfromFolder:_folderfrom:_startDateto:_endDatetitle:titlecomponent:_component]): added search on the c_title column too. * UI/Scheduler/UIxCalListingActions.m ([UIxCalListingActions -eventsListAction]): take the "search" url parameter into account. ([UIxCalListingActions -eventsListAction]): fetch events matching the title filter too. * UI/MainUI/SOGoRootPage.m ([SOGoRootPage -connectAction]): the user infos are now posted as "application/x-www-form-urlencoded". So we have to have like a form has been posted. 2007-11-21 Francis Lachapelle * UI/Scheduler/UIxComponentEditor.m ([UIxComponentEditor -calendarList]): also returns the calendar of the current event. This is required so the proper calender is selected when you view an event to which you don't have write access. * UI/Common/UIxAclEditor.m ([UIxAclEditor -currentUserIsOwner]): also returns true for super users. 2007-11-21 Wolfgang Sourdeau * SoObjects/Mailer/SOGoMailObject.m ([SOGoMailObject -lookupImap4BodyPartKey:inContext:]): return a correct body part when "0" is requested, taking its mime-type into account. * UI/MailPartViewers/UIxMailRenderingContext.m ([UIxMailRenderingContext -flatContentForPartPath:_partPath]): return content for part "0", which would be the message body. 2007-11-20 Wolfgang Sourdeau * UI/MailPartViewers/UIxMailPartHTMLViewer.m ([_UIxHTMLMailContentHandler -setContentEncoding:newContentEncoding]): new method that specifies an xml charset to return to the parser. ([UIxMailPartHTMLViewer -flatContentAsString]): specifies the charset to the content handler before parsing. * SoObjects/Appointments/SOGoAppointmentObject.m: don't take an empty c_name as a valid response when looking up an event. Create one in that case instead. 2007-11-19 Wolfgang Sourdeau * UI/PreferencesUI/UIxPreferences.m ([UIxPreferences -signature]): returns the signature for the default identity of the default accouunt... ([UIxPreferences -setSignature:newSignature]): accessor that sets the default signature. * UI/MailerUI/UIxMailAccountActions.m ([UIxMailAccountActions -composeAction]): append the message signature to the new draft. * SoObjects/Mailer/SOGoMailReply.m ([SOGoMailReply -signature]): same as above. * SoObjects/Mailer/SOGoMailForward.m ([SOGoMailForward -signature]): new method that takes the user's signature and put it at the end of the message, if exists. * UI/Common/UIxPageFrame.m ([UIxPageFrame -isSuperUser]): new accessor that forwards the call to the active user. * SoObjects/SOGo/SOGoUser.m ([SOGoUser -signature]): returns the user default signature. ([SOGoUser -isSuperUser]): declares whether the user is listed among the super users. * UI/Scheduler/UIxComponentEditor.m ([UIxComponentEditor -setComponent:newComponent]): retain the component object. ([UIxComponentEditor -organizerIdentity]): new accessor method to handle list of possible organizers. * UI/Scheduler/UIxAppointmentEditor.m ([UIxAppointmentEditor -event]): retain the returned event object. * SoObjects/Appointments/SOGoAppointmentObject.m ([SOGoAppointmentObject -saveComponent:newEvent]): reset the organizer only if there are no attendees AND the owner of the component is not the organizer him-/herself. * UI/Scheduler/UIxComponentEditor.m ([UIxComponentEditor -toolbar]): rewrote in a way that ensures that each case is handled properly. * SoObjects/SOGo/SOGoUser.m ([SOGoUser -isEqual:otherUser]): new override method. * UI/Scheduler/UIxTaskEditor.m ([-acceptAction]) ([-declineAction]): commented out unused methods. * UI/MailPartViewers/UIxMailPartICalActions.m ([UIxMailPartICalActions -deleteFromCalendarAction]): actually delete the found object. 2007-11-18 Ludovic Marcotte * SoObjects/Mailer/SOGoMailBodyPart.m SoObjects/Mailer/SOGoMailObject.m UI/MailPartViewers/UIxMailPartViewer.m Added support of messages containing non-textual content and no parts. * UI/MailerUI/UIxMailView.m SoObjects/Mailer/SOGoMailObject.m UI/Templates/MailerUI/UIxMailView.wox Added support for the Reply-To header upon message display. 2007-11-18 Wolfgang Sourdeau * UI/Scheduler/UIxTaskEditor.m ([UIxTaskEditor -saveAction]): invoke saveComponent:. * UI/Scheduler/UIxComponentEditor.m ([UIxComponentEditor -hasOrganizer]) ([UIxComponentEditor -organizerName]): new template accessor related to displaying the event's organizer. ([-containsConflict:_component]): removed method. ([UIxComponentEditor -takeValuesFromRequest:_rqinContext:_ctx]): set RSVP to "TRUE" on each attendee. * UI/Scheduler/UIxAppointmentEditor.m ([UIxAppointmentEditor -saveAction]): invoke saveComponent:. * UI/MailPartViewers/UIxMailPartICalViewer.m ([UIxMailPartICalViewer -isLoggedInUserTheOrganizer]): make use of the -userIsOrganizer: category method. ([-isLoggedInUserAnAttendee]): make use of -userIsParticipant:. ([UIxMailPartICalViewer -hasSenderStatusChanged]): new template accessor that determines whether the "Update" button should be displayed. * UI/MailPartViewers/UIxMailPartICalActions.m ([UIxMailPartICalActions -deleteFromCalendarAction]): implemented action. ([UIxMailPartICalActions -updateUserStatusAction]): implemented action. * UI/Common/UIxPageFrame.m ([UIxPageFrame -setCssFiles:newCSSFiles]): new accessor that enables the sub-templates to specify extra CSS files to load. * SoObjects/SOGo/SOGoUser.m ([SOGoUser -homeFolderInContext:context]): cache the home folder of the user object instead of the current user. * SoObjects/SOGo/SOGoGCSFolder.m ([SOGoGCSFolder -deleteEntriesWithIds:ids]): invokes the "prepareDelete" optional method if the child object implements it. * SoObjects/SOGo/SOGoContentObject.m ([-setContentString:]) removed method. * SoObjects/SOGo/LDAPSource.m ([LDAPSource -setBaseDN:newBaseDNIDField:newIDFieldCNField:newCNFieldUIDField:newUIDFieldmailFields:newMailFieldsandBindFields:newBindFields]): take a new "mailFields" parameter defining an array of fields where to look at when searching the user's emails. It defaults to the standard "mail" LDAP field. * SoObjects/Appointments/SOGoAptMailICalReply.[hm]: new SoComponent implementing a template for ITIP replies. * SoObjects/Appointments/iCalPerson+SOGo.m ([iCalPerson -mailAddress]): new method that returns a properly formatted email address for the specified person entry. ([iCalPerson -uid]): new method that tests whether the user is known to the system and if so, returns its user id. * SoObjects/Appointments/iCalPerson+SOGo.[hm]: new category module. * SoObjects/Appointments/iCalEventChanges+SOGo.m ([iCalEventChanges -sequenceShouldBeIncreased]): determine whether the changes involved need a sequence inscrease, based on the RFC2446 (ITIP). * SoObjects/Appointments/iCalEventChanges+SOGo.[hm]: new category module. * SoObjects/Appointments/iCalEvent+SOGo.m ([iCalEvent -isStillRelevant]): new overriden method determining the relevance of the current event based on its end date. * SoObjects/Appointments/iCalEvent+SOGo.[hm]: new category module. * SoObjects/Appointments/iCalEntityObject+SOGo.m ([iCalEntityObject -attendeeUIDs]): new category methods that returns an array containing the uids of the system-know attendees. ([iCalEntityObject -isStillRelevant]): new template method. ([iCalEntityObject -itipEntryWithMethod:method]): clone the current entry calendar with the specified ITIP method. ([iCalEntityObject -attendeesWithoutUser:user]): returns an array of attendees while making sure the specified user is not listed. * SoObjects/Appointments/SOGoCalendarComponent.m ([SOGoCalendarComponent -calendar:create:secure]): new name for -calendar:. Added a "secure" parameter that specifies whether a stripped calendar instance is needed or not. Also, we no longer cache the content to simplify handling of new data. ([SOGoCalendarComponent -component:create:secure]): same as above. ([SOGoCalendarComponent -sendEMailUsingTemplateNamed:_pageNameforOldObject:_oldObjectandNewObject:_newObjecttoAttendees:_attendees]): test whether the component is "still relevant" before sending an email... ([SOGoCalendarComponent -sendResponseToOrganizer]): new method for sending ITIP replies. ([SOGoCalendarComponent -getUIDsForICalPerson:iCalPerson]): removed method. Replaced with -[iCalPerson uid] category method. * SoObjects/Appointments/SOGoAppointmentObject.[hm]: rewrote class. No longer override saveContentString:, saveContentString:baseSequence:, .... Implemented the saveComponent: and the prepareDelete methods instead. Those methods are called only from the web methods. This avoids the risks related to email sending and changes propagation. * UI/Common/UIxTabItem.m: removed useless class module. * UI/Common/UIxTabView.[hm]: removed useless class module. * UI/Common/UIxPrintPageFrame.m: removed useless class module. * UI/Common/UIxAppNavView.m: removed useless class module. 2007-11-16 Ludovic Marcotte * SoObjects/Mailer/SOGoMailBaseObject.m Fixed typo. * SoObjects/Mailer/SOGoMailBodyPart.m We also grok image/jpeg and return the SOGoMailBodyPart for attachments fetching. * SoObjects/Mailer/SOGoMailObject+Draft.m Prevent a crash in case body decoding failed during a reply. * SoObjects/Mailer/SOGoMailObject.m Improved body decoding during a reply to also try latin1 as an encoding. * UI/MailPartViewers/UIxMailRenderingContext.m Greatly improved the display mechanisms for emails. Also properly consider the content disposition for most content types. * UI/MailerUI/UIxMailToSelection.m Removed worthless code. * UI/WebServerResources/MailerUI.css CSS fix for table views. 2007-11-15 Ludovic Marcotte * UI/WebServerResources/MailerUI.js We now check for empty selection and warn the user about it when deleting messages * SoObjects/Mailer/SOGoDraftObject.m Correctly check for the presence of a subject before attempting to forward a message from the Drafts folder. * SoObjects/Mailer/SOGoMailObject+Draft.m We no longer use "[Fwd: ]" but simply "Fwd:" when forwarding email messages. * SoObjects/SOGo/SOGoUser.m Modified the default forwarding format to be inline instead of "attachment". * SoObjects/Mailer/SOGoDraftObject.m We now create and use a NGMimeContentDispositionHeaderField in order to avoid encoding the whole Content-Disposition header in case a non-ASCII char is present! 2007-11-13 Wolfgang Sourdeau * SoObjects/SOGo/iCalEntityObject+Utilities.m ([iCalEntityObject -findParticipant:user]): new method based on the one removed from SOGoCalendarComponent below. * SoObjects/SOGo/iCalEntityObject+Utilities.[hm]: new category module for iCalEntityObject. * SoObjects/Appointments/SOGoCalendarComponent.m ([-findParticipant:user]): removed method. * SoObjects/SOGo/SOGoContentObject.m ([SOGoContentObject -setContentString:newContent]): new accessor method. ([SOGoContentObject -saveContentString:newContentbaseVersion:newBaseVersion]): invoke -[self setContentString:]. * UI/MailPartViewers/UIxMailPartICalViewer.m ([UIxMailPartICalViewer -authorativeEvent]): returns the most up-to-date event. ([-isLoggedInUserTheOrganizer]): make use of -[SOGoUser hasEmail:]. * UI/MailPartViewers/UIxMailPartTextViewer.m ([NSString -stringByConvertingCRLNToHTML]): fixed crashes due to overflows in temporary buffer we are handing. * UI/Scheduler/UIxComponentEditor.m ([UIxComponentEditor -setComponent:newComponent]): check that newComponent is non-nil before replacing the default values. ([UIxComponentEditor -calendarList]): privacy is already an ivar. We don't need to refetch it. 2007-11-12 Wolfgang Sourdeau * SoObjects/Mailer/SOGoDraftObject.m ([SOGoDraftObject -fetchMailForReplying:sourceMailtoAll:toAll]): remove the current user from the list of recipients and make sure no other address is counted twice. * UI/MailPartViewers/UIxMailPartTextViewer.m ([NSString -stringByConvertingCRLNToHTML]): build the returned NSString without the ending \0. 2007-11-09 Wolfgang Sourdeau * UI/MailPartViewers/UIxMailPartICalViewer.m ([UIxMailPartICalViewer -acceptLink]) ([UIxMailPartICalViewer -declineLink]) ([UIxMailPartICalViewer -tentativeLink]): removed useless methods. * UI/MailPartViewers/UIxMailPartICalAction.m ([UIxMailPartICalAction -addToCalendarAction]) ([UIxMailPartICalAction -deleteFromCalendarAction]): new stub methods. * SoObjects/Mailer/SOGoMailObject.m ([SOGoMailObject -lookupImap4BodyPartKey:]): make use of the new method below. * SoObjects/Mailer/SOGoMailBodyPart.m ([SOGoMailBodyPart +bodyPartClassForMimeType:mimeTypeinContext:_ctx]): new method that returns an appropriate Class depending on a given mime type. * UI/SOGoUI/UIxComponent.m ([UIxComponent -canCreateOrModify]): new boolean accessor that determines whether someone can create (i.e. modify a new entry) or modify an existing entry. * SoObjects/SOGo/SOGoObject.m ([SOGoObject -lookupName:lookupNameinContext:localContextacquire:acquire]): overriden method to bind looked up keys to So methods but by avoiding a call to toOneRelationshipKeys. This will be the top method of the chain, meant to override SoObject's behaviour. * SoObjects/Contacts/SOGoContactLDAPFolder.m ([SOGoContactLDAPFolder -lookupName:objectNameinContext:lookupContextacquire:acquire]): removed hack to prevent [super lookupName...] to read the entire LDAP directory when looking up a record. 2007-11-08 Wolfgang Sourdeau * SoObjects/SOGo/SOGoGCSFolder.m ([SOGoGCSFolder +folderWithSubscriptionReference:referenceinContainer:aContainer]): fixed a leak. * UI/MailPartViewers/UIxMailPartHTMLViewer.m ([UIxMailPartHTMLViewer -_attachmentIds]): the reference was one character too short, which cause the images not to be displayed sometimes and crashes to happen whenever the references on a message were wrong (due to bugs in SOPE). * UI/MailerUI/UIxMailListView.m ([UIxMailListView -hasMessageAttachment]): consider an attachment any content that has a non-nil disposition. * SoObjects/SOGo/SOGoParentFolder.m ([SOGoParentFolder -newFolderWithName:nameandNameInContainer:newNameInContainer]): fixed method to make use of the parameters instead of the useless remains that weren't even initialized. * SoObjects/Appointments/SOGoAppointmentObject.m ([SOGoAppointmentObject -saveContentString:_iCalbaseSequence:_v]): don't propagate the event among the attendees if this is not an "so" request. ([SOGoAppointmentObject -deleteWithBaseSequence:]): same as above. * Main/SOGo.m ([SOGo -authenticatorInContext:context]): make use of the new category method below. * SoObjects/SOGo/WORequest+SOGo.m ([WORequest -handledByDefaultHandler]): new method that returns whether this is an "so" or alike request. * SoObjects/SOGo/WORequest+SOGo.[hm]: new category module. * SoObjects/SOGo/SOGoParentFolder.m ([SOGoParentFolder -newFolderWithName:nameandNameInContainer:newNameInContainer]): write the new folder's name in the folder cache. * UI/Scheduler/UIxCalendarSelector.m ([UIxCalendarSelector -calendars]): same as below. * UI/Contacts/UIxContactsListViewContainer.m ([UIxContactsListViewContainer -currentContactFolderName]): translate the display name if its the default one. * SoObjects/Appointments/SOGoAppointmentFolder.m ([SOGoAppointmentFolder -create]): overriden method that invokes its ancestor and then activate itself within the user settings. * SoObjects/SOGo/SOGoParentFolder.m ([SOGoParentFolder -appendPersonalSources]): when the user is the owner of the current folder, we create the "personal" folder if it doesn't exist by invoking "create". * SoObjects/SOGo/AgenorUserDefaults.m ([AgenorUserDefaults -primaryFetchProfile]): when no row is returned, we initialize "values" to a new dictionary. This solves a bug where the defaults would not be initialized properly. 2007-11-07 Wolfgang Sourdeau * SoObjects/SOGo/SOGoGCSFolder.m ([-compare:otherFolder]): method moved into the SOGoFolder class. * SoObjects/Appointments/SOGoAppointmentObject.m ([SOGoAppointmentObject -saveContentString:_iCalinUIDs:_uids]): simplified method by directly building a similar appointment object with the current folder as container. * SoObjects/Contacts/SOGoContactLDAPFolder.m ([SOGoContactLDAPFolder -appendObject:objectwithBaseURL:baseURLtoREPORTResponse:r]): take the content of an object returned by lookupName:inContext:acquire: instead of the dictionary passed as parameter since it represents a flattened entry return by lookupContactsWithFilter... * SoObjects/Contacts/SOGoFolder+CardDAV.m: NSObject+CardDAV category renamed to SOGoFolder+CardDAV. * SoObjects/SOGo/SOGoParentFolder.m: no longer a subclass of SOGoObject, but of SOGoFolder instead. * SoObjects/SOGo/SOGoUserFolder.m: no longer a subclass of SOGoGCSFolder, but of SOGoFolder instead. * SoObjects/Appointments/SOGoAppointmentFolder.m ([SOGoAppointmentFolder -lookupCalendarFolderForUID:uid]): fixed to take the new SOGoParentFolder class into account. Also, create the personal folder if it doesn't exist. * SoObjects/SOGo/SOGoFolder.[hm]: new class module implementing the parent of all SOGo containers. * SoObjects/SOGo/SOGoGCSFolder.[hm]: SOGoFolder class renamed to SOGoGCSFolder. 2007-11-06 Wolfgang Sourdeau * UI/MailerUI/UIxMailToSelection.m ([UIxMailToSelection -getAddressesFromFormValues:_dict]): take NSString and NSArray values. Ignore addresses with a length of 0. * SoObjects/SOGo/SOGoUser.m ([SOGoUser -mailAccounts]): we now fetch the accounts from the user defaults and create default values if missing. 2007-11-05 Wolfgang Sourdeau * UI/MailPartViewers/UIxMailPartTextViewer.m ([UIxMailPartTextViewer -flatContentAsString]): re-added conversion of line-break to sequences of HTML "BR", with a fast algorithm in C. * UI/MailPartViewers/UIxMailPartViewer.m ([UIxMailPartViewer -flatContentAsString]): simplified method now that we know -[NSString stringWithData:usingEncodingNamed:] has a more robust implementation. * UI/MailerUI/UIxMailListView.m ([UIxMailListView -showToAddress]): the answer is cached. * UI/Common/UIxObjectActions.m ([UIxObjectActions +initialize]): read "SOGoACLsSendEMailNotifications" from the user defaults to determiner whether to send an email when a user is added or removed from an object's acl. * SoObjects/Mailer/SOGoMailObject+Draft.m ([SOGoMailObject -contentForEditing]): make sure the htmlContent flag is set to NO when we select the textual part. Also we select only the relevant keys for fetching. * UI/MailerUI/WOContext+UIxMailer.m ([-mailSubjectFormatter]): removed method. * UI/MailerUI/UIxMailView.m ([UIxMailView -messageSubject]): new method replacing -objectTitle, written like the ones below. * UI/MailerUI/UIxMailListView.m ([UIxMailListView -messageSubject]): rewrote method to act the one below. * UI/MailPartViewers/UIxMailPartMessageViewer.m ([UIxMailPartMessageViewer -messageSubject]): new method that returns the decoded mail subject or "Untitled" if the subject is empty. * SoObjects/Mailer/SOGoMailObject.m ([SOGoMailObject -decodedSubject]): new method that invoke -decodedSubject from the NSString and NSData class, depending on the identity of the subject obtained from the envelope. * SoObjects/Mailer/SOGoMailObject+Draft.m ([SOGoMailObject -subjectForReply]): take the value of -[SOGoMail decodedSubject] instead of the subject of the envelope. ([SOGoMailObject -filenameForForward]): same as above. ([SOGoMailObject -subjectForForward]): same as above. * SoObjects/Mailer/NSString+Mail.m ([NSString -decodedSubject]): same as below for NSString. * SoObjects/Mailer/NSData+Mail.m ([NSData -decodedSubject]): new method that decodes the subject of a mail taken as an NSData instance. Handling the exceptions and the badly formatted headers. * UI/MailerUI/UIxSubjectFormatter.[hm]: dropped class module. 2007-11-04 Wolfgang Sourdeau * SoObjects/SOGo/SOGoFolder.m ([SOGoFolder -deleteEntriesWithIds:ids]): make sure the objects returned by lookupName:... are not instances of NSException. 2007-11-03 Ludovic Marcotte * UI/Scheduler/UIxAppointmentEditor.m Fixed monthly recurrences support. 2007-11-01 Wolfgang Sourdeau * SoObjects/Appointments/SOGoAppointmentObject.m ([SOGoAppointmentObject -deleteWithBaseSequence:]): an email was sent when modifying an event, when the event was considered relevant. The same thing is now implemented for event deletion. * SoObjects/SOGo/AgenorUserDefaults.m ([AgenorUserDefaults -primaryFetchProfile]): make sure that the deserialized "values" is an instance of NSMutableDictionary, otherwise we override it with one. * SoObjects/Mailer/SOGoMailObject+Draft.m ([SOGoMailObject -contentForReply]): make use of the SOGoMailReply WO page. * SoObjects/Mailer/SOGoMailReply.[hm]: new class module copied from SOGoMailForward to handle mail replies instead. Only three methods remaining: date, from and messageBody. The latter is quoted properly. * SoObjects/Mailer/SOGoDraftObject.m ([SOGoDraftObject -fetchMailForForwarding:sourceMail]): fetch attachments for forwarded messages. * UI/MailerUI/UIxMailListView.m ([UIxMailListView -hasMessageAttachment]): initialize hasAttachment with "NO" to avoid false positives. * OGoContentStore/OCSiCalFieldExtractor.m ([OCSiCalFieldExtractor -extractQuickFieldsFromEvent:_event]) ([OCSiCalFieldExtractor -extractQuickFieldsFromTodo:_task]): set title to an empty string where the event/task summary is null. * SoObjects/Mailer/SOGoDraftObject.m ([SOGoDraftObject -setHeaders:newHeaders]): make sure there is a message id in the headers dictionary, if not, generate one. ([SOGoDraftObject -fetchMailForEditing:sourceMail]): retrieve the message id from the existing draft. ([SOGoDraftObject -mimeHeaderMapWithHeaders:_headers]): store the message id in the header map. * UI/MailerUI/UIxMailFolderActions.m ([UIxMailFolderActions -deleteFolderAction]): no longer prefix the target folder with "folder". * UI/MailerUI/UIxMailAccountActions.m ([UIxMailAccountActions -listMailboxesAction]): base the folder type on the folder traversal path. * SoObjects/Mailer/SOGoMailFolder.m ([SOGoMailFolder -lookupName:_keyinContext:acquire:_acquire]): compare the full traversal to the potential looked up folder with the special folder names and return an object with the appropriate SOGoMailFolder subclass. * SoObjects/Mailer/SOGoMailBaseObject.m ([SOGoMailBaseObject -traversalFromMailAccount]): don't prepend the whole string with "/". * SoObjects/Mailer/SOGoMailAccount.m ([-lookupSentFolder:_keyinContext:_ctx]) ([-lookupDraftsFolder:_keyinContext:_ctx]) ([-lookupTrashFolder:_keyinContext:_ctx]) ([-lookupFiltersFolder:_key:_ctx]): removed methods. ([SOGoMailAccount -inboxFolderNameInContext:]) ([SOGoMailAccount -draftsFolderNameInContext:_ctx]) ([SOGoMailAccount -sentFolderNameInContext:]) ([SOGoMailAccount -trashFolderNameInContext:]): no longer prefixes the resulting name with "prefix" since we might return a nested foldername. ([SOGoMailAccount -allFolderPaths]): prefixes all special folder names with "/". Sorts the resulting folder list with localizedCaseInsensitiveCompare: instead of caseInsensitiveCompare:. No longer use the -[lookupXXX] methods that were removed, instead, we choose the appropriate class depending on the folder name. And since we are in SOGoMailAccount, we don't have to compute a traversal path to match the key with the foldernames. ([SOGoMailAccount -folderWithTraversal:traversalandClassName:className]): new method that returns an instance of the specified SOGoMailFolder subclass, based on the traversal path passed as parameter. ([SOGoMailAccount -inboxFolderInContext:_ctx]) ([SOGoMailAccount -draftsFolderInContext:_ctx]) ([-sentFolderInContext:_ctx]) ([SOGoMailAccount -trashFolderInContext:_ctx]): invoke the new -folderWithTraversal:andClassName: method described above. * SoObjects/SOGo/AgenorUserDefaults.m ([AgenorUserDefaults -primaryFetchProfile]): make use of -[NSPropertyListSerialization propertyListFromData:mutabilityOption:format:errorDescription:] to deserialize the plist. Removed variant for libFoundation since it should support the above. ([AgenorUserDefaults -generateSQLForInsert]) ([AgenorUserDefaults -generateSQLForUpdate]): make use of -[NSPropertyListSerialization dataFromPropertyList:format:errorDescription:] to serialize the plist. Removed variant for libFoundation since it should support the above. Escape the backslashes from the resulting string. 2007-10-31 Wolfgang Sourdeau * SoObjects/Mailer/SOGoMailFolder.[hm]: added a new subclass of SOGoMailFolder: SOGoMailSpecialFolder. * SoObjects/Mailer/SOGoMailAccount.m ([SOGoMailAccount -traversalFromMailAccount]): overridden method that returns the initialized mutable string. ([SOGoMailAccount -allFolderPaths]): take the special folder paths with -traversalFromMailAccount and reposition them at the beginning of the list. By creating the special folders during that request, we also make sure that the folder exists thanks to the new initialisation method of the new "SOGoSpecialMailFolder" class. ([SOGoMailAccount -lookupSentFolder:_keyinContext:_ctx]): new method. ([SOGoMailAccount -lookupTrashFolder:_keyinContext:_ctx]): new method. ([SOGoMailAccount -lookupName:_keyinContext:acquire:_flag]): no longer use lookupImap4Folder. ([SOGoMailAccount -lookupImap4Folder:_keyinContext:_ctx]): removed method. * SoObjects/Mailer/SOGoMailBaseObject.m ([SOGoMailBaseObject -traversalFromMailAccount]): new method that returns the full IMAP4 path to the object. * SoObjects/SOGo/SOGoUser.m ([SOGoUser +initialize]): retain "superUsernames" after fetching it from the ud. 2007-10-30 Wolfgang Sourdeau * UI/Scheduler/UIxCalListingActions.m ([UIxCalListingActions -eventsListAction]): substitude the start and end date with their UTC counterpart, taking into account the offset from UTC related to those dates instead of the current one. This renders -[UIxCalMainView -userUTCOffset] obsolete because the computings that occured in javascript are now done server-side. * UI/Scheduler/UIxCalMainView.m ([UIxCalMainView -userUTCOffset]): removed obsolete method. * SoObjects/Mailer/NSString+Mail.m ([NSString -htmlToText]): new method converting html content to plain text. * SoObjects/Mailer/NSString+Mail.[hm]: new category module enhancing NSString with utility methods pertaining to mail handling. * SoObjects/Mailer/SOGoMailObject.m ([-shouldFetchPartOfType:_typesubtype:_subtype]): removed obsolete method. ([SOGoMailObject -addRequiredKeysOfStructure:infopath:ptoArray:keysacceptedTypes:types]): modified method to be always recursive and to take an array of the accepted mime-types as parameter. The returned array now contains the mime-type as well as the part keys. * SoObjects/Mailer/SOGoMailObject+Draft.m ([SOGoMailObject -contentForEditingOnParts:_prtskeys:_k]): removed obsolete method. ([SOGoMailObject -contentForEditing]): rewrote method to take into account the first text/plain part or the first text/html part converted to text/plain with our new -[NSString htmlToText] category method. * UI/MailerUI/UIxMailActions.m ([-replyToAllAction]): invoke "replyToAll:" with YES as parameter instead of NO. 2007-10-29 Wolfgang Sourdeau * SoObjects/Mailer/SOGoMailBodyPart.m ([SOGoMailBodyPart -davContentType]): ignore any possible parameter taken from the mime-info of the body part. * UI/MailerUI/UIxMailListView.m ([UIxMailListView -lastFirstMessageNumber]): new accessor that returns the first message number of the last series of messages. ([UIxMailListView -fetchKeys]): request the bodystructure for each listed message. ([UIxMailListView -hasMessageAttachment]): extract the attachment information from the message bodystructure. 2007-10-26 Wolfgang Sourdeau * SoObjects/Mailer/SOGoMailBodyPart.m ([SOGoMailBodyPart -GETAction:]): use the "application/octet-stream" mime type for elements of type "application/x-xpinstall" to avoid confusing Firefox. * UI/PreferencesUI/UIxPreferences.m ([UIxPreferences -messageCheckList]) ([UIxPreferences -itemMessageCheckText]) ([UIxPreferences -userMessageCheck]) ([UIxPreferences -setUserMessageCheck:newMessageCheck]): new methods for handling the retrieval of new messages automatically. * SoObjects/SOGo/SOGoUser.m ([SOGoUser -messageCheck]): new method that returns the interval of time between automatic message retrievals. * UI/MailerUI/UIxMailListView.m ([UIxMailListView -defaultAction]): now expunges the last folder marked for expunge. * SoObjects/Mailer/SOGoMailObject.m ([SOGoMailObject -trashInContext:_ctx]): now marks the container folder for expunge. * SoObjects/Mailer/SOGoMailFolder.m ([SOGoMailFolder -markForExpunge]): new method that marks the folder for the next automatic expunge operation in the user settings. ([SOGoMailFolder -expungeLastMarkedFolder]): new methods that takes the last folder marked for expunge, expunges it and removes it from the user settings, if it exists. 2007-10-25 Wolfgang Sourdeau * UI/MailerUI/UIxMailListView.m ([UIxMailListView -messageSubjectCellStyleClass]): added support for replied, forwarded, forwarded and replied mails. * SoObjects/Mailer/NSData+Mail.m ([NSData -bodyDataFromEncoding:encoding]): new utility method that decodes the NSData instance properly depending on the encoding string passed as parameter. * SoObjects/Mailer/SOGoMailObject+Draft.m ([SOGoMailObject -fetchFileAttachmentKeys]): fetch the attachment encoding as well. * SoObjects/Mailer/SOGoMailObject.m ([SOGoMailObject -stringForData:_datapartInfo:_info]): simplified by invoking -bodyDataFromEncoding: from our new NSData category methods. * SoObjects/Mailer/SOGoDraftObject.m ([SOGoDraftObject -fetchMailForEditing:sourceMail]): work-around a bug in SOPE-mime where only the body part of the first of the keys fetched was returned. Also decodes the body parts properly following their encoding. * SoObjects/Mailer/NSData+Mail.[hm]: new extension module that extends the NSData class with utility methods useful for handling mail. 2007-10-23 Wolfgang Sourdeau * SoObjects/SOGo/NSArray+Utilities.m ([NSArray -stringsWithFormat:format]): replace instances of NSNull with empty strings. * SoObjects/SOGo/NSDictionary+Utilities.m ([NSDictionary -keysWithFormat:keyFormat]): replace instances of NSNull with empty strings. * SoObjects/Contacts/SOGoContactLDAPFolder.m: if "displayName" is empty, use "c_cn" instead. * SoObjects/Mailer/SOGoMailAccount.m ([SOGoMailAccount -inboxFolderInContext:_ctx]) ([SOGoMailAccount -draftsFolderInContext:_ctx]) ([SOGoMailAccount -sentFolderInContext:_ctx]): no longer make use of the "SOGoSpecialFoldersInRoot" user defaults. The folders will no always be specified from the root instead of sometimes from the INBOX. 2007-10-22 Wolfgang Sourdeau * UI/Common/UIxPageFrame.m ([UIxPageFrame -commonLocalizableStrings]) ([UIxPageFrame -productLocalizableStrings]): invoke the new +[SOGoUser language] method if the user is nil. * SoObjects/SOGo/SOGoUser.m ([SOGoUser +language]): new method that returns any generically-found language. ([SoUser -language]): modified to call the above. ([SOGoUser -language]): modified to call the above if the user language has a null length. * SoObjects/Contacts/SOGoContactLDIFEntry.m ([SOGoContactLDIFEntry -davEntityTag]): modified to return the "hash" of the vCard string. * UI/MailerUI/UIxMailActions.m ([UIxMailActions -removeAllLabelsAction]): new method that removes all label flags from the associated message. ([UIxMailActions -addLabel1Action] [UIxMailActions -addLabel2Action] [UIxMailActions -addLabel3Action [UIxMailActions -addLabel4Action] [UIxMailActions -addLabel5Action]): new methods that adds label flags to the associated message. ([UIxMailActions -removeLabel1Action] [UIxMailActions -removeLabel2Action] [UIxMailActions -removeLabel3Action [UIxMailActions -removeLabel4Action] [UIxMailActions -removeLabel5Action]): new methods that removes label flags from the associated message. * UI/MailerUI/UIxMailListView.m ([UIxMailListView -msgLabels]): new accessor that returns the labels associated with the message. * SoObjects/Mailer/SOGoMailFolder.m ([SOGoMailFolder -allFolderPaths]): new method that returns all the paths of all the subfolders of the folder object. ([SOGoMailFolder -allFolderURLs]): new method replacing subfoldersURL. * SoObjects/SOGo/SOGoContentObject.m ([SOGoContentObject -aclsForUser:uid]): object inherits the 'SOGoRole_ObjectEditor' role from its parent folder. 2007-10-19 Francis Lachapelle * SoObjects/SOGo/SOGoUser.m ([SOGoUser -rolesForObject:objectinContext:context]): allow multiple super usernames to be defined. The user default SOGoSuperUsername is renamed SOGoSuperUsernames and must be an array. 2007-10-18 Wolfgang Sourdeau * SoObjects/SOGo/SOGoWebAuthenticator.m ([SOGoWebAuthenticator -userInContext:]): override the super method by returning anonymous if the super returns nil. * UI/Common/UIxPageFrame.m ([UIxPageFrame -productLocalizableStrings]): new method that returns the product-specific translation dictionary as a JSON hash. ([UIxPageFrame -commonLocalizableStrings]): same as above but for the "Common" framework. ([UIxPageFrame -setJsFiles:newJSFiles]): new setter that enables the requestor components to require additional Javascript files. This is useful now that all the scripts are loaded at the end of the HTML code. ([UIxPageFrame -additionalJSFiles]): new getter related to the above. 2007-10-17 Wolfgang Sourdeau * UI/MailerUI/UIxMailActions.m ([UIxMailActions -copyAction]): implemented new web method. * SoObjects/Mailer/SOGoMailObject.m ([SOGoMailObject -copyToFolderNamed:folderNameinContext:]): new method with the code cut/pasted from -moveToFolderNamed:inContext:. ([SOGoMailObject -moveToFolderNamed:folderNameinContext:]): modified to use the code from -copyToFolderNamed:inContext:, which is common between the two actions. * SoObjects/Mailer/SOGoMailAccount.m ([SOGoMailAccount -draftsFolderNameInContext:_ctx]) ([SOGoMailAccount -sentFolderNameInContext:]) ([SOGoMailAccount -trashFolderNameInContext:]): modified to take the user settings into account. * UI/MailerUI/UIxMailFolderActions.m ([UIxMailFolderActions -setAsDraftsFolderAction]) ([UIxMailFolderActions -setAsSentFolderAction]) ([UIxMailFolderActions -setAsTrashFolderAction]): new web methods that change the purpose of the active folder to "Sent", "Drafts" or "Trash". * UI/SOGoUI/SOGoACLAdvisory.m ([SOGoACLAdvisory -subject]): returns the subject as quoted-printable. * UI/SOGoUI/SOGoACLAdvisory.[hm]: added two intermediary classes: SOGoACLAdditionAdvisory and SOGoACLRemovalAdvisory implementing the "aclMethod" method for the subsequent language-dependent subclasses. * UI/SOGoUI/SOGoFolderAdvisory.m ([SOGoFolderAdvisory -subject]): returns the subject as quoted-printable. * UI/Scheduler/UIxAppointmentEditor.m ([UIxAppointmentEditor -dealloc]): release item, aptStartDate and aptEndDate. 2007-10-16 Wolfgang Sourdeau * SoObjects/Mailer/SOGoMailFolder.m ([SOGoMailFolder -initWithName:newNameinContainer:newContainer]): the owner of a shared folder is set to "nobody" by default. * UI/Common/UIxAclEditor.m ([UIxAclEditor -hasOwner]): new method that returns whether the object has an owner or not. 2007-10-15 Wolfgang Sourdeau * SoObjects/SOGo/SOGoFolder.m ([SOGoFolder -ocsFolder]): create the folder even if the current user is not its owner. 2007-10-10 Ludovic Marcotte * We now send advisory emails when folders are created / deleted. * Fixed the sending of advisory emails upon ACL changes on folders. 2007-10-10 Ludovic Marcotte * UI/Scheduler/UIxComponentEditor.m Implemented event/task priority support. * SoObjects/Contacts/SOGoContactGCSFolder.m Added CardDAV support. * SoObjects/SOGo/LDAPUserManager.m and SOGoUser.m Implemented From: based on LDAP results based on the MailFieldNames attribute (an array) specified in every LDAP-based authentication sources. * UI/MailPartViewers/UIxMailPartTextViewer.m and UI/WebServerResources/MailerUI.css We avoid replacing "\r\n" and "\n" with
and rather use CSS capabilities for proper formatting. This is _WAY_ faster on very large mails. 2007-10-10 Francis Lachapelle * UI/Scheduler/UIxComponentEditor.m ([UIxComponentEditor -componentCalendar]): returns the calendar object of the current event. 2007-10-05 Ludovic Marcotte * UI/WebServerResources/MailerUI.js We check if at least one message is selected before performing a Reply/Reply All/Forward * SoObjects/Appointments/SOGoAppointmentFolder.m and others - implemented support for recurring events (with some known limitations right now, all soon to be fixed). 2007-10-04 Francis Lachapelle * Main/SOGo.m ([SOGo -isUserName:_keyinContext:_ctx]): removed the constraint that a username can't start with a digit. 2007-10-02 Francis Lachapelle * Moved SOPE/sope-gdl1/GDLContentStore from the default trunk repository to Inverse's branch. 2007-09-28 Francis Lachapelle * SoObjects/Mailer/SOGoDraftObject.m ([SOGoDraftObject -isValidAttachmentName:_name]): removed constraint on space in file name. ([SOGoDraftObject -saveAttachment:_attachwithMetadata:metadata]): now removes from file name all characters preceding a backslash. This happens with IE7 because the complete attachment file path is sent. 2007-09-25 Francis Lachapelle * SoObjects/Appointments/SOGoAptMailNotification.m ([SOGoAptMailNotification -appointmentURL]): set personal as the default calendar where to add the event. * UI/MainUI/SOGoUserHomePage.m ([SOGoUserHomePage +initialize]): activate the SOGoUIxDefaultModule user defaults. 2007-09-21 Francis Lachapelle * UI/SOGoUI/UIxComponent.m ([UIxComponent -shortUserNameForDisplay]): returns the string "wrongusernamepassword" when authentication failed. 2007-09-17 Wolfgang Sourdeau * UI/MailPartViewers/UIxMailPartICalViewer.m ([UIxMailPartICalViewer -calendarFolder]): returns the "personal" entry of the Calendars parent folder. * UI/MailerUI/UIxMailListView.m ([UIxMailListView -messageSubject]): new accessor method to work-around a problem within SOPE where a subject could be returned as an NSData. * SoObjects/SOGo/SOGoParentFolder.m ([SOGoParentFolder -appendPersonalSources]): make sure the value of the "c_path4" of the returned rows are not NSNull, otherwise, discard them. 2007-09-16 Wolfgang Sourdeau * SoObjects/Contacts/SOGoContactGCSFolder.m ([SOGoContactGCSFolder -compare:otherFolder]): new overriden method that compares two contact foldes based on their class and then transfer the control to the super method in SOGoFolder. * SoObjects/Contacts/SOGoContactLDAPFolder.m ([SOGoContactLDAPFolder -compare:otherFolder]): new method that compare two contact folders based on their class and then their display name. * SoObjects/SOGo/SOGoFolder.m ([SOGoFolder -compare:otherFolder]): new method for sorting folders. The folders are compared based on their ownership, whether they are a main folder and finally depending on their display name. * SoObjects/SOGo/SOGoObject.m ([SOGoObject -pathArrayToSOGoObject]): do not reorder the paths if the third element is an instance of NSNull. * SoObjects/SOGo/SOGoParentFolder.m ([SOGoParentFolder -subFolders]): returns a sorted array using the "compare:" selector. 2007-09-14 Wolfgang Sourdeau * UI/Scheduler/UIxCalendarSelector.m ([UIxCalendarSelector -calendars]): also returns the owner of the listed folders. * SoObjects/Appointments/SOGoAppointmentFolder.m ([-deleteEntriesWithIds:ids]): moved method into SOGoFolder. * UI/Scheduler/UIxCalMainView.m ([-batchDeleteAction]): moved method into UIxFolderActions. * SoObjects/Appointments/SOGoFreeBusyObject.m ([SOGoFreeBusyObject -fetchFreeBusyInfosFrom:_startDateto:_endDate]): fetch the freebusy info from the "personal" calendar. * UI/Common/UIxParentFolderActions.m ([UIxParentFolderActions -createFolderAction]): new standardized method for requesting folder creations among gcs-based modules. * UI/Common/UIxParentFolderActions.[hm]: new action class module. * SoObjects/Appointments/SOGoAppointmentFolders.m: new class module, equivalent to the SOGoParentFolder's child SOGoContactFolders, but for calendars. * SoObjects/SOGo/SOGoObject.m ([SOGoObject -labelForKey:key]): new method that returns translated strings for controller bundles (same as what UIxComponent does for view bundles). ([SOGoObject -pathArrayToSOGoObject]): new method that returns the real path to a subscribed folder (if subscribed). ([SOGoObject +globallyUniqueObjectId]): move method from SOGoFolder. ([SOGoObject -globallyUniqueObjectId]): new instance method calling its class equivalent. 2007-09-12 Wolfgang Sourdeau * UI/MainUI/SOGoRootPage.m ([SOGoRootPage -defaultAction]): test whether the user is logged in and if so, redirect to his/her homepage. ([SOGoRootPage -appendToResponse:inContext:]): removed useless method. 2007-09-11 Wolfgang Sourdeau * SoObjects/SOGo/SOGoFolder.m ([SOGoFolder +folderWithName:aNameandDisplayName:aDisplayNameinContainer:aContainer]): new method. ([SOGoFolder -displayName]): new method. ([SOGoFolder -delete]): accept to proceed only if nameInContainer != "personal". * SoObjects/Contacts/SOGoContactLDAPFolder.m ([SOGoContactLDAPFolder +folderWithName:aNameandDisplayName:aDisplayNameinContainer:aContainer]): renamed from "contactFolderWithName..." for compatibility with SOGoFolder. * SoObjects/Contacts/SOGoContactGCSFolder.m ([SOGoContactGCSFolder +contactFolderWithName:aNameandDisplayName:aDisplayNameinContainer:aContainer]): removed method, reimplemented in SOGoFolder. ([SOGoContactGCSFolder -displayName]): removed method, reimplemented in SOGoFolder. ([-delete]): removed method, modified in SOGoFolder. * SoObjects/Contacts/SOGoContactFolders.[hm]: modified class to be a subclass of SOGoParentFolder. * SoObjects/SOGo/SOGoParentFolder.[hm]: new class module derived from SOGoContactFolders and modified to be more content-independent. * UI/MailerUI/UIxMailActions.m ([UIxMailActions -markMessageUnreadAction]) ([UIxMailActions -markMessageReadAction]): new methods moved from UIxMailListView and adapted to invoke the client object directly, since the previous versions had to to a lookup from the parent SOGoMailFolder. * UI/MailerUI/UIxMailListView.m ([-markMessageUnreadAction]): move method into UIxMailActions. ([-markMessageReadAction]): same as above. ([-viewAction]): removed useless method. ([-javaScriptOK]): removed useless method. ([-isJavaScriptRequest]): removed useless method. ([-lookupActiveMessage]): removed useless method. * UI/Common/WODirectAction+SOGo.m ([WODirectAction -responseWithStatus:status]): new method that returns a WOResponse initialized with the specified status code. ([WODirectAction -responseWith204]): new method that invokes the above one with "204" as parameter. ([WODirectAction -redirectToLocation:newLocation]): rewrote method to make use of -responseWithStatus:. * UI/SOGoUI/UIxComponent.m ([UIxComponent -responseWith204]): new method that returns a WOResponse initialized with the 204 status code. * UI/MailerUI/UIxMailListView.m ([UIxMailListView -sortedUIDs]): always use a "not deleted" search qualifier along with the user qualifier (if present). 2007-09-10 Wolfgang Sourdeau * UI/Contacts/UIxContactFoldersView.m ([UIxContactFoldersView -contactSearchAction]): only return the records which have an email set. * SoObjects/Mailer/SOGoMailObject.m ([SOGoMailObject -trashInContext:_ctx]): no longer expunge the mailbox after marking a message deleted. ([SOGoMailObject -moveToFolderNamed:folderNameinContext:]): same as above. * UI/MailerUI/UIxMailView.m ([-deleteAction]): removed method. ([-trashAction]): moved method into UIxMailActions. ([-moveAction]): moved method into UIxMailActions. 2007-09-07 Wolfgang Sourdeau * UI/MailPartViewers/UIxMailPartHTMLViewer.m ([_UIxHTMLMailContentHandler -endElement:_localNamenamespace:_nsrawName:_rawName]): remove HTML comments from the CSS code, do not add the CSS code to the body content and remove references of body from the CSS declarations. ([UIxMailPartHTMLViewer -cssContent]): new accessor method. ([UIxMailPartHTMLViewer -flatContentAsString]): separated code common with cssContent in a different method and invoke it only once. * UI/MainUI/SOGoRootPage.[hm]: made a subclass of UIxComponent instead of UIxPageFrame. 2007-09-06 Wolfgang Sourdeau * UI/MainUI/SOGoRootPage.m ([-defaultAction]): commented out. ([-appendToResponse:responseinContext:ctx]): commented out. ([SOGoRootPage -connectURL]): new accessor that returns the full url the the "connect" method. ([-connectAction]): rewrote method to return a properly formatted auth. cookie based on the username and password passed as parameter. * UI/MainUI/SOGoUserHomePage.m ([SOGoUserHomePage -logoffAction]): set the value of the cookie to "discard" and set its expiration date to yesterday. * SoObjects/SOGo/SOGoWebAuthenticator.m ([SOGoWebAuthenticator -preprocessCredentialsInContext:context]): consider the user anonymous if the cookie value is "discard". ([SOGoWebAuthenticator -setupAuthFailResponse:responsewithReason:reasoninContext:context]): set the expiration date of the cookie to yesterday. * UI/SOGoUI/UIxComponent.m ([UIxComponent -applicationPath]): returns the path to the application if the clientObject is not a SOGoObject. * SoObjects/SOGo/SOGoUserFolder.m ([SOGoUserFolder +initialize]): moved the requirement of authentication from the SOGo application class to here. * SoObjects/Appointments/SOGoAppointmentObject.m ([SOGoAppointmentObject -saveContentString:_iCalbaseSequence:_v]): check whether the new appointment object is still relevant before sending a notification. 2007-09-05 Wolfgang Sourdeau * SoObjects/SOGo/SOGoWebAuthenticator.m ([SOGoWebAuthenticator -setupAuthFailResponse:responsewithReason:reasoninContext:context]): render the login page through the SoDefaultRenderer. * UI/MainUI/SOGoRootPage.m ([SOGoRootPage -isPublicInContext:localContext]): new overriden method that returns YES. * UI/Scheduler/UIxCalendarSelector.m ([UIxCalendarSelector -currentCalendarLogin]): replace css-unsafe characters with _. * UI/SOGoUI/UIxComponent.m ([UIxComponent -shortUserNameForDisplay]): simplified method. ([-user]): removed method since [context activeUser] is as useful. 2007-09-04 Wolfgang Sourdeau * UI/MainUI/SOGoUserHomePage.m ([SOGoUserHomePage -logoffAction]): set th