]> err.no Git - scalable-opengroupware.org/blob - ChangeLog
git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1097 d1b88da0-ebda-0310...
[scalable-opengroupware.org] / ChangeLog
1 2007-07-04  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2
3         * UI/MailerUI/UIxMailSourceView.[hm]: new class module designed to
4         return the message source code in plain text.
5
6         * SoObjects/Mailer/SOGoMailObject.m ([SOGoMailObject
7         -contentAsString]): returns the message encoded in UTF8.
8
9 2007-07-03  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
10
11         * OGoContentStore/iCalRepeatableEntityObject+OCS.m
12         ([iCalRepeatableEntityObject -cycleInfo]): no longer take the
13         leading tagname into account when serializing the element values.
14
15         * Main/SOGoProductLoader.m: only load bundle directories ending
16         with the "SOGo" extension.
17
18         * Main/SOGo.m ([SOGo
19         -_checkTableWithCM:cmtableURL:urlandType:tableType]): empty the
20         result set if the query has caused no exception. Otherwise we get
21         an "evaluation is in progress exception".
22
23 2007-06-29  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
24
25         * SoObjects/SOGo/AgenorUserDefaults.m ([AgenorUserDefaults
26         -generateSQLForInsert]): initialize error to nil before the
27         serialization. Otherwise the method can get confused if it ever is
28         initialized to something else.
29
30         * SoObjects/SOGo/SOGoUserFolder.m ([SOGoUserFolder
31         -folderIsMandatory]): returns NO unconditionnally.
32
33         * SoObjects/Contacts/SOGoContactFolders.m ([SOGoContactFolders
34         -appendPersonalSources]): add the "personal" folder to the list of
35         user folders even if it doesn't exist, so that it is created when
36         the user accesses it.
37
38         * SoObjects/Contacts/SOGoContactGCSFolder.m ([SOGoContactGCSFolder
39         -folderIsMandatory]): returns YES if nameInContainer is set to
40         "personal", which is the default address book.
41
42         * SoObjects/Appointments/SOGoAppointmentFolder.m
43         ([SOGoAppointmentFolder -folderIsMandatory]): returns YES since
44         users must have one Calendar folder (one and only one).
45         ([SOGoAppointmentFolder -_privacySqlString]): unescape the
46         escaping '\' so make the carriage return a real one. This way,
47         PgSQL 8 won't complain about escaping the string.
48
49         * SoObjects/SOGo/SOGoFolder.m ([SOGoFolder -ocsFolder]): new
50         method that create the folder if considered mandatory.
51         ([SOGoFolder -folderIsMandatory]): new method that determines
52         whether the folder should be created automatically or not. To be
53         overriden by subclasses.
54
55         * Main/SOGo.m ([SOGo -run]): override method and create the
56         missing system tables if needed.
57
58 2007-06-28  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
59
60         * UI/MailerUI/WOContext+UIxMailer.m ([WOContext
61         -mailDateFormatter]): returns the user's date formatter.
62
63         * SoObjects/Mailer/SOGoMailObject.m ([SOGoMailObject -date]):
64         applies the user timezone to the date object before returning it.
65
66         * UI/Common/UIxSortButton.m: removed useless class module.
67
68         * UI/Common/UIxSortableTableHeader.m: removed useless class
69         module.
70
71         * UI/Contacts/UIxContactsListView.m ([UIxContactsListView
72         -contactInfos]): use the "asc" url parameter instead of "desc" to
73         determine the ordering.
74         ([-sortOrdering]): removed method.
75         ([UIxContactsListView -init]): removed the "searchText" ivar.
76         (general): the template no longer use the UIxSortableTableHeader
77         components.
78
79         * UI/MailerUI/UIxMailListView.m ([UIxMailListView
80         -defaultSortKey]): default sort following the messages arrival
81         instead of their date.
82         ([-isSortedDescending]): removed method.
83         ([-imap4SortOrdering]): use the "asc" url parameter instead of
84         "desc" to determine the ordering.
85         (general): the template no longer use the UIxSortableTableHeader
86         components.
87
88 2007-06-27  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
89
90         * UI/MailerUI/UIxMailListView.m ([UIxMailListView -sleep]):
91         removed method.
92         ([-setQualifier:_msg], [-qualifier]): removed methods.
93         ([UIxMailListView -defaultAction]): added code to handle the
94         search criteria and value passed as url parameters. Also, we now
95         handle the same search criterias as Thunderbird/Icedove.
96
97 2007-06-22  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
98
99         * UI/PreferencesUI/UIxJSONPreferences.m ([UIxJSONPreferences
100         -jsonDefaultsAction]): bug fix: returns a WOResponse instance with
101         the string instead of the string itself.
102         ([UIxJSONPreferences -jsonSettingsAction]): same as above.
103
104         * SoObjects/SOGo/SOGoUser.m ([SOGoUser +initialize]): new module
105         bool var "acceptAnyUser" that is set when the AuthenticationMethod
106         user default is nil.
107         ([SOGoUser -initWithLogin:newLoginroles:newRoles]):
108         unconditionnally returns an instance whenever acceptAnyUser is set.
109
110 2007-06-21  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
111
112         * Main/sogod.m (main): prevent SOGo from running as root.
113
114 2007-06-19  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
115
116         * SoObjects/SOGo/SOGoUser.m ([SOGoUser
117         -setCurrentPassword:newPassword]): new stub method.
118         ([SOGoUser -dateFormatterInContext:context]): new method that
119         returns an instance of SOGoDateFormatter configured based on the
120         user defaults.
121
122         * UI/Common/UIxPageFrame.m ([UIxPageFrame
123         -relativePreferencesPath]): new method.
124
125         * UI/Scheduler/UIxComponentEditor.m ([-titleDateFormatter]):
126         removed useless method.
127
128         * SoObjects/SOGo/SOGoDateFormatter.m: rewrote class to accept
129         different configurable formats (long and short date + time).
130
131         * SoObjects/SOGo/SOGoDateFormatter.[hm]: moved from UI/SOGoUI/.
132
133         * SoObjects/Mailer/SOGoMailAccounts.m ([SOGoMailAccounts
134         -isInternetRequest]): removed method.
135
136         * SoObjects/SOGo/AgenorUserDefaults.m ([AgenorUserDefaults
137         -jsonRepresentation]): new method with an explicit name.
138
139         * UI/PreferencesUI/product.plist: new bundle that provides a web
140         ui for handling user defaults.
141
142         * UI/Scheduler/UIxTaskView.[hm]: removed unused module.
143
144         * UI/Scheduler/UIxAppointmentView.[hm]: removed unused module.
145
146         * SoObjects/SOGo/WOContext+Agenor.[hm]: removed unused module.
147
148 2007-06-14  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
149
150         * SoObjects/SOGo/SOGoLRUCache.m: removed unused module.
151
152 2007-06-13  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
153
154         * UI/Scheduler/NSArray+Scheduler.m ([NSArray
155         -compareEventsAscending:otherEvent]): no longer use compare: on
156         the time objects since one of them could be an NSNull, which
157         crashes when comparing with anything.
158
159         * UI/Scheduler/UIxCalListingActions.m ([UIxCalListingActions
160         -eventsListAction]): sort events from here.
161         ([UIxCalListingActions -tasksListAction]): sort tasks from here.
162
163         * SoObjects/SOGo/NSObject+AptComparison.[hm]: removed category
164         module, replaced with NSArray+Scheduler in UI/SchedulerUI/.
165
166         * SoObjects/Appointments/SOGoAppointmentFolder.m
167         ([SOGoAppointmentFolder
168         -fetchFields:_fieldsfromFolder:_folderfrom:_startDateto:_endDatecomponent:_component]):
169         no longer sort elements from here.
170
171 2007-06-12  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
172
173         * SoObjects/Mailer/SOGoMailObject.m ([SOGoMailObject
174         -aclsForUser:uid]): implemented method by forwarding the request
175         to the container. This fixes a bug where users could no longer
176         read emails from shared folders.
177
178         * SoObjects/Appointments/SOGoCalendarComponent.m
179         ([SOGoCalendarComponent -init]): "isNew" is no longer defined
180         here, but rather in its parent class.
181
182         * UI/SOGoUI/SOGoDateFormatter.m ([SOGoDateFormatter
183         -stringForSecondsSinceThe70s:seconds]): new utility method.
184
185         * UI/Scheduler/UIxCalListingActions.m ([UIxCalListingActions
186         -eventsListAction]): no longer reduce the end day of one day for
187         all day events since everything has been fixed in
188         OCSiCalFieldExtractor.
189
190         * OGoContentStore/OCSiCalFieldExtractor.m ([OCSiCalFieldExtractor
191         -extractQuickFieldsFromEvent:_event]): reduce the seconds/70 of
192         the end date of all day events of 1 so that they stay on their
193         real last day.
194
195 2007-06-11  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
196
197         * UI/Scheduler/UIxCalMonthView.m: no longer retrieve appointments.
198
199         * UI/Scheduler/UIxCalView.m ([-fetchCoreAppointmentsInfos]):
200         removed method.
201         ([-fetchCoreTasksInfos]): removed method.
202
203         * UI/Scheduler/UIxCalListingActions.m ([UIxCalListingActions
204         -init]): initialize an instance of SOGoDateFormatter.
205         ([UIxCalListingActions -eventsListAction]): the display start and
206         end dates are added to the listing for each event.
207
208         * UI/Scheduler/UIxCalDayTable.m: no longer retrieve appointments.
209
210         * UI/Scheduler/UIxAppointmentEditor.m ([UIxAppointmentEditor
211         -isAllDay]): returns YES if the "hm" url parameter is set to
212         "allday".
213         ([UIxAppointmentEditor -defaultAction]): if isAllDay, the enddate
214         is displayed one day earlier.
215
216 2007-06-07  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
217
218         * UI/Scheduler/UIxCalListingActions.m ([UIxCalListingActions
219         -_setupContext]): take the range of dates specified by the popup
220         into account.
221
222         * UI/Scheduler/UIxCalListingActions.[hm]: new subclass of
223         WODirectAction that returns WOResponse objects with the events or
224         todos satisfying the parameters passed in the url.
225
226         * UI/Scheduler/UIxAppointmentEditor.m ([UIxAppointmentEditor
227         -takeValuesFromRequest:_rqinContext:_ctx]): take the new ivar
228         "isAllDay" into account and compute the amount of days to pass to
229         the iCalEvent.
230
231 2007-06-06  Francis Lachapelle <flachapelle@inverse.ca>
232
233         * SoObjects/SOGo/NSNumber+Utilities.m: initial import.
234         * SoObjects/SOGo/NSNull+Utilities.m: initial import.
235         * UI/Scheduler/UIxCalTasksListView.m ([WOResponse -tasksListAction]): 
236         new method that returns a json-formatted array of the visible tasks
237         for the current user.
238
239 2007-06-05  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
240
241         * SoObjects/Appointments/SOGoAppointmentObject.m: the owner of the
242         object must be present in the list of UIDs we delete the object
243         from. Otherwise Calendar objects having no organizer and no
244         attendees will remain in their owner's Calendar.
245
246         * SoObjects/SOGo/SOGoObject.m ([SOGoObject
247         -_urlPreferringParticle:expectedoverThisOne:possible]): remove the
248         first 3 elements of the path array if the url returned by
249         baseURLInContext: returns a hostname.
250
251         * SoObjects/Mailer/SOGoMailFolder.m ([SOGoMailFolder
252         -_adjustOwner]): sharedFolderName and otherUsersFolderName may be
253         nil, in which case a crash happens when calling hasPrefix:.
254         ([SOGoMailFolder -_sharesACLs]): same as above.
255         ([SOGoMailFolder -otherUsersPathToFolder]): same as above. If
256         otherUsersFolderName is nil, we return nil.
257         ([SOGoMailFolder -httpURLForAdvisoryToUser:uid]): if we receive
258         nil from [self otherUsersPathToFolder], we return nil too.
259
260 2007-06-01  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
261
262         * SoObjects/SOGo/SOGoObject.m ([SOGoObject
263         -_urlPreferringParticle:expectedoverThisOne:possible]): unescape
264         the result of [self baseURLInContext:] to avoid a double escaping
265         in the resulting string.
266
267         * SoObjects/SOGo/SOGoFolder.m ([SOGoFolder -aclsForUser:uid]): if
268         the user has the "ObjectReader" role on the parent container, then
269         he is granted the "ObjectViewer" role on this object. Same for
270         "ObjectEraser", although this might change later.
271
272         * UI/Scheduler/UIxComponentEditor.m ([UIxComponentEditor
273         -toolbar]): determine the toolbar filename based on the
274         permissions declared by the securitymanager. The role mechanism
275         has been adjusted on a lowerlevel so we can simplify the code.
276
277         * SoObjects/SOGo/SOGoContentObject.m ([SOGoContentObject
278         -initWithName:newNameinContainer:newContainer]): read the content
279         directly from here. That way we can determine whether the object
280         is being created.
281         ([SOGoContentObject -aclsForUser:uid]): if the object is new and
282         the ObjectCreator role is enabled, we also grant the ObjectEditor
283         role to the current user.
284
285         * UI/Common/UIxFolderActions.m ([-canAccessContentAction]):
286         changed the method paradigm to only return HTTP code 204. Not test
287         is done whatsoever since the security manager does it for us.
288
289         * UI/Contacts/UIxContactsListView.m ([-canAccessContentAction]):
290         removed method because the same exists in UIxFolderActions.m
291
292         * UI/Contacts/UIxContactsUserRightsEditor.m
293         ([UIxContactsUserRightsEditor
294         -setUserCanReadObjects:userCanReadObjects]): new method.
295
296         * SoObjects/SOGo/SOGoPermissions.m: added roles "FolderViewer" and
297         "FolderEraser" and special permission "Access Object". Removed
298         role "SOGoMailRole_MessageEraser" since "SOGoRole_ObjectEraser"
299         can be used instead. Removed "FolderReader" since it is useless.
300
301         * SoObjects/Contacts/SOGoContactGCSEntry.m ([SOGoContactGCSEntry
302         -vCard]): directly use the "content" ivar since it is initialized
303         during object creation.
304
305         * SoObjects/Contacts/SOGoContactLDAPFolder.m
306         ([SOGoContactLDAPFolder -init]): no longer handle the
307         nameInContainer no the container ivars. They were removed because
308         this class is a descendant of SOGoObject which already has them.
309         ([SOGoContactLDAPFolder -davDisplayName]): new overriden method
310         returning "displayName".
311         ([SOGoContactLDAPFolder -isFolderish]): new overriden method
312         returning "YES".
313
314         * SoObjects/Appointments/SOGoCalendarComponent.m
315         ([SOGoCalendarComponent -isOrganizerOrOwner:user]): commented out.
316         ([SOGoCalendarComponent -findParticipant:user]): new name for
317         method "participant:".
318         ([SOGoCalendarComponent -findParticipantWithUID:uid]): same as
319         findparticipant but taking a uid string as parameter.
320         ([SOGoCalendarComponent -contentAsString]): don't regenerate the
321         iCalendar automatically. Instead, this is done only when the user
322         is a "date and time viewer".
323         ([SOGoCalendarComponent -aclsForUser:uid]): take delegation roles
324         (modifier and responder) into account by compiling them with the
325         owner's roles.
326
327         * SoObjects/Contacts/SOGoContactFolder.h: removed
328         "nameInContainer" from the list of required methods.
329
330         * SoObjects/Appointments/SOGoFreeBusyObject.m ([SOGoFreeBusyObject
331         -davContentType]): returns "text/calendar".
332
333         * SoObjects/Contacts/SOGoContactLDAPFolder.m
334         ([SOGoContactLDAPFolder -davResourceType]): declare the correct
335         groupdav resource-type.
336
337         * SoObjects/Contacts/SOGoContactFolders.m ([SOGoContactFolders
338         -davContentType]): same as below.
339
340         * SoObjects/Mailer/SOGoMailFolder.m ([SOGoMailFolder
341         -initWithName:newNameinContainer:newContainer]): new overriden
342         method setting the custom owner directly.
343
344         * SoObjects/Mailer/SOGoMailAccounts.m ([SOGoMailAccounts
345         -davContentType]): same as below.
346
347         * SoObjects/Mailer/SOGoMailAccount.m ([SOGoMailAccount
348         -davContentType]): same as below.
349
350         * SoObjects/SOGo/SOGoFolder.m ([SOGoFolder -davContentType]):
351         declare "httpd/unix-directory".
352
353         * SoObjects/SOGo/SOGoUser.m ([SOGoUser +initialize]): declare
354         "UTC" as fallback timezone instead of "Canada/Eastern".
355         ([-hasEmail:email]): make use of the new NSArray's
356         containsCaseInsensitiveString: method.
357
358         * SoObjects/Mailer/SOGoMailObject.m ([SOGoMailObject
359         -davContentType]): declare "message/rfc822" as content type.
360
361         * SoObjects/Appointments/SOGoAppointmentFolder.m
362         ([SOGoAppointmentFolder -_privacySqlString]): "owner" is now an
363         ivar in SOGoObject.
364         ([SOGoAppointmentFolder
365         -fetchFields:_fieldsfromFolder:_folderfrom:_startDateto:_endDatecomponent:_component]): same as above.
366         ([-fetchContentObjectNames]): commented out method since it was
367         usefull only for testing Funambol.
368
369         * SoObjects/SOGo/NSArray+Utilities.m ([NSArray
370         -containsCaseInsensitiveString:match]): an enhanced version of
371         containsObject:.
372
373         * UI/MailerUI/UIxMailView.m ([-isTrashingAllowed]): removed
374         useless method.
375         ([-showMarkDeletedButton]): removed useless method.
376         ([-showTrashButton]): removed useless method.
377
378         * SoObjects/Appointments/iCalEntityObject+SOGo.m
379         ([iCalEntityObject -userIsParticipant:user]): new proxy method
380         that invoked isParticipant on self for each possible email
381         addresses of the user passed as parameter.
382         ([iCalEntityObject -userIsOrganizer:user]): same as above.
383
384         * SoObjects/Appointments/iCalEntityObject+SOGo.[hm]: new class
385         extension module.
386
387         * SoObjects/Appointments/SOGoAppointmentObject.m
388         ([SOGoAppointmentObject
389         -saveContentString:contentStringbaseVersion:baseVersion]): remove
390         method since an event may not have an organizer.
391
392         * SoObjects/SOGo/SOGoObject.m ([SOGoObject
393         -GETAction:localContext]): clarified method. Added support for
394         content-type (thanks to Helge Hess).
395         ([SOGoObject -initWithName:_nameinContainer:_container]):
396         initialize and retain the owner.
397         ([SOGoObject -davContentType]): returns "text/plain".
398
399 2007-05-30  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
400
401         * UI/Common/UIxObjectActions.m ([UIxObjectActions
402         -addUserInAclsAction]): send an acl addition mail.
403         ([UIxObjectActions -removeUserFromAclsAction]): send an acl
404         removal mail.
405
406         * UI/Common/UIxFolderActions.m ([UIxFolderActions
407         -_realActionWithFolderName:folderDict]): handle the possible
408         presence of the "mail-invitation" url parameter. If present, the
409         user will be redirected to the relevant folder.
410
411         * SoObjects/SOGo/SOGoUser.m ([SOGoUser -fullEmail]): new proxy method.
412         ([SOGoUser -language]): new method that returns the user's
413         preferred language, or the system's if none has been set yet.
414
415         * SoObjects/SOGo/SOGoObject.m ([SOGoObject -davURL]): new method
416         that returns the full dav url to self.
417         ([SOGoObject -soURL]): same as above but for the so url (Web UI).
418         ([SOGoObject -soURLToBaseContainerForUser:uid]): new method that
419         returns the full so url to the base of the SOGo module to which
420         self belongs, and for the specified user.
421         ([SOGoObject -soURLToBaseContainerForCurrentUser]): same as above
422         but for the current user.
423         ([SOGoObject -httpURLForAdvisoryToUser:uid]): new protocol method
424         required by the acl advisory templates and which returns a link
425         the target user can click to activate its new subscription.
426         ([SOGoObject -resourceURLForAdvisoryToUser:uid]): same as above
427         but for inclusion of the application/x-sogo-notification part,
428         which will be handled by the Lightning enhancer plugin.
429
430         * UI/MailerUI/UIxMailFolderActions.m ([UIxMailFolderActions -subscribeAction]) 
431         ([UIxMailFolderActions -unsubscribeAction]): new stub methods that
432         do nothing yet since imap folder subscription is not handled yet.
433
434         * SoObjects/SOGo/SOGoContentObject.m
435         ([-hasSupportForDefaultRoles]): removed method.
436
437         * SoObjects/SOGo/LDAPUserManager.m ([LDAPUserManager
438         -getFullEmailForUID:uid]): new method that returns the username +
439         email pair.
440
441         * SoObjects/Appointments/SOGoCalendarComponent.m
442         ([SOGoCalendarComponent +initialize]): the default language for
443         mail templates is now set to English.
444
445         * UI/SOGoUI/SOGoACLFrenchRemovalAdvisory.[hm]: new subclass of
446         SOGoACLAdvisory implementing the french template for user removal
447         from acls.
448
449         * UI/SOGoUI/SOGoACLFrenchAdditionAdvisory.[hm]: new subclass of
450         SOGoACLAdvisory implementing the french template for user
451         additions to acls.
452
453         * UI/SOGoUI/SOGoACLEnglishRemovalAdvisory.[hm]: new subclass of
454         SOGoACLAdvisory implementing the english template for user removal
455         from acls.
456
457         * UI/SOGoUI/SOGoACLEnglishAdditionAdvisory.[hm]: new subclass of
458         SOGoACLAdvisory implementing the english template for user
459         additions to acls.
460
461         * UI/SOGoUI/SOGoACLAdvisory.[hm]: new class module implemented the
462         supercall of all the acl advistory templates. The model is based
463         on SOGoAptMailNotification except that the template encapsulates
464         the message to be sent. Later, we might create a superclass common
465         to all template-based emails.
466
467         * SoObjects/SOGo/NSArray+Utilities.m ([NSMutableArray
468         -addRange:newRange]): new method that store a string
469         representation of the NSRange passed as parameter.
470         ([NSMutableArray -hasRangeIntersection:testRange]): tests whether
471         any range contained in self intersect with the one passed as parameter.
472
473         * SoObjects/SOGo/NSString+Utilities.m ([-stringByDetectingURLs]):
474         store ranges in an array to prevent them from intersecting with
475         each other during the passes.
476
477 2007-05-29  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
478
479         * SoObjects/Mailer/SOGoMailFolder.m ([SOGoMailFolder
480         -primaryFetchMailboxInfo]): useless method. Removed.
481
482 2007-05-28  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
483
484         * SoObjects/Mailer/SOGoMailFolder.m ([SOGoMailFolder
485         -toManyRelationshipKeys]): invoke [self subfolders].
486         ([SOGoMailFolder -subfolders]): new method containing what used to
487         be in toManyRelationshipKeys.
488         ([SOGoMailFolder -subfoldersURL]): same as above but returns imap
489         urls.
490
491         * SoObjects/Mailer/SOGoMailAccount.m ([SOGoMailAccount
492         -allFolderPaths]): renamed version of "allFolderPathes", sorted by
493         named and at the beginning of which we put the predefined folders.
494
495         * UI/MailerUI/UIxMailFolderActions.m ([UIxMailFolderActions
496         -emptyTrashAction]): new method inspired by a similar one from
497         UIxMailListView, to which we added the ability to remove
498         subfolders.
499
500         * UI/MailerUI/UIxMailListView.m ([-emptyTrashAction]): removed
501         method. Replaced with a similar one in UIxMailFolderActions.
502
503         * UI/MailerUI/UIxMailFolderActions.m ([UIxMailFolderActions
504         -renameFolderAction]): implemented method.
505         ([UIxMailFolderActions -deleteFolderAction]): no longer delete the
506         specified folder. Instead, we put it in the trash folder.
507
508         * UI/MailerUI/UIxMailListView.m ([-createFolderAction]): removed
509         method, replaced with a similar method in the new
510         UIxMailFolderAction class module.
511         ([-deleteFolderAction]): idem.
512
513         * UI/MailerUI/UIxMailFolderActions.m ([UIxMailFolderActions
514         -createFolderAction]): new method implementing subfolder creation.
515         ([UIxMailFolderActions -renameFolderAction]): new method
516         implementing subfolder renaming (basic implementation to be
517         finalized later).
518         ([UIxMailFolderActions -deleteFolderAction]): new method
519         implementing folder deletion.
520
521         * UI/MailerUI/UIxMailFolderActions.[hm]: new module implementing
522         web actions related to the handling of imap folder.
523
524 2007-05-25  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
525
526         * SoObjects/Mailer/SOGoMailFolder.m ([SOGoMailFolder
527         -ownerInContext:localContext]): overriden method because we are an
528         IMAP4 client and we need a bit more intelligence to deduce the
529         owner of the current folder.
530         ([SOGoMailFolder -aclsForUser:uid]): aclForMailboxAtURL might
531         return an NSException so we need to be careful here to avoid a
532         crash.
533         ([SOGoMailFolder -aclUsers]): aclForMailboxAtURL might return an
534         NSException so we need to be careful here to avoid a crash.
535
536         * SoObjects/Mailer/SOGoMailAccounts.m
537         ([SOGoMailAccounts -fetchIdentitiesWithOnlyEmitterAccess:_flag])
538         there is no longer any concept of Intranet or Internet connection
539         handling.
540
541         * SoObjects/Mailer/SOGoMailAccount.m ([SOGoMailAccount
542         -sharedFolderName]): new method.
543         ([SOGoMailAccount -otherUsersFolderName]): new method.
544
545         * UI/MailerUI/UIxMailFolderMenu.[hm]: removed module, obsoleted by
546         new javascript code and the new UIxMailAccountActions class.
547
548         * UI/MailerUI/UIxMailTree.[hm]: removed module, obsoleted by new
549         javascript code and the new UIxMailAccountActions class.
550
551         * UI/MailerUI/UIxMailTreeBlock.[hm]: removed module, obsoleted by
552         new javascript code and the new UIxMailAccountActions class.
553
554         * UI/MailerUI/UIxMailAccountActions.m ([UIxMailAccountActions
555         -listMailboxesAction]): new method that returns a json-formatted
556         tree of all the mailboxes available to the current user.
557
558         * UI/MailerUI/UIxMailAccountActions.[hm]: new module implementing
559         web actions related to the handling of mail accounts.
560
561         * SoObjects/SOGo/NSDictionary+Utilities.[hm]: new extension
562         module.
563
564         * SoObjects/SOGo/NSObject+Utilities.m ([NSObject
565         -jsonRepresentation]): new interface method meant to be overriden
566         by the primitive classes.
567
568 2007-05-23  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
569
570         * UI/MailerUI/UIxMailSplashView.m: removed.
571
572         * SoObjects/Appointments/SOGoCalendarComponent.m
573         ([SOGoCalendarComponent -getUIDsForICalPersons:iCalPersons]): add
574         the uid to the list only when the user email is recognized by the
575         user manager.
576
577 2007-05-22  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
578
579         * SoObjects/Mailer/SOGoMailObject.m ([SOGoMailObject
580         -isDeletionAllowed]): completed method with the new imap acl api.
581
582         * SoObjects/SOGo/SOGoObject.m ([SOGoObject -defaultAclRoles]):
583         removed method.
584
585         * SoObjects/SOGo/SOGoPermissions.m: added the new role
586         "SOGoMailRole_MessageEraser".
587
588         * UI/Common/UIxAclEditor.m ([UIxAclEditor -defaultUserID]) 
589         ([UIxAclEditor -_prepareUsers]): take the new SOGoObject's
590         "defaultUserID" method into account.
591
592         * UI/Common/UIxUserRightsEditor.m ([UIxUserRightsEditor -userIsDefaultUser]) 
593         ([UIxUserRightsEditor -_initRights]): take the new SOGoObject's
594         "defaultUserID" method into account.
595
596         * UI/MailerUI/UIxMailUserRightsEditor.m: added all the missing
597         methods to support the IMAP acls mentionned in the RFC 4314,
598         removed the ones specific to Cyrus.
599
600         * SoObjects/SOGo/SOGoObject.m ([SOGoObject -defaultUserID]): new
601         mandatory method for subclasses. Removed the SOGoDefaultUserID
602         global var.
603
604         * SoObjects/SOGo/SOGoFolder.m ([SOGoFolder -defaultUserID]):
605         overriden method to return @"<default>".
606
607         * SoObjects/SOGo/SOGoContentObject.m ([SOGoContentObject
608         -defaultUserID]): overriden method to return @"<default>".
609
610         * SoObjects/Mailer/SOGoMailFolder.m ([SOGoMailFolder
611         -aclsForUser:uid]): overriden method.
612         ([SOGoMailFolder -removeAclsForUsers:users]): overriden method.
613         ([SOGoMailFolder -setRoles:rolesforUser:uid]): overriden method.
614         ([SOGoMailFolder -defaultUserID]): overriden method.
615         ([SOGoMailFolder -hasSupportForDefaultRoles]): overriden method.
616
617 2007-05-18  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
618
619         * SoObjects/SOGo/SOGoFolder.m ([SOGoFolder
620         -aclUsersForObjectAtPath:objectPathArray]): new method that being
621         forwarded the calles to aclUsers for the GCS-based subclasses of
622         SOGoObject.
623
624         * SoObjects/Mailer/SOGoMailFolder.m: removed all the previous
625         methods that would have been used to support IMAP acls. Replaced
626         them with the new protocol for them that has been implemented in
627         SOGo during the last few weeks.
628
629         * SoObjects/SOGo/SOGoContentObject.m ([SOGoContentObject
630         -hasSupportForDefaultRoles]): override method by returning "YES".
631
632         * SoObjects/SOGo/NSArray+Utilities.m ([NSMutableArray
633         -addObjectUniquely:object]): new method with an explicit name.
634
635         * SoObjects/SOGo/SOGoObject.m ([SOGoObject -aclUsers]): renamed
636         "acl" to "aclUsers". Now designed to return only the uid of the
637         users involved in an ACL.
638         ([SOGoObject -hasSupportForDefaultRoles]): new method returning
639         "NO" by default. To indicate to the acl editor that we don't want
640         to handle a default user.
641
642         * SoObjects/SOGo/SOGoPermissions.[hm]: added the
643         SOGoRole_ObjectReader, SOGoRole_Folder*, and SOGoMailRole_*
644         symbols.
645
646         * UI/MailerUI/UIxMailUserRightsEditor.[hm]: new class module that
647         provides a view to the IMAP acls.
648
649         * UI/MailerUI/UIxMailFolderACLEditor.m: removed obsolete module.
650
651         * UI/WebServerResources/MailerUI.js: replaced all invocations of
652         addEventListener to the use of prototype's Event object. Also,
653         configured all menus programmatically following descriptions lists
654         containing their callbacks, or nulls, submenus id or separators.
655
656 2007-05-17  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
657
658         * UI/Common/UIxObjectActions.m ([UIxObjectActions
659         -addUserInAclsAction]): save the previous roles of the user
660         (unlikely) or the default roles, or None instead of saving the
661         roles that should appear the first time in the role editor when no
662         default has been set...
663
664         * SoObjects/SOGo/SOGoObject.m: defined a new constant
665         "SOGoDefaultUserID".
666
667         * SoObjects/SOGo/SOGoFolder.m ([SOGoFolder
668         -setRoles:rolesforUser:uidforObjectAtPath:objectPathArray]):
669         ignore the "AuthorizedSubscriber" role and add the "None" role
670         when no other role is found.
671
672         * UI/Common/UIxAclEditor.m: added a button for the new default
673         user roles feature.
674
675         * UI/Common/UIxUserRightsEditor.m ([UIxUserRightsEditor
676         -_initRights]): don't take the "None" role into account when
677         initializing the list of current roles.
678
679         * SoObjects/SOGo/SOGoPermissions.m: added a new void role
680         "SOGoRole_None".
681
682 2007-05-16  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
683
684         * SoObjects/SOGo/NSString+Utilities.m ([NSString
685         -_rangeOfURLInRange:refRange]): urls cannot end with "&" nor "=".
686         There is no need to subscract the start from the length if a space
687         is not found since the range has not changed either. Finally, the
688         first character before the url might also be a tab or a cr, so we
689         match it against the "urlAfterEndingChars" custom NSCharacterSet.
690         ([NSString -stringByDetectingURLs]): modified to handle email
691         addresses and add a correct "mailto:" link.
692
693 2007-05-15  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
694
695         * SoObjects/Appointments/SOGoAppointmentFolder.m
696         ([SOGoAppointmentFolder -fetchContentObjectNames]): override
697         method to return the events in the range of 2 weeks ago up to 4
698         weeks from "now".
699
700         * UI/MailPartViewers/UIxMailPartTextViewer.m
701         ([UIxMailPartTextViewer -flatContentAsString]): use the new
702         "stringByDetectingURLs" method to offer clickable urls.
703
704         * SoObjects/SOGo/NSString+Utilities.m ([NSString
705         -stringByDetectingURLs]): this new method replaces passive URLS
706         with active ones for HTML resolution of the text.
707
708 2007-05-14  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
709
710         * SoObjects/Mailer/SOGoDraftObject.m ([NSString
711         -asQPSubjectString:encoding]): simplified method.
712         The headers indicates "utf-8" again thank to our fix in
713         sope-mime.
714
715         * SoObjects/SOGo/SOGoObject.m: fail to build if libFoundation is
716         being used.
717
718 2007-05-11  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
719
720         * UI/Common/UIxObjectActions.m ([UIxObjectActions
721         -removeUserFromAclsAction]): implemented this method which was
722         missing and is required to remove users from ACLs.
723
724         * UI/Common/UIxFolderActions.m ([UIxFolderActions
725         -subscribeAction]): folderDict was not autoreleased, resulting in
726         a leak...
727
728         * SoObjects/SOGo/AgenorUserDefaults.m ([AgenorUserDefaults
729         -primaryFetchProfile]): when building with libFoundation, don't
730         use the "propertyList" method from NSString. Rather, we convert
731         the string to an NSData instance and passit as parameter to
732         NSDeserializer. This way, we obtain a mutable dictionary rather
733         than an immutable one.
734
735         * SoObjects/Mailer/SOGoDraftObject.m ([SOGoDraftObject -bodyPartForText]) 
736         ([SOGoDraftObject -mimeMessageForContentWithHeaderMap:]): use the
737         constant string "contentTypeValue".
738         contentTypeValue is now set back to iso-8859-1 since NGMime
739         converts extracts the data in that encoding.
740
741 2007-05-10  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
742
743         * SoObjects/SOGo/LDAPSource.m ([LDAPSource
744         -checkLogin:loginToCheckandPassword:passwordToCheck]): if a
745         "bindFields" value is present in the user defaults, use the
746         specified fields to find the dn of the user to bind.
747         ([LDAPSource -allEntryIDs]) 
748         ([LDAPSource -fetchContactsMatching:match]) 
749         ([LDAPSource -lookupContactEntry:entryID]) 
750         ([LDAPSource -lookupContactEntryWithUIDorEmail:uid]):
751         bind and unbind the connection on each request.
752
753         * UI/MailerUI/UIxMailAddressbook.m: removed obsolete module.
754
755         * UI/Contacts/UIxContactFoldersView.m ([UIxContactFoldersView
756         -contactSearchAction]): simplified method to use the facilities
757         provided by the LDAPUserManager. No longer takes care of the
758         "ldap-only" url parameter since all requests are handled by the
759         usermanager now.
760
761         * SoObjects/SOGo/AgenorUserDefaults.m ([AgenorUserDefaults
762         -primaryFetchProfile]): check that the value returned is not null
763         before interpreting it.
764
765         * SoObjects/SOGo/LDAPUserManager.m ([LDAPUserManager
766         -contactInfosForUserWithUIDorEmail:uid]): check that uid is not empty.
767         ([LDAPUserManager -_fillContactMailRecords:contact]): if the
768         system email is already present, remove it before adding it.
769
770         * SoObjects/SOGo/LDAPSource.m ([LDAPSource
771         -checkLogin:loginToCheckandPassword:passwordToCheck]): check that
772         loginToCheck is not empty.
773         ([LDAPSource -fetchContactsMatching:match]): check that match is
774         not empty.
775         ([LDAPSource -lookupContactEntry:entryID]): check that entryID is
776         not empty.
777         ([LDAPSource -lookupContactEntryWithUIDorEmail:uid]): check that
778         uid is not empty.
779
780 2007-05-09  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
781
782         * SoObjects/SOGo/SOGoUser.m ([SOGoUser -primaryEmail]): new name
783         for "mail" method.
784         ([SOGoUser -systemEmail]): returns the email formed from the
785         username and the default mail domain.
786         ([SOGoUser -hasEmail:email]): test whether the user has the
787         specified email, in a case-insensitive way.
788
789         * SoObjects/SOGo/SOGoAuthenticator.m ([SOGoAuthenticator
790         -LDAPCheckLogin:_loginpassword:_pwd]): use the user manager to
791         check login information.
792
793         * SoObjects/Contacts/SOGoContactLDAPFolder.m
794         ([SOGoContactLDAPFolder
795         +contactFolderWithName:aNameandDisplayName:aDisplayNameinContainer:aContainer]):
796         no longer manage LDAP connections. The requests are forwarded to
797         the relevant LDAPSource instead.
798
799         * SoObjects/Contacts/SOGoContactFolders.m ([SOGoContactFolders
800         -appendSystemSources]): pass LDAPSource objects to
801         SOGoContactLDAPFolder instances.
802
803         * SoObjects/Mailer/SOGoDraftObject.m: extract the raw email
804         address of the "from" field before sending the message. Otherwise,
805         sending the mail won't work.
806
807         * UI/MailerUI/UIxMailEditor.m ([UIxMailEditor -fromEMails]):
808         rewrote this method to request all the available email identities
809         for the current user. Also, the from field also contains the full
810         name of the user, not just his/her email address.
811
812         * SoObjects/Appointments/SOGoCalendarComponent.m
813         ([SOGoCalendarComponent -iCalPersonWithUID:uid]): new method taken
814         from the previous module iCalEntityObject+Agenor.
815         ([SOGoCalendarComponent -getUIDForICalPerson:person]): idem.
816         ([SOGoCalendarComponent -getUIDsForICalPersons:iCalPersons]):
817         idem.
818
819         * SoObjects/Contacts/SOGoContactLDIFEntry.[hm]: new class module
820         replacing the SOGoContactLDAPEntry module. It was renamed as such
821         because it now receives a dictionary instead of an NGLdapEntry.
822         It thus can now handle data from any source of LDIF data, not
823         only coming from LDAP.
824
825         * SoObjects/SOGo/LDAPUserManager.[hm]: new class module
826         implementing most of what used to be the AgenorUserManager class.
827         The difference is that users are cached in the forme of
828         dictionaries and many sources are used. Also, it can be used to
829         search LDAP contacts.
830
831         * SoObjects/SOGo/LDAPSource.[hm]: new class module implementing
832         the concept of "ldap source", to be used by all the classes
833         needing access to LDAP-provided information: addressbooks and the
834         user manager. Most the method thereing are transcriptions of
835         methods previously found in SOGoContactLDAPFolder. It also contain
836         utility methods for user matching and authentification.
837
838         * SoObjects/Appointments/iCalEntityObject+Agenor.[hm]: removed
839         module, rendered useless by code refactoring.
840
841         * SoObjects/SOGo/AgenorUserManager.[hm]: removed module, replaced
842         with the freshly written "LDAPUserManager".
843
844 2007-05-08  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
845
846         * SoObjects/Contacts/SOGoContactLDAPEntry.[hm]: renamed to
847         SOGOContactLDIFEntry.
848
849         * SoObjects/Contacts/NGLdapEntry+Contact.[hm]: removed class
850         module, obsoleted by code in SOGo/LDAPSource.[hm].
851
852 2007-05-04  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
853
854         * UI/Common/UIxAclEditor.m ([UIxAclEditor -currentUserIsOwner]):
855         new method with an explicit name.
856
857 2007-05-03  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
858
859         * SoObjects/Appointments/SOGoCalendarComponent.m
860         ([SOGoCalendarComponent -isOrganizerOrOwner:user]): new method
861         replacing "isOrganizer:orOwner:" by taking only one instance of
862         SOGoUser as parameter.
863         ([SOGoCalendarComponent -participant:user]): new method replacing
864         the previous "isParticipant" boolean method by returning the first
865         participant matching the user passed as parameter. This method is
866         used so that both the regular email address and the "system email
867         address" of the user are matched against the participants emails.
868
869         * SoObjects/SOGo/AgenorUserManager.m ([AgenorUserManager
870         -getSystemEMailForUID:uid]): new method that returns the email
871         formed with the user's uid and the default mail domain.
872
873         * SoObjects/Appointments/SOGoCalendarComponent.m
874         ([SOGoCalendarComponent -rolesOfUser:login]): removed method that
875         was previously commented out.
876
877         * SoObjects/SOGo/SOGoUser.m ([SOGoUser -systemEmail]): new method
878         forwared to [AgenorUserManager getSystemEmailForUID:].
879
880         * UI/Scheduler/UIxComponentEditor.m ([UIxComponentEditor
881         -toolbar]): method replacing the one with the same name in the
882         task and appointment editor classes. This method makes also use of
883         the new method "isOrganizerOrOwner:" and "participant:" in
884         SOGoCalendarComponent.
885
886         * UI/Scheduler/UIxAppointmentEditor.m ([UIxAppointmentEditor
887         -toolbar]): removed method, replaced with a method with the same
888         name in UIxComponentEditor.
889
890         * UI/Scheduler/UIxTaskEditor.m ([UIxTaskEditor -toolbar]): removed
891         method, replaced with a method with the same name in
892         UIxComponentEditor.
893
894         * SoObjects/SOGo/AgenorUserDefaults.m ([AgenorUserDefaults
895         -primaryFetchProfile]): the values returned from the database are
896         converted to a put dictionary first, since the dictionary returned
897         is actually an immutable one, which can cause a crash afterwards.
898
899 2007-04-27  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
900
901         * SoObjects/SOGo/SOGoPermissions.m: added "SOGoRole_ObjectViewer"
902         and "SOGoRole_ObjectEditor".
903
904         * UI/Common/UIxUserRightsEditor.m ([UIxUserRightsEditor
905         -prepareRightsForm]): this method is no longer mandatory.
906
907         * UI/Contacts/UIxContactsUserRightsEditor.m
908         ([UIxContactsUserRightsEditor
909         -setUserCanCreateObjects:userCanCreateObjects]): new subclass
910         module to handle acls related to the address books. Partial
911         implementation.
912
913         * SoObjects/SOGo/SOGoFolder.m ([SOGoFolder
914         -setRoles:rolesforUser:uidforObjectAtPath:objectPathArray]): cache
915         newly set roles.
916         ([SOGoFolder
917         -removeAclsForUsers:usersforObjectAtPath:objectPathArray]): remove
918         specified roles from cache.
919         ([SOGoFolder -aclsForUser:uidforObjectAtPath:objectPathArray]):
920         put resulting roles in cache.
921
922         * SoObjects/SOGo/SOGoObject.m ([SOGoObject -init]): do not invoke
923         initWithName:inContainer:. Instead, directly initialize the ivars
924         as it is supposed to be to avoid an infinite loop whenever one of
925         those two methods are overriden.
926
927         * SoObjects/SOGo/SOGoContentObject.m ([-rolesOfUser:login]):
928         removed method.
929
930         * SoObjects/Contacts/SOGoContactLDAPEntry.m ([SOGoContactLDAPEntry
931         -aclsForUser:uid]): override method so that SOGo won't crash when
932         loading the contact card.
933
934 2007-04-26  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
935
936         * SoObjects/Appointments/SOGoAppointmentFolder.m
937         ([SOGoAppointmentFolder -_privacySqlString]): the string for the
938         "freebusy" special user should only require opaque elements.
939
940 2007-04-25  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
941
942         * SoObjects/Appointments/SOGoAppointmentFolder.m
943         ([SOGoAppointmentFolder -davResourceType]): fixed a problem with
944         our double declaration where the resulting XML would be screwed.
945         There is only one collection per namespace.
946
947         * SoObjects/SOGo/NSCalendarDate+SOGo.m ([NSCalendarDate
948         rfc822DateString]): new method that returns a string conform to
949         rfc 822 and suitable for email headers.
950
951         * SoObjects/Mailer/SOGoDraftObject.m: invoke the new
952         "rfc822DateString" category method on the date we put in the
953         header.
954
955 2007-04-24  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
956
957         * UI/Common/UIxUserRightsEditor.m ([UIxUserRightsEditor -defaultAction]) 
958         ([UIxUserRightsEditor -saveUserRightsAction]): new action methods
959         which should never be overriden.
960         ([UIxUserRightsEditor -appendRight:newRight]) 
961         ([UIxUserRightsEditor -removeRight:right]) 
962         ([UIxUserRightsEditor -appendExclusiveRight:newRightfromList:list]) 
963         ([UIxUserRightsEditor -removeAllRightsFromList:list]): new utility
964         methods that can be used by the subclasses.
965         ([UIxUserRightsEditor -prepareRightsForm]): new method that should
966         mandatorily be overriden to prepare the elements of the subclassed
967         form.
968         ([UIxUserRightsEditor -updateRights]): new method that should
969         mandatorily be overriden to update the user rights from the
970         elements of the subclassed form.
971
972         * UI/Common/UIxAclEditor.m ([UIxAclEditor -_prepareUsers]): we
973         check if the uid is already listed before adding it to our array.
974         This is because the acl table can contain more than one record per
975         user/object relationship.
976
977         * SoObjects/SOGo/SOGoFolder.m ([SOGoFolder
978         -setRoles:rolesforUser:uidforObjectAtPath:objectPathArray]): the
979         "roles" parameter is now an NSArray instead of a string. Therefore
980         we loop throughout the array to populate the table. All the
981         relevant records are removed prior to the addition of the new
982         rights.
983
984         * SoObjects/Mailer/SOGoMailBaseObject.m ([SOGoMailBaseObject
985         -aclsForUser:uid]): new override that returns nil until we add
986         support for IMAP acls.
987
988         * SoObjects/Mailer/SOGoMailAccounts.m
989         ([SOGoMailAccounts -aclsForUser:uid]): same as below.
990
991         * SoObjects/Contacts/SOGoContactLDAPFolder.m
992         ([SOGoContactLDAPFolder -aclsForUser:uid]): same as below.
993
994         * SoObjects/Contacts/SOGoContactFolders.m ([SOGoContactFolders
995         -aclsForUser:uid]): override this method which will always return
996         nil.
997
998         * SoObjects/SOGo/SOGoPermissions.[hm]: added
999         [Public,Private,Confidential]
1000         x[Viewer,DAndTViewer,Responder,Modifier]. Renamed
1001         SOGoRole_ORganizer to SOGoCalendarRole_Organizer. Same for
1002         ..._Participant. Removed SOGoRole_Assistant and SOGoRole_Delegate.
1003
1004         * SoObjects/Appointments/SOGoAppointmentFolder.m
1005         ([SOGoAppointmentFolder -defaultAclRoles]): new overriden method
1006         that defines default roles for new elements in the acl.
1007
1008         * UI/Scheduler/UIxCalUserRightsEditor.[hm]: new component class
1009         module and subclass of UIxUserRightsEditor specific to the
1010         handling of user rights on calendar folders.
1011
1012 2007-04-23  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1013
1014         * SoObjects/Appointments/SOGoAppointmentFolder.m
1015         ([SOGoAppointmentFolder -groupDavResourceType]): return both
1016         "vevent-collection" and "vtodo-collection".
1017
1018         * UI/Common/UIxUserRightsEditor.[hm]: new template class module
1019         that implements the detailed editor of user rights per-object.
1020
1021 2007-04-17  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1022
1023         * SoObjects/SOGo/SOGoUser.m ([SOGoUser
1024         -rolesForObject:objectinContext:context]): no longer query objects
1025         for "roleForUser:". Instead, all objects should implement
1026         "rolesForUser:".
1027
1028         * SoObjects/SOGo/SOGoContentObject.m ([SOGoContentObject -acls]):
1029         new method to comply with the new acl "protocol" in SOGoObject.
1030         Uses SOGoFolder's new facilities for ACLS.
1031         ([SOGoContentObject -aclsForUser:uid]): idem.
1032         ([SOGoContentObject -setRoles:rolesforUser:uid]): idem.
1033         ([SOGoContentObject -removeAclsForUsers:users]): idem.
1034
1035         * SoObjects/SOGo/SOGoFolder.m ([SOGoFolder
1036         -aclsForObjectAtPath:objectPathArray]): new method generic to GCS
1037         based folders. This method is derived from the code that was in
1038         UIxAclFolder before its removal.
1039         ([SOGoFolder -aclsForUser:uidforObjectAtPath:objectPathArray]):
1040         idem.
1041         ([SOGoFolder
1042         -removeAclsForUsers:usersforObjectAtPath:objectPathArray]): idem.
1043         ([SOGoFolder
1044         -setRoles:rolesforUser:uidforObjectAtPath:objectPathArray]): idem.
1045         ([SOGoFolder -setRoleForUsers:uidsto:role]) 
1046         ([SOGoFolder -setRoleForUsers:uidsto:role]): removed method.
1047
1048         * SoObjects/SOGo/SOGoObject.m ([SOGoObject -acls]): stub method
1049         that requires overriding by subclasses.
1050         ([SOGoObject -aclsForUser:uid]): idem.
1051         ([SOGoObject -defaultAclRoles]): idem.
1052         ([SOGoObject -setRoles:rolesforUser:uid]): idem.
1053         ([SOGoObject -removeAclsForUsers:users]): idem.
1054
1055         * UI/Common/UIxObjectActions.m: new module implementing the web
1056         actions common to SOGoObject and all its subclasses.
1057         ([UIxObjectActions -addUserInAclsAction]): new method that adds a
1058         user with the clientObject defaults user rights to the object's
1059         acl.
1060
1061         * UI/Common/UIxAclEditor.m: modified module so as to simplify it
1062         to the point where it will only list the users (and their name)
1063         associated with an object acl.
1064
1065         * SoObjects/SOGo/SOGoAclsFolder.m: removed module because its
1066         methods have been moved into SOGoObject and SOGoFolder during a
1067         refactoring.
1068
1069         * UI/Scheduler/UIxComponentEditor.m ([UIxComponentEditor
1070         -iCalParticipantsAndResourcesStringFromQueryParameters]): removed
1071         method made useless by the programmatic handling of iCalendar
1072         objects.
1073         ([UIxComponentEditor -iCalParticipantsStringFromQueryParameters]): idem.
1074         ([UIxComponentEditor -iCalResourcesStringFromQueryParameters]): idem.
1075         ([UIxComponentEditor -iCalStringFromQueryParameter:_qpformat:_format]): idem.
1076
1077         * UI/WebServerResources/MailerUI.js (initDnd): enable drag and
1078         drop on all folder nodes, not just on leaves.
1079
1080         * SoObjects/Contacts/SOGoContactLDAPFolder.m
1081         ([SOGoContactLDAPFolder
1082         -lookupContactsWithFilter:filtersortBy:sortKeyordering:sortOrdering]): request field "uid" when doing a search.
1083
1084 2007-04-16  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1085
1086         * Main/SOGo.m ([SOGo +initialize]): on GNUstep, trigger some
1087         debugging facilities when the SOGoDebugObjectAllocation user
1088         default is set.
1089
1090 2007-04-11  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1091
1092         * SoObjects/SOGo/NSString+Utilities.m ([NSString -boolValue]): new
1093         method that SOGo will need with non-gnustep Foundation
1094         implementation.
1095         ([NSString -stringByAppendingPathComponent:component]): new method
1096         that SOGo will need when building with libFoundation. Method
1097         removed later since it is available from
1098         Foundation/NSPathUtilities.h.
1099
1100         * SoObjects/SOGo/SOGoUser.m ([SOGoUser -timeZone]): method moved
1101         from SOGoObject.m.
1102
1103         * SoObjects/SOGo/SOGoObject.m: new ivar "context" that permits
1104         every subclass to access [WOApplication context] without having to
1105         invoke it more than once.
1106
1107         * SoObjects/Appointments/SOGoCalendarComponent.m
1108         ([SOGoCalendarComponent -changeParticipationStatus:_status]):
1109         moved method from SOGoTaskObject and SOGoAppointmentObject up to
1110         their parent class.
1111
1112         * UI/Scheduler/UIxCalSelectTab.m: removed module.
1113
1114 2007-04-10  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1115
1116         * SoObjects/Contacts/SOGoContactGCSEntry.m ([SOGoContactGCSEntry
1117         -vCard]): test the prefix of the card in a case-independent way.
1118
1119         * OGoContentStore/OCSContactFieldExtractor.m
1120         ([OCSContactFieldExtractor
1121         -extractQuickFieldsFromContent:content]): we no longer accept
1122         records in a format other than versit vCard so we can get rid of a
1123         lot of code.
1124
1125 2007-04-04  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1126
1127         * UI/Contacts/UIxContactsListView.m ([UIxContactsListView
1128         -selectorComponentClass]): restored method.
1129
1130 2007-04-03  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1131
1132         * UI/Scheduler/UIxCalTasksListView.m ([UIxCalTasksListView
1133         -shouldDisplayCurrentTask]): the current task is not displayed if
1134         it is NOT completed or if the "showCompletedTasks" flag is set.
1135         The logic was inverted in Lightning and is now in SOGo too.
1136
1137 2007-04-02  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1138
1139         * UI/Contacts/UIxContactView.m ([UIxContactView -workUrl]): we
1140         want the "work" url instead of the "home".
1141
1142         * UI/Contacts/UIxContactEditor.m ([UIxContactEditor
1143         -_saveSnapshot]): save url values from snapshot.
1144         ([UIxContactEditor -initSnapshot]): load url values from snapshot.
1145
1146         * UI/Scheduler/UIxComponentEditor.m ([UIxComponentEditor
1147         -calendarList]): new method replacing "availableCalendars".
1148
1149         * UI/Scheduler/UIxCalendarSelector.m ([UIxCalendarSelector
1150         -calendarFolders]): we now take the list of subscribed calendar
1151         from the container.
1152
1153         * SoObjects/Appointments/SOGoAppointmentFolder.m
1154         ([SOGoAppointmentFolder -calendarFoldersInContext:context]): new
1155         method derived from and replacing [UIxCalView calendarFolders].
1156
1157 2007-03-30  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1158
1159         * SoObjects/Mailer/SOGoMailAccount.m ([SOGoMailAccount
1160         -toManyRelationshipKeys]): don't put the predefined folders in the
1161         list if they are returned by the server.
1162
1163         * UI/MailerUI/UIxMailTree.m ([UIxMailTree -flattenedNodes]): we no
1164         longer store the "flattenedBlocks" in a dictionary since the
1165         object will be deleted anyway and we don't need to put the folders
1166         in cache.
1167
1168         * UI/MailPartViewers/UIxMailPartHTMLViewer.m
1169         ([UIxMailPartHTMLViewer -_attachmentIds]): take the current
1170         attachment path into account when computing the part urls.
1171
1172 2007-03-29  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1173
1174         * UI/Contacts/UIxContactsListViewContainer.m
1175         ([UIxContactsListViewContainer -additionalFolders]): take the list
1176         of subscribed folders from the new property list used for the user
1177         settings. The value of its key is SubscribedFolders for the
1178         dictionary entry named "Contacts".
1179
1180         * UI/Contacts/UIxContactsListView.m ([UIxContactsListView
1181         -canAccessContentAction]): new method to override the one from
1182         UIxFoldersActions by taking into account the fact that, this time,
1183         the clientObject is an ldap folder. Removed many method that used
1184         to be related to the handling of the user selector.
1185
1186         * UI/Scheduler/UIxCalDayView.m: commented out many unused methods
1187         to make sure they can be removed.
1188
1189         * UI/Scheduler/UIxCalView.m ([UIxCalView -_setupCalendarFolders]):
1190         populate the calendar entries based on the user settings plist.
1191
1192         * UI/Contacts/UIxContactFoldersView.m ([UIxContactFoldersView
1193         -selectForMailerAction]): restored method.
1194
1195         * UI/Scheduler/UIxCalendarSelector.m: new template module derived
1196         from a simplified version of the old UIxContactEditor (removed).
1197
1198         * UI/Contacts/UIxContactsUserFolders.m: new template module for
1199         selecting users or user folders through an LDAP search of which
1200         the results are displayed as a tree.
1201
1202         * UI/WebServerResources/UIxMailEditor.js: moved previous generic
1203         method "onContactAdd" here since the Mailer is now the only module
1204         to use it when composing emails.
1205
1206         * UI/WebServerResources/generic.js: added code for handling the
1207         new scheme used for describing SOGo folders, common code to handle
1208         folder addition or removal.
1209
1210         * UI/Common/UIxFolderActions.m ([UIxFolderActions
1211         -activateFolderAction]): new method that change the "active"
1212         settings in the folder-related fields in the user settings.
1213         ([UIxFolderActions -deactivateFolderAction]): see above.
1214
1215         * UI/Contacts/UIxContactFoldersView.m ([UIxContactFoldersView
1216         -checkRightsAction]): removed method.
1217
1218         * UI/Contacts/UIxContactFoldersView.m ([UIxContactFoldersView
1219         -updateAdditionalAddressBooksAction]): removed method.
1220
1221         * UI/Scheduler/UIxCalMainView.m ([UIxCalMainView
1222         -updateCalendarsAction]): removed method.
1223
1224 2007-03-28  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1225
1226         * UI/Scheduler/UIxCalMainView.m ([UIxCalMainView
1227         -checkRightsAction]): removed method.
1228
1229         * UI/Common/UIxFolderActions.m ([UIxFolderActions
1230         -canAccessContentAction]): new method designed to replace
1231         [UIxCalMainView checkRightsAction] in a more universal way.
1232
1233 2007-03-27  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1234
1235         * SoObjects/Contacts/SOGoContactFolders.m ([SOGoContactFolders
1236         -roleOfUser:uidinContext:context]): take all the subkeys into
1237         account, not only the "personal" folder.
1238
1239         * UI/Scheduler/UIxComponentEditor.m ([UIxComponentEditor
1240         -takeValuesFromRequest:_rqinContext:_ctx]): append a "uid" field
1241         to the new components.
1242
1243         * SoObjects/SOGo/SOGoUser.m ([SOGoUser -userSettings]): new method
1244         (see below).
1245
1246         * SoObjects/SOGo/AgenorUserManager.m ([AgenorUserManager
1247         -getUserDefaultsForUID:uid]): rewrote method to use the "defaults"
1248         field of the sogo_user_profile table, where the user-customizable
1249         changes will be saved.
1250         ([AgenorUserManager -getUserSettingsForUID:uid]): new method
1251         similar to the one above, using the "settings" field where the
1252         automatic settings will be saved.
1253
1254         * SoObjects/SOGo/AgenorUserDefaults.m: rewrote a big part of the
1255         module to bind the userdefaults to a property list contained in a
1256         specified field of the sogo_user_profile table.
1257         ([AgenorUserDefaults
1258         -initWithTableURL:tableURLuid:userIDfieldName:defaultsFieldName]):
1259         added a "fieldName" parameter.
1260
1261         * UI/Common/UIxFolderActions.m: new module implementing web
1262         actions common to all GCS-based folders.
1263
1264 2007-03-26  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1265
1266         * UI/Scheduler/UIxCalDayTable.m ([UIxCalDayTable -labelForDay]):
1267         put a carriage return after the day name.
1268
1269         * UI/MainUI/SOGoUserHomePage.m ([SOGoUserHomePage
1270         -readFreeBusyAction]): restored method.
1271
1272 2007-03-22  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1273
1274         * UI/MainUI/SOGoUserHomePage.m ([SOGoUserHomePage
1275         -defaultAction]): remade module to redirect automatically to the
1276         Calendar url.
1277
1278         * SoObjects/Contacts/NSDictionary+Contact.m: removed module.
1279
1280 2007-03-21  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1281
1282         * UI/Contacts/UIxContactsListView.m ([UIxContactsListView
1283         -deleteAction]): new web method to delete personal addressbook
1284         folders.
1285
1286         * SoObjects/Contacts/SOGoContactGCSFolder.m ([SOGoContactGCSFolder
1287         -delete]): override method to refuse the deletion of the folder if
1288         its nameInContainer is "personal".
1289
1290         * SoObjects/SOGo/SOGoFolder.m ([SOGoFolder -delete]): new method
1291         that forwards the deletion request to the folder manager.
1292
1293 2007-03-19  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1294
1295         * UI/Scheduler/UIxAttendeesEditor.m ([UIxAttendeesEditor
1296         -zoomList]): new method that returns the list of available zoom factors.
1297
1298         * UI/Scheduler/UIxTaskEditor.m ([UIxTaskEditor
1299         -changeStatusAction]): rewrote method.
1300
1301         * UI/Scheduler/UIxComponentEditor.m ([UIxComponentEditor
1302         -_handleAttendeesEdition]): make sure "attendeesNames" has a
1303         length > 0 before computing the attendees. Otherwise there will be
1304         an invalid empty entry.
1305         ([UIxComponentEditor -_handleOrganizer]): new method that adds the
1306         organizer when there are attendees and remove it when the
1307         attendees are removed.
1308
1309 2007-03-18  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1310
1311         * UI/Scheduler/UIxAttendeesEditor.m): new component.
1312
1313         * UI/Scheduler/UIxComponentEditor.m: no longer a superclass for
1314         the task and appointment editors. Now a container component
1315         handling the common elements of tasks and events.
1316
1317         * UI/Scheduler/UIxTaskEditor.m: same as below.
1318
1319         * UI/Scheduler/UIxAppointmentEditor.m: rewrote template. No longer
1320         a subclass of UIxComponentEditor but a subcomponent of it.
1321
1322         * UI/Common/UIxToolbar.m ([UIxToolbar -toolbarConfig]): the
1323         toolbar can have the special value "none" to indicate there is
1324         none attached to the window.
1325
1326         * SoObjects/Appointments/SOGoCalendarComponent.m
1327         ([SOGoCalendarComponent -isOrganizer:emailorOwner:login]): new
1328         method.
1329         ([SOGoCalendarComponent -isParticipant:email]): new method.
1330         ([SOGoCalendarComponent -calendar:create]): takes one parameter
1331         "create" which is a boolean indicating whether we want to create
1332         the calendar if it does not exist.
1333
1334 2007-03-12  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1335
1336         * UI/Scheduler/UIxCalMonthView.m: changed view to use divs instead
1337         of a table, the same way the dayly and weekly views have been for
1338         a few months now.
1339
1340 2007-02-09  Helge Hess  <helge.hess@opengroupware.org>
1341
1342         * SoObjects/Appointments/SOGoAppointmentFolder.m: added CalDAV
1343           resourcetype
1344
1345         * SoObjects/SOGo/SOGoUserFolder.m: added davCalendarHomeSet CalDAV
1346           property to point at the user folder
1347
1348 2007-03-07  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1349
1350         * SoObjects/SOGo/SOGoAuthenticator.m ([SOGoAuthenticator
1351         -userInContext:]): returns "SOGoUser".
1352
1353         * SoObjects/Appointments/SOGoCalendarComponent.m
1354         ([SOGoCalendarComponent -contentAsString]): overriden method that
1355         takes the privacy into account and discard the relevant fields if
1356         needed by generating a new content string and caching it.
1357         ([SOGoCalendarComponent
1358         -saveContentString:contentStringbaseVersion:baseVersion]): if the
1359         new method above has cached a content string, release it and set
1360         it to nil so that it will have to be regenerated in the case it is
1361         requested further.
1362         ([SOGoCalendarComponent -_filterPrivateComponent:component]):
1363         discard the fields that have to be hidden when the card is
1364         private.
1365
1366         * SoObjects/Appointments/SOGoAppointmentFolder.m
1367         ([SOGoAppointmentFolder
1368         -appendObject:objectwithBaseURL:baseURLtoREPORTResponse:r]): make
1369         sure the cards are now handled as instances of
1370         SOGoCalendarComponent instead of SOGoContentObject so that their
1371         content string is taking the privacy classifiction into account.
1372         ([SOGoAppointmentFolder -_privacySqlString]): new method that
1373         generates a query to determine what information can be given and
1374         if the card itself has to be shown.
1375
1376         * UI/Scheduler/UIxComponent+Agenor.m ([UIxComponent
1377         -getICalPersonsFromValue:selectorValue]): removed useless
1378         "isAccessRestricted" method.
1379
1380         * UI/Scheduler/UIxCalInlineAptView.m ([UIxCalInlineAptView
1381         -setStyle:_style]): test whether the values of orgmail and
1382         partmails are null before manipulating them, otherwise SOGo sends
1383         a "rangeOfString:" message to an NSNull, which makes it crashes.
1384
1385         * OGoContentStore/OCSiCalFieldExtractor.m ([OCSiCalFieldExtractor
1386         -extractQuickFieldsFromEvent:_event]): we now use the new
1387         "symbolicAccessClass" method from iCalEntity to determine the
1388         value of the "classifiction" field.
1389         ([OCSiCalFieldExtractor -extractQuickFieldsFromTodo:_task]): same
1390         as above.
1391
1392 2007-03-05  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1393
1394         * SoObjects/Appointments/SOGoAppointmentFolder.m
1395         ([SOGoAppointmentFolder
1396         -fetchCoreInfosFrom:_startDateto:_endDatecomponent:_component]):
1397         see below, the query is adapted consequently.
1398
1399         * OGoContentStore/OCSiCalFieldExtractor.m ([OCSiCalFieldExtractor
1400         -extractQuickFieldsFromTodo:_task]): the field "ispublic" was
1401         renamed to "classification" and can any integer as value.
1402         ([OCSiCalFieldExtractor -extractQuickFieldsFromEvent:_event]):
1403         idem.
1404
1405 2007-02-26  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1406
1407         * UI/MailPartViewers/UIxMailPartHTMLViewer.m
1408         ([_UIxHTMLMailContentHandler -_appendStyle:_charslength:_len]):
1409         don't prepend anything to the class and id named. Instead, we
1410         make each style embedded in the ".SOGoHTMLMail-CSS-Delimiter"
1411         class.
1412
1413 2007-02-21  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1414
1415         * SoObjects/SOGo/SOGoContentObject.m ([SOGoContentObject
1416         -rolesOfUser:logininContext:context]): if object does not exists
1417         (for example when it's being created), the current user has the
1418         same rights on it than he/she has on its parent container.
1419
1420         * SoObjects/SOGo/SOGoFolder.m ([SOGoFolder
1421         -nameExistsInFolder:objectName]): methods that tests if a c_name
1422         corresponding to the name passed as parameter is present in the db
1423         folder.
1424
1425 2007-02-16  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1426
1427         * SoObjects/SOGo/SOGoUser.m ([SOGoUser
1428         -rolesForObject:objectinContext:context]): test for
1429         "rolesOfUser:inContext:" in addition to "roleOfUser:...".
1430
1431         * SoObjects/Appointments/SOGoCalendarComponent.m
1432         ([SOGoCalendarComponent -rolesOfUser:logininContext:context]):
1433         returns the roles of the user on the container object if the event
1434         is uncreated.
1435
1436 2007-02-15  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1437
1438         * UI/MailPartViewers/UIxMailRenderingContext.m: returns the
1439         alternativeViewer a multipart/related message is being handled.
1440
1441         * UI/MailPartViewers/UIxMailPartHTMLViewer.m: reimplemented module
1442         from scratch.
1443
1444         * UI/MailPartViewers/UIxMailPartAlternativeViewer.m: select the
1445         text/html component before text/plain.
1446
1447         * SoObjects/Mailer/SOGoMailObject.m ([SOGoMailObject
1448         -addRequiredKeysOfStructure:path:toArray:recurse:]): accepts the
1449         fetching of HTML parts.
1450
1451         * SoObjects/Appointments/SOGoCalendarComponent.m
1452         ([SOGoCalendarComponent -componentTag]): new template method that
1453         returns the vcalendar tag of the current object.
1454         ([SOGoCalendarComponent -component]): new method that returns the
1455         first object matching [self componentTag] within the current
1456         calendar object. This method replaces 'firstEventInCalendar:' as
1457         well as "firstTaskInCalendar:".
1458         ([SOGoCalendarComponent -roleOfUser:logininContext:context]):
1459         moved method from SOGoAppointmentObject.m.
1460
1461 2007-02-13  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1462
1463         * UI/Scheduler/UIxCalMulticolumnDayView.[hm]: new daily view
1464         module which shows each selected user's calendar in a different
1465         column instead of mixing their events together.
1466
1467         * UI/Scheduler/UIxCalView.m ([UIxCalView -redirectForUIDsAction]):
1468         replaced use of [NSString stringByTrimmingWhiteSpaces] with
1469         [NSString stringByTrimmingSpaces].
1470
1471         * UI/MailPartViewers/UIxMailPartICalViewer.m: request the key
1472         "cnWithoutQuotes" instead of "cnForDisplay", which no longer
1473         exists.
1474
1475         * UI/Scheduler/UIxCalDayOverview.m,
1476         UI/Scheduler/UIxCalDayChartview.m,
1477         UI/Scheduler/UIxCalDayListview.m,
1478         UI/Scheduler/UIxCalWeekOverview.m,
1479         UI/Scheduler/UIxCalWeekChartview.m,
1480         UI/Scheduler/UIxCalWeekListview.m,
1481         UI/Scheduler/UIxCalInlineMonthOverview.m,
1482         UI/Scheduler/UIxCalYearOverview.m: removed unused modules.
1483
1484 2007-02-09  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1485
1486         * SoObjects/Contacts/SOGoContactFolders.m ([SOGoContactFolders
1487         -appendPersonalSourcesInContext:context]): release connectoin
1488         channel when everything is done.
1489
1490         * UI/Contacts/UIxContactFoldersView.m ([UIxContactFoldersView
1491         -newAbAction]): new action method to crate a new contact folder
1492         from the web UI.
1493
1494         * SoObjects/SOGo/SOGoFolder.m ([SOGoFolder -create]): new method
1495         that requests the folder manager to create a folder table with the
1496         specified type at the specified path. The type is taken from [self
1497         folderType].
1498
1499         * SoObjects/Contacts/SOGoContactGCSFolder.m ([SOGoContactGCSFolder
1500         -folderType]): implemented.
1501
1502         * SoObjects/Appointments/SOGoAppointmentFolder.m
1503         ([SOGoAppointmentFolder -folderType]): implemented.
1504
1505         * SoObjects/Contacts/SOGoContactFolders.m ([SOGoContactFolders
1506         -appendPersonalSourcesInContext:context]): we now fetch all
1507         folders with type "Contact" that belong to the current user.
1508         ([SOGoContactFolders -newFolderWithName:name]): new method to
1509         create a new contact folder.
1510
1511         * UI/SOGoUI/UIxComponent.m ([UIxComponent -userFolderPath]): treat
1512         resulting url with [NSString+Utilities hostlessURL] instead of
1513         using NSURL. This is because the url in question sometimes has a
1514         hostname and sometimes not. "hostlessURL" ensure the hostname is
1515         removed anyway.
1516         ([UIxComponent -applicationPath]): same as above.
1517
1518 2007-02-08  Ludovic Marcotte <ludovic@inverse.ca>
1519
1520         * SoObjects/Mailer/SOGoMailFolder.m: priorize the lookup of
1521         folders before doing the one on messages.
1522
1523 2007-02-08  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1524
1525         * SoObjects/SOGo/NSArray+Utilities.m: added an implementation of
1526         makeObjectsPerform:withObject:withObject: for GNUstep
1527         compatibility.
1528         
1529         * OGoContentStore/GNUmakefile, Protocols/common.make,
1530         SoObjects/common.make, UI/common.make: install in
1531         GNUSTEP_INSTALLATION_DIR instead of GNUSTEP_USER_DIR.
1532
1533 2007-02-07  Ludovic Marcotte <ludovic@inverse.ca>
1534
1535         * UI/Scheduler/English.lproj/Localizable.strings: fixed typo for
1536         "Agendas"
1537
1538 2007-02-05  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1539
1540         * UI/MailerUI/UIxMailTree.m ([UIxMailTree
1541         -getTitle:folderType:andIcon:forObject:]): disabled Sieve folders
1542         for the moment.
1543
1544         * SoObjects/SOGo/SOGoAuthenticator.m ([SOGoAuthenticator
1545         -checkLogin:_loginpassword:_pwd]): fixed a bug where a wrong
1546         password would be accepted anyway as long as its length was > 0.
1547         This can be the case ONLY when LDAP is disabled otherwise we have
1548         a serious security issue...
1549
1550         * SoObjects/Appointments/SOGoAppointmentObject.m
1551         ([SOGoAppointmentObject -roleOfUser:logininContext:context]): if a
1552         user is not an organizer nor a participant, he is declared as
1553         "Owner" if he owns the calendar the entry where the entry is
1554         contained. Other cases should not be possible.
1555
1556 2007-02-02  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1557
1558         * UI/Contacts/UIxContactEditor.m: display and handle the new
1559         Freebusy URL entry.
1560
1561         * SoObjects/Contacts/SOGoContactLDAPFolder.m
1562         ([SOGoContactLDAPFolder -_searchAttributes]): retrieve "calFBURL"
1563         from the server.
1564
1565         * SoObjects/Contacts/SOGoContactLDAPEntry.m ([SOGoContactLDAPEntry
1566         -vCard]): put the LDAP "calFBURL" field in the vCard's "FBURL"
1567         entry.
1568
1569 2007-01-31  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1570
1571         * SoObjects/Appointments/SOGoCalendarComponent.m
1572         ([SOGoCalendarComponent -sendEMailNotifications]): new method that
1573         returns the value of ud "SOGoAppointmentSendEMailNotifications"
1574         (iMIP/iTIP).
1575         ([SOGoCalendarComponent
1576         -sendEMailUsingTemplateNamed:_pageNameforOldObject:_oldObjectandNewObject:_newObjecttoAttendees:_attendees]): method moved from SOGoAppointmentObject/SOGoTaskObject, replacing occurences of "appointment" to "object" in its name.
1577
1578 2007-01-30  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1579
1580         * UI/MailerUI/UIxMailListView.m ([UIxMailListView
1581         -defaultAction]): invoke "flushMailCaches" on [self clientObject]
1582         so that the mailbox cache is refreshed everytime the user presses
1583         on "get mail". I doubt a mailbox cache really is useful in general
1584         anyway.
1585
1586 2007-01-26  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1587
1588         * SoObjects/SOGo/SOGoAuthenticator.m ([SOGoAuthenticator
1589         -userInContext:]): if the lookup is on "freebusy.ifb" and the
1590         username is "anonymous" the user is automatically set to
1591         "freebusy".
1592
1593 2007-01-12  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1594
1595         * SoObjects/SOGo/SOGoAuthenticator.m ([SOGoAuthenticator
1596         -checkLogin:_loginpassword:_pwd]): authorize special "freebusy"
1597         user with password "freebusy".
1598
1599         * SoObjects/Appointments/SOGoFreeBusyObject.m ([SOGoFreeBusyObject
1600         -contentAsString]): the default timerange is now 14 days before
1601         currentday and 1 month after.
1602
1603 2007-01-08  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1604
1605         * SoObjects/Appointments/SOGoAppointmentFolder.m
1606         ([SOGoAppointmentFolder
1607         -appendObject:objectwithBaseURL:baseURLtoREPORTResponse:r]):
1608         escape the record string in a way suitable with XML encoding.
1609
1610 2007-01-05  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1611
1612         * UI/WebServerResources/SchedulerUI.js: fixed a bug where the
1613         calendar view would not be updated properly.
1614
1615 2007-01-04  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1616
1617         * UI/Scheduler/UIxComponentEditor.m ([UIxComponentEditor
1618         -newStartDate]): fix the handling of the component start date
1619         depending on the "hm" and the "day" parameters.
1620
1621         * SoObjects/SOGo/SOGoUserFolder.m ([SOGoUserFolder
1622         -roleOfUser:uidinContext:context]): set role of current user to
1623         "Assistant" if the object that is accessed is "freebusy.ifb".
1624
1625         * SoObjects/Appointments/SOGoAppointmentFolder.m
1626         ([SOGoAppointmentFolder -lookupCalendarFolderForUID:uid]): method
1627         moved from UI/Scheduler/UIxCalView:calendarFolderForUID:.
1628         ([SOGoAppointmentFolder
1629         -lookupCalendarFoldersForUIDs:_uidsinContext:]): now use the new
1630         lookupCalendarFolderForUID: method, which doesn't do security
1631         checks.
1632
1633 2007-01-03  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1634
1635         * UI/Common/UIxAclEditor.m ([UIxAclEditor -assistantsValue]): new
1636         accessor that returns the comma-separated list of users with role
1637         "Assistant".
1638         ([UIxAclEditor -delegatesValue]): same as above for "Delegate".
1639         ([UIxAclEditor -_prepareUsers]): there is no longer a concept of
1640         "checkedUsers". Instead, each user is either classified in the
1641         list of assistants or the list of delegates.
1642
1643 2006-12-22  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1644
1645         * UI/MailerUI/UIxMailMainFrame.m ([UIxMailMainFrame
1646         -composeAction]): method imported from removed container modules.
1647         ([UIxMailMainFrame -mailFolderName]): method imported from removed
1648         container modules.
1649
1650         * UI/MailerUI/UIxMailPopupView.m: a new special popup component
1651         for wrapping UIxMailView with the "popupview" action.
1652
1653         * UI/MailerUI/UIxMailAccountView.m: renamed to UIxMailSplashView,
1654         since its the component that displays the same splash screen than
1655         the one in Thunderbird/Icedove.
1656
1657         * UI/MailerUI/UIxMailAccountViewContainer.[hm],
1658         UI/MailerUI/UI/MailerUI/UIxMailAccountsView.m,
1659         UI/MailerUI/UIxMailListViewContainer.[hm],
1660         UI/MailerUI/UIxMailViewContainer.[hm]: removed
1661
1662 2006-12-20  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1663
1664         * UI/WebServerResources/HTMLElement.js: replaced the functional
1665         selectNode() and deselectNode() functions with select() and
1666         deselect() methods of HTMLElement.
1667
1668         * UI/WebServerResources/ContactsUI.js: cleanup, most of the
1669         events are initialized from here now instead of in the HTML code.
1670
1671         * UI/Contacts/UIxContactFoldersView.m ([UIxContactFoldersView
1672         -checkRightsAction]): new method similar to the one with the same
1673         name in UIxCalMainView.m.
1674
1675         * UI/Common/UIxAclEditor.m ([UIxAclEditor -saveAclsAction]): added
1676         code to handle the publishing of freebusy information.
1677
1678 2006-12-19  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1679
1680         * UI/Scheduler/UIxCalMainView.m ([UIxCalMainView
1681         -checkRightsAction]): new action method that returns a
1682         comma-separated list of boolean values matching the right of the
1683         current user to "view" (as a permission) each foreign calendar
1684         stored in his preferences.
1685
1686         * SoObjects/SOGo/SOGoObject.m ([SOGoObject -setOwner:newOwner]):
1687         new method that sets a customOwner, which can be returned with
1688         ownerInContext it set.
1689
1690         * SoObjects/Appointments/SOGoAppointmentFolder.m
1691         ([SOGoAppointmentFolder
1692         -fetchFields:_fieldsfromFolder:_folderfrom:_startDateto:_endDatecomponent:_component]): no longer set the owner of elements here.
1693
1694 2006-12-15  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1695
1696         * SoObjects/SOGo/SOGoUserFolder.m: same as for SOGoContactFolders
1697         below, but for the Contacts and Calendar collections.
1698
1699         * SoObjects/SOGo/SOGoAclsFolder.m: convert the class to user the
1700         new acl facilities method from sope-gdl/GCSFolder.m.
1701
1702         * SoObjects/Contacts/SOGoContactFolders.m ([SOGoContactFolders
1703         -roleOfUser:uidinContext:context]): new method that returns
1704         SOGoRole_Assistant when the user is an assistant or a delegate on
1705         the "personal" ab object. This is so that setting roles on the
1706         SOGoContactFolders object is not required.
1707
1708 2006-12-14  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1709
1710         * Main/SOGo.m: declare "Freebusy" permissions for the top objects.
1711
1712         * UI/Contacts/UIxContactsAclsSelection.m: new component specific
1713         to the handling of the user selection for the acls.
1714
1715         * SoObjects/SOGo/SOGoPermissions.[hm]: new module that extends the
1716         values from SoPermissions with ones specific to SOGo.
1717
1718         * SoObjects/SOGo/SOGoAclsFolder.[hm]: new class module that
1719         handles the storage for the acls.
1720
1721         * SoObjects/Appointments/SOGoCalendarComponent.[hm]: new parent
1722         class for SOGoAppointmentObject and SOGoTaskObject.
1723
1724         * UI/Common/UIxAclEditor.[hm]: new component that provides a
1725         general editor for folder acls.
1726
1727         * SoObjects/SOGo/NSString+Utilities.[hm]: old "NSString+URL"
1728         renamed.
1729         ([NSString -davMethodToObjC]): method that returns the method name 
1730         for a DAV property implementation.
1731
1732         * SoObjects/SOGo/NSArray+Utilities.m: new extension module to
1733         NSArray.
1734         ([NSArray -stringsWithFormat:format]): new method that returns
1735         formatted occurences of the strings stored in the array.
1736
1737         * SoObjects/SOGo/SOGoDAVRendererTypes.m ([SOGoDAVSet
1738         +davSetWithArray:newValuesofValuesTaggedAs:newValueTag]): a new
1739         subclass module of SoWebDAVValue that supports collections of
1740         properties of the same type.
1741
1742 2006-11-21  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1743
1744         * SoObjects/Mailer/SOGoMailAccount.m ([SOGoMailAccount
1745         -lookupFolder:ofClassNamed:inContext:]): added the ability to
1746         configure the name of the SOGoDraftFolders with the ud var
1747         "SOGoDraftsFolderName".
1748
1749 2006-11-17  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1750
1751         * SoObjects/SOGo/SOGoObject.m ([SOGoObject
1752         -userTimeZone:username]): new method that returns the timezone for
1753         the specified user depending on his preferences and the server
1754         defaults
1755
1756         * SoObjects/Mailer/SOGoMailObject.m ([SOGoMailObject
1757         -stringForData:partInfo:]): take the encoding into account and
1758         translate the text to "normal" before processing the charset data.
1759
1760 2006-11-15  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1761
1762         * UI/WebServerResources/generic.js: the progress indicator is on
1763         when loading the page so we turn it off, and we turn it back on
1764         whenever we switch to another module...
1765
1766         * UI/WebServerResources/SchedulerUI.js: make sure the day view
1767         synchronization mechanism works everywhere.
1768
1769         * UI/WebServerResources/generic.js: the log window is not only
1770         visible when UIxDebugEnabled is set.
1771
1772         * UI/WebServerResources/SchedulerUI.js: the month overview's day
1773         cells are now initialized with the DOM event interface methods
1774         instead of with html attributes.
1775
1776         * UI/Templates/MailerUI/UIxMailView.wox: don't display useless
1777         headers (should be made configurable at some point)...
1778
1779         * OGoContentStore/sql/generate-folderinfo-sql-for-users.sh: drop
1780         "not null" constraint on startdate, enddate, isopaque,
1781         participants and partmails.
1782
1783 2006-11-14  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1784
1785         * UI/Scheduler/UIxCalDayTable.m ([UIxCalDayTable
1786         -hoursToDisplay]): prevent a crash by retaining the
1787         "hoursToDisplay" array after it's created.
1788         ([UIxCalDayTable -clickableHourCellClass]): new method for the new
1789         clickable hours DIV.
1790
1791         * UI/WebServerResources/SchedulerUI.js: made the event
1792         participation status modification asynchronous, which also fixes a
1793         bug where the window would sometimes close before the accept or
1794         decline action was completed. Also, adapted the event handling
1795         related to the days or weeks view with the new DIV-based layout.
1796
1797         * UI/Scheduler/UIxCalInlineAptView.m: same as the first below...
1798
1799         * UI/Scheduler/UIxCalDayTable.m: enhanced to provide the new
1800         DIV-based presentation of the days and weeks.
1801
1802         * SoObjects/Appointments/SOGoTaskObject.m: same as below...
1803
1804         * SoObjects/Appointments/SOGoAppointmentObject.m: lookupName:...
1805         might return an exception so we have to handle it if we don't
1806         wanna crash...
1807
1808 2006-11-13  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1809
1810         * UI/WebServerResources/SchedulerUI.js: updated the list
1811         initialization code to use the new event management scheme, adding
1812         what was missing to be able to delete events and tasks again.
1813
1814         * UI/WebServerResources/MailerUI.js: added code to activate the
1815         "Get mails" button. Fixed a bug which prevented messages to be
1816         deleted.
1817
1818         * UI/WebServerResources/UIxFreeBusyUserSelector.js: handle tab
1819         navigation and focus handling of INPUTs.
1820
1821 2006-11-10  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1822
1823         * UI/WebServerResources/MailerUI.js: added code to handle the
1824         possible drag and drop events to manager in the mail module.
1825         Moving messages, opening parent folders, ...
1826
1827         * UI/WebServerResources/SOGoDragAndDrop.js: new file containing
1828         the drag and drop manager as well as the interface to HTMLElement
1829         to trigger drag and drop events.
1830
1831         * UI/MailerUI/UIxMailView.m ([UIxMailView -moveAction]): new
1832         action to move the current message to the mailbox named after the
1833         value of parameter "tofolder".
1834
1835         * SoObjects/Mailer/SOGoMailObject.m ([SOGoMailObject
1836         -moveToFolderNamed:folderNameinContext:]): new method base on
1837         -trashInContext:.
1838
1839 2006-11-09  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1840
1841         * UI/WebServerResources/generic.js: added and activated many
1842         "load" handlers to configure generic widgets used across the
1843         modules. More events are now handled in a DOM-fashion way instead
1844         of by setting the relative attributes in the templates.
1845
1846         * UI/Templates/UIxSortableTableHeader.wox: all the events are
1847         declared from the javascript DOM onload handlers.
1848
1849         * UI/Templates/UIxPageFrame.wox: load the new SOGoDragHandles.js
1850         library.
1851
1852         * UI/Templates/MailerUI/UIxMailListView.wox: all the events are
1853         declared from the javascript DOM onload handlers.
1854
1855         * UI/MailerUI/UIxMailListView.m: removed all the JS methods since
1856         we want everything to be separated from each other, as much as
1857         possible.
1858
1859         * UI/WebServerResources/SOGoDragHandles.js: new module containing
1860         the "SOGoDragHandlesInterface", implementing methods that can be
1861         attributed to DIV so that they can be used as drag handles.
1862
1863         * SoObjects/Mailer/SOGoDraftObject.m ([NSString
1864         -asQPSubjectString]): initialize the tmp strings with '0' to make
1865         sure they don't contain garbage.
1866
1867 2006-11-08  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1868
1869         * UI/WebServerResources/MailerUI.js: register the messageList
1870         table as a dragging source and the leaf of the navigation tree as
1871         dnd destinations to the DNDManager.
1872
1873         * UI/WebServerResources/generic.js: initialize tabs from the
1874         "unload" event listener that is added programmatically instead of
1875         from the template... Also, added the new DNDManager object.
1876
1877         * UI/WebServerResources/HTMLTableElement.js: added code to
1878         simulate XUL drag n drop events. This code will possibly be moved
1879         to HTMLElement.js instead later...
1880
1881         * SoObjects/Contacts/SOGoContactLDAPFolder.m
1882         ([SOGoContactLDAPFolder -_qualifierForFilter:filter]): same as
1883         below.
1884
1885         * SoObjects/Contacts/SOGoContactGCSFolder.m ([SOGoContactGCSFolder
1886         -_qualifierForFilter:filter]): only search records which starts
1887         with the specified pattern.
1888
1889 2006-11-07  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1890
1891         * SoObjects/Mailer/SOGoDraftObject.m ([NSString
1892         -asQPSubjectString]): new method that returns the special QP
1893         string with its qp declaration for email subjects.
1894         ([SOGoDraftObject -bodyPartForText]) 
1895         ([SOGoDraftObject -mimeMessageForContentWithHeaderMap:]): don't
1896         double-encode data in UTF-8.
1897
1898         * UI/Scheduler/UIxComponentEditor.m ([UIxComponentEditor
1899         -newStartDate]): new method to determine the start date depending
1900         on the URL parameters, the current day and the current time.
1901         ([UIxComponentEditor -toolbar]): new method to determine the
1902         filename of the toolbar that should be drawn depending on the
1903         ownership and the list of attendees of the task/event wrt to the
1904         current user...
1905
1906         * UI/Scheduler/UIxTimeDateControl.m ([UIxTimeDateControl
1907         -setDayStartHour:aStartHour]): adjust the minutes to the next
1908         quarter of hour, if not already set to a quarter.
1909
1910         * UI/WebServerResources/UIxAppointmentEditor.js,
1911         UI/WebServerResources/UIxTaskEditor.js: added code to manage start
1912         date change.
1913
1914 2006-11-03  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1915
1916         * UI/Scheduler/UIxComponentEditor.m ([UIxComponentEditor
1917         -loadValuesFromComponent:component]): handles access class
1918         (privacy) and status.
1919
1920         * UI/Contacts/UIxContactsListViewContainer.m
1921         ([UIxContactsListViewContainer -additionalFolders]): return nil if
1922         [self additionalAddressBooks] returns an empty string.
1923
1924 2006-11-02  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1925
1926         * UI/Scheduler/UIxCalMonthView.m ([UIxCalMonthView
1927         rangesOf7Days]): enhanced and debugged algorithm to feed the array
1928         with slices where the first day is still in the requested month.
1929
1930         * UI/Templates/UIxPageFrame.wox: the logConsole is created only on
1931         non-popup pages.
1932
1933         * UI/SOGoUI/SOGoAptFormatter.m: added code to handle the display
1934         of events in the day boxes of the calendar's monthly view.
1935
1936         * SoObjects/Appointments/SOGoTaskObject.m ([SOGoTaskObject
1937         -davContentType]): declare "text/calendar".
1938
1939         * SoObjects/Appointments/SOGoAppointmentObject.m
1940         ([SOGoAppointmentObject -davContentType]): declare
1941         "text/calendar".
1942
1943         * SoObjects/Appointments/SOGoAppointmentFolder.m
1944         ([SOGoAppointmentFolder -lookupName:inContext:acquire:]): certain
1945         HTTP methods are handled by SOPE and requires nil to be returned,
1946         this method now invokes the new
1947         "requestNamedIsHandledLater:inContext:" method to check that.
1948         ([SOGoAppointmentFolder
1949         -requestNamedIsHandledLater:nameinContext:context]): new methods
1950         that returns "YES" only for the "OPTIONS" http method (for now...).
1951         ([SOGoAppointmentFolder -davComplianceClassesInContext:]):
1952         overloaded method to append the "access-control" and
1953         "calendar-access" DAV abilities to the initial declaration.
1954
1955         * UI/Scheduler/UIxCalMonthView.[hm]: rewritten module entirely to
1956         imitate the look of Sunbird/Lightning's monthly view.
1957
1958         * UI/Scheduler/UIxCalMonthView.[hm]: renamed to
1959         UIxCalMonthViewOld.[hm].
1960
1961 2006-11-01  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
1962
1963         * UI/Scheduler/UIxFreeBusyUserSelectorTable.m
1964         ([UIxFreeBusyUserSelectorTable -currentContactHasStatus]): new
1965         method.
1966         ([UIxFreeBusyUserSelectorTable -currentContactStatusImage]):
1967         returns an image name based on the participation status of the
1968         current attendee.
1969
1970         * UI/WebServerResources/SchedulerUI.js: same strip down as for
1971         generic.js below.
1972
1973         * UI/Contacts/UIxContactsListViewContainer.m ([UIxContactsListViewContainer -additionalAddressBooks]) 
1974         ([UIxContactsListViewContainer -additionalFolders]) 
1975         ([UIxContactsListViewContainer -setCurrentAdditionalFolder:newCurrentAdditionalFolder]) 
1976         ([UIxContactsListViewContainer -currentAdditionalFolder]): new
1977         methods to handle the external addressbooks a user has subscribed
1978         too, by retriving them from his preferences.
1979
1980         * UI/Contacts/UIxContactFoldersView.m ([UIxContactFoldersView
1981         -updateAdditionalAddressBooksAction]): new method that updates the
1982         user settings with the list of addressbook he has subscribed to.
1983
1984         * UI/Contacts/UIxContactsAddressBooksSelection.m: new component
1985         module for the address book selector.
1986
1987         * UI/Templates/ContactsUI/UIxContactsListViewContainer.wox: added
1988         a toolbar with two buttons ("add" and "remove") to manage the
1989         additional addressbooks a user might subscribe to.
1990
1991         * UI/WebServerResources/ContactsUI.js: added code to handle
1992         "external addressbooks" from the Javascript point-of-view, by
1993         extending existing methods and adding code for the "add ab" and
1994         "remove ab" buttons.
1995
1996         * UI/WebServerResources/generic.js: moved extensions methods to
1997         DOM elements to separate files for better clarity.
1998
1999         * UI/Common/UIxPageFrame.m ([UIxPageFrame -pageContentClasses]):
2000         new method that returns "pageContent" as class, but also "popup"
2001         for the DIV where the page content lies, so that we can manipulate
2002         the content of popup's with CSS identifiers.
2003
2004 2006-10-31  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2005
2006         * UI/Scheduler/UIxCalInlineAptView.m ([UIxCalInlineAptView
2007         -displayStyle]): new method that returns a string containing the
2008         css style relative to the current appointment cell. This code is
2009         currently inactive but might be reused later.
2010
2011         * UI/WebServerResources/SchedulerUI.js: added code to handle the
2012         display of the selected day (the day pointed by the mouse, or the
2013         current day when changing the view).
2014
2015         * UI/Scheduler/UIxCalDayTable.m ([UIxCalDayTable
2016         -dayCellClasses]): new method that returns a string containing the
2017         css classes applicable to the current cell, depending on the
2018         position of the day in the week, the day of today and the
2019         requested day.
2020
2021         * UI/Scheduler/UIxCalCalendarsListView.m ([UIxCalCalendarsListView
2022         -currentContactAptBorder]): new method that returns the
2023         appropriate border color for the specified user.
2024
2025         * SoObjects/Appointments/SOGoAppointmentObject.m
2026         ([SOGoAppointmentObject
2027         -saveContentString:contentStringbaseVersion:baseVersion]):
2028         overloaded method that parse new events and detects if they have
2029         an organizer or not. If they are new and have no organizer set
2030         (Sunbird/Lightning...), the owner of the event is set as
2031         organizer.
2032
2033         * SoObjects/Appointments/iCalEntityObject+Agenor.[hm]: new
2034         category that provides facility methods and interfaces to the
2035         AgenorUserManager.
2036
2037         * SoObjects/Contacts/product.plist: give full access to ANY
2038         authenticated user, not just the owner (to every objects...).
2039
2040 2006-10-30  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2041
2042         * UI/WebServerResources/UIxFreeBusyUserSelector.js: make sure
2043         every replica widgets are declared as such to their master
2044         counterpart. Take the days into account when displaying the time
2045         range taken by the appointment.
2046
2047         * UI/Scheduler/UIxComponent+Agenor.m ([UIxComponent
2048         -getICalPersonsFromValue:selectorValue]): method taken from
2049         UIxFreeBusyUserSelector, that is shared both by
2050         UIxFreeBusyUserSelector and UIxFreeBusyUserSelectorTable.
2051
2052         * SoObjects/Appointments/SOGoAppointmentFolder.m
2053         ([SOGoAppointmentFolder
2054         -fetchFields:_fieldsfromFolder:_folderfrom:_startDateto:_endDatecomponent:_component]): reverted to search algorithm to search for events happening outside 0 or 1 (at most) boundary of the timerange.
2055
2056         * UI/Scheduler/UIxFreeBusyUserSelectorTable.[hm]: new subcomponent
2057         derived and taken as a subset of UIxFreeBusyUserSelector that
2058         implements the table part of the FreeBusy view. Most of the
2059         methods of UIxFreeBusyUserSelector relative to that table were
2060         moved into UIxFreeBusyUserSelectorTable, which can also be used as
2061         a standalone view for AJAX operations.
2062
2063 2006-10-27  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2064
2065         * SoObjects/Contacts/SOGoContactLDAPEntry.m ([SOGoContactLDAPEntry
2066         -vCard]): change reverted.
2067
2068         * UI/Contacts/UIxContactEditor.m: check whether the client contact
2069         folder has selector "globallyUniqueObjectId" before calling that
2070         method.
2071
2072         * SoObjects/Contacts/SOGoContactLDAPEntry.m ([SOGoContactLDAPEntry
2073         -vCard]): the "setVClass" NGVCard method really is "setClass"
2074         instead.
2075
2076         * SoObjects/Contacts/SOGoContactLDAPFolder.m
2077         ([SOGoContactLDAPFolder -_searchAttributes]): fixed typo to
2078         request the "streetAddress" instead of the "streetaddress".
2079         ([SOGoContactLDAPFolder -_qualifierForFilter:filter]): lookup
2080         mails that *contain*, and not just *start with* the search
2081         pattern.
2082
2083         * SoObjects/Contacts/SOGoContactLDAPEntry.m ([SOGoContactLDAPEntry
2084         -vCard]): mark address returned from LDAP as the work address.
2085
2086         * UI/Templates/SchedulerUI/UIxCalInlineAptView.wox: made the whole
2087         span covered with the anchor, not only the textual information
2088         within.
2089
2090         * UI/Templates/SchedulerUI/UIxCalMainView.wox: specify the type
2091         argument (event or task) to newEvent in the appointmentListMenu.
2092         Make the appointmentsListView display the appointmentsListMenu.
2093
2094         * UI/SOGoUI/SOGoAptFormatter.m: enlarge the text size limit from
2095         12 to 50 before displaying "...".
2096         ([SOGoAptFormatter -fullDetailsForApt::]): display location only
2097         if its length > 0, whether location itself is nil or not...
2098         ([SOGoAptFormatter -tooltipForApt::_refDate]): display information
2099         of which the length > 0.
2100
2101 2006-10-26  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2102
2103         * UI/WebServerResources/UIxAppointmentEditor.js: correctly handles
2104         french and ISO dates.
2105
2106         * UI/Scheduler/UIxFreeBusyUserSelector.[hm]: added code an ivars
2107         from UIxContactSelector to handle contact lists (current and
2108         additional contacts).
2109
2110         * UI/MainUI/SOGoUserHomePage.m ([SOGoUserHomePage
2111         -_freeBusyAsText]): added handling of an "additional"-named query
2112         parameter that describe the number of additional days after
2113         enddate that should be returned.
2114
2115         * UI/Contacts/UIxContactFoldersView.m ([UIxContactFoldersView
2116         -_responseForResults:results]): give priority to results with
2117         "c_uid" fields. If none returned, use the first contact received.
2118
2119         * OGoContentStore/OCSiCalFieldExtractor.m ([OCSiCalFieldExtractor
2120         -extractQuickFieldsFromEvent:_event]): changed "TENTATIVE" code to
2121         2 and "CANCELLED" to 0.
2122
2123 2006-10-25  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2124
2125         * UI/WebServerResources/UIxAppointmentEditor.js: handle conversion
2126         of start and end dates to short string dates.
2127
2128         * UI/MainUI/SOGoUserHomePage.m ([SOGoUserHomePage
2129         -readFreeBusyAction]): new method that returns an array of numbers
2130         corresponding to the state in the freebusy of each "quarter of an
2131         hour" between the "sday" and "eday" date parameters passed in the
2132         url. This permits to handle the display of the freebusy with Ajax
2133         mechanisms.
2134         ([SOGoUserHomePage -_freeBusyAsText]): add 2 days to the end date
2135         since the free busy displays 2 days ahead.
2136
2137         * UI/Contacts/UIxContactFoldersView.m ([UIxContactFoldersView
2138         -contactSearchAction]): new action that returns the uid and the
2139         username + email of the user whose name contain the value of the
2140         "search" url parameter.
2141
2142         * SoObjects/Appointments/SOGoAppointmentFolder.m
2143         ([SOGoAppointmentFolder
2144         -fetchFreebusyInfosFrom:_startDateto:_endDate]): added fields
2145         useful for the computing of the status of the freebusy.
2146
2147         * UI/Scheduler/UIxFreeBusyUserSelector.m ([UIxFreeBusyUserSelector
2148         -init]): new component that incarnates a user selector for events
2149         inspired by the new one found in Thunderbird Lightning.
2150
2151 2006-10-23  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2152
2153         * UI/WebServerResources/generic.js: added code to enable or
2154         disable anchor visually (following our internal algorithm).
2155
2156         * UI/Scheduler/UIxComponentEditor.m ([UIxComponentEditor -init]):
2157         added new "url" ivar with its classic accessors.
2158         ([UIxComponentEditor -urlButtonClasses]): new method that returns
2159         the class strings for the url button on the appointment/task
2160         editor (depending on the validity of the url).
2161
2162         * UI/Templates/SchedulerUI/UIxTaskEditor.wox,
2163         UI/Templates/SchedulerUI/UIxAppointmentEditor.wox: start rewriting
2164         the template to match the Lightning's new task/appointment editor.
2165
2166         * UI/Scheduler/UIxAppointmentEditor.m ([UIxAppointmentEditor -saveValuesIntoAppointment:_appointment]): initialize url from the components'url.
2167
2168         * UI/Scheduler/UIxTaskEditor.m ([UIxTaskEditor -saveValuesIntoTask:_task]): initialize url from the components'url.
2169
2170 2006-10-20  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2171
2172         * SoObjects/Contacts/SOGoContactLDAPFolder.m
2173         ([SOGoContactLDAPFolder
2174         -lookupContactsWithFilter:filtersortBy:sortKeyordering:sortOrdering]): perform the searchs on objects which start with instead of contain the lookup key.
2175
2176         * SoObjects/Appointments/SOGoAptMailNotification.[hm]: work on
2177         iCalEntityObject instances instead of just iCalEvent's.
2178
2179         * SoObjects/Appointments/SOGoAppointmentFolder.m
2180         ([SOGoAppointmentFolder
2181         -fetchFields:_fieldsfromFolder:_folderfrom:_startDateto:_endDatecomponent:_component]): set ownership of returned records by adding an "owner" key to the resulting dictionaries.
2182
2183         * SoObjects/SOGo/NSObject+Owner.[hm]: removed module since it's a
2184         bad way of handling ownership that way.
2185
2186         * SoObjects/Contacts/SOGoContactLDAPFolder.m
2187         ([SOGoContactLDAPFolder -_qualifierForFilter:filter]): search also
2188         on "cn", just like Mozilla.
2189
2190 2006-10-19  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2191
2192         * UI/MailerUI/UIxMailToSelection.m ([UIxMailToSelection -to]):
2193         "to" should be retained, otherwise it will be autoreleased and a
2194         crash will occur.
2195
2196         * UI/Contacts/UIxContactEditor.m ([UIxContactEditor
2197         -writeAction]): updated method to fetch the card before initing
2198         the snapshot.
2199
2200         * OGoContentStore/OCSiCalFieldExtractor.m ([OCSiCalFieldExtractor
2201         -extractQuickFieldsFromTodo:_task]): fixed to use NSNull instead
2202         of NSNotFound.
2203
2204         * UI/Scheduler/UIxTaskEditor.m ([UIxTaskEditor
2205         -iCalStringTemplate]): start and due date are now optional.
2206
2207         * UI/Scheduler/UIxTimeDateControl.m ([UIxTimeDateControl
2208         -setDayStartHour:aStartHour]):  added a new "isDisabled" ivar with
2209         appropriate accessors to be settable through the templates.
2210
2211         * UI/Scheduler/UIxDatePicker.m ([UIxDatePicker -init]): added a
2212         new "isDisabled" ivar with appropriate accessors to be
2213         settable through the templates.
2214
2215         * UI/Scheduler/UIxComponentEditor.m ([UIxComponentEditor
2216         -availableCalendars]): new method that list the calendars to which
2217         the user has subscribed.
2218         ([UIxComponentEditor -componentOwner]): returns the owner of the
2219         editted object.
2220
2221         * OGoContentStore/OCSiCalFieldExtractor.m ([OCSiCalFieldExtractor
2222         -extractQuickFieldsFromTodo:_task]): set the start and enddate of
2223         quickentries to null whenever each or all of them are null, by
2224         providing an impossible timestamp from with NSNotFound as value.
2225
2226 2006-10-18  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2227
2228         * UI/WebServerResources/UIxMailEditor.js: update the algorithm
2229         that handles the creation of new fields with the new APIs and the
2230         new node structure on the page.
2231
2232         * UI/Scheduler/UIxAppointmentEditor.m,
2233         UI/Scheduler/UIxTaskEditor.m:
2234         refactored to user UIxComponentEditor as parent class.
2235
2236         * UI/Scheduler/UIxComponentEditor.[hm]: new class module
2237         containing the methods common to the UIxTaskEditor and the
2238         UIxAppointmentEditor.
2239
2240 2006-10-17  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2241
2242         * SoObjects/Appointments/SOGoAppointmentFolder.m
2243         ([SOGoAppointmentFolder -doCalendarQuery:context]): now supports
2244         the handling of time-ranges.
2245
2246         * UI/WebServerResources/ContactsUI.js: specify a notification type as
2247         parameters when onConfirmContactSelection in invoked.
2248
2249         * UI/WebServerResources/generic.js: specify a notification type as
2250         parameters when onContactRemove in invoked.
2251
2252         * UI/WebServerResources/SchedulerUI.js: when the user deselects
2253         all calendars, select his entry.
2254
2255 2006-10-16  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2256
2257         * UI/WebServerResources/SchedulerUI.js: edit and delete events
2258         with their owner-relative urls. Generate a correct entry in the
2259         css color table when a user is added to the calendars list. Put
2260         the same color next to the user id.
2261
2262         * UI/WebServerResources/generic.js: implemented some new helper
2263         methods.
2264
2265         * SoObjects/Appointments/SOGoAppointmentFolder.m
2266         ([SOGoAppointmentFolder -deleteEntriesWithIds:ids]): don't delete
2267         entries if their owner is not the current user.
2268
2269         * UI/Scheduler/UIxCalInlineAptView.m ([UIxCalInlineAptView
2270         -displayClasses]): return the correct class for the current event
2271         representation depending on its owner.
2272
2273         * UI/Scheduler/UIxCalCalendarsListView.m: added method to create
2274         and associate a color for each user login depending on its
2275         position in the list.
2276
2277         * UI/Scheduler/UIxCalAptListView.m ([UIxCalAptListView
2278         -currentRowCSSClass]): return the correct class for the current
2279         row depending on the owner of the event.
2280
2281         * UI/Contacts/UIxContactSelector.m ([UIxContactSelector
2282         -setColors:colors]): new method to associate a color table with
2283         each user in the list.
2284
2285         * SoObjects/Appointments/SOGoAppointmentFolder.m
2286         ([SOGoAppointmentFolder
2287         -fetchFields:_fieldsfromFolder:_folderfrom:_startDateto:_endDatecomponent:_component]): associate each returned record with the owner of the table they are retrieved from.
2288
2289         * SoObjects/SOGo/NSObject+Owner.[hm]: new extension module to
2290         NSObject to associate an instance with a user.
2291
2292 2006-10-13  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2293
2294         * UI/WebServerResources/SchedulerUI.js: added handling of multiple
2295         calendars.
2296
2297         * UI/WebServerResources/ContactsUI.js: added handling of
2298         notification of changes to contact selectors.
2299
2300         * UI/WebServerResources/generic.js: added handling of notification
2301         of changes to contact selectors.
2302
2303         * UI/Scheduler/UIxCalMainView.m ([UIxCalMainView
2304         -updateCalendarsAction]): proxy method to update the user
2305         preference table with the new selected calendar uids.
2306
2307         * UI/Contacts/UIxContactsListView.m ([UIxContactsListView
2308         -calendarsContactsAction]): new method.
2309
2310         * UI/Contacts/UIxContactSelector.m ([UIxContactSelector -setCheckedBoxes:boxes]) 
2311         ([UIxContactSelector -setHasCheckBoxes:aBool]) 
2312         ([UIxContactSelector -isCheckBoxChecked]): new accessors method to
2313         permit the drawing of checkboxes instead of card icons.
2314
2315         * UI/Scheduler/UIxCalCalendarsListView.m: new component class that
2316         wrap a selector the the "Calendars" tab.
2317
2318         * UI/Contacts/UIxContactsCalendarsSelection.m: buttons for the
2319         new user calendar selector.
2320
2321 2006-10-12  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2322
2323         * UI/Templates/SchedulerUI/UIxAppointmentEditor.wox: time ranges
2324         may cover hour 0 to hour 23.
2325
2326         * UI/Scheduler/UIxAppointmentEditor.m ([UIxAppointmentEditor
2327         -iCalStringFromQueryParameter:format:]): dates explicitly set to
2328         utc tz.
2329
2330         * UI/WebServerResources/SchedulerUI.js: manage both lists of
2331         objects wrt to the toolbar actions.
2332
2333         * UI/WebServerResources/generic.js: added code to the "String"
2334         class to decode number-encoded char entities.
2335
2336         * UI/Scheduler/UIxCalMainView.m ([UIxCalMainView
2337         -batchDeleteAction]): new method to delete selected entries in the
2338         lists.
2339
2340         * SoObjects/Appointments/SOGoAppointmentFolder.m
2341         ([SOGoAppointmentFolder -deleteEntriesWithIds:ids]): new method
2342         that delete identified entries in batch.
2343
2344         * UI/SOGoUI/UIxComponent.m ([UIxComponent
2345         -jsCloseWithRefreshMethod:methodName]): new method with explicit purpose.
2346
2347         * UI/Scheduler/UIxTaskEditor.m ([UIxTaskEditor -saveAction]),
2348         UI/Scheduler/UIxAppointmentEditor.m ([UIxAppointmentEditor
2349         -saveAction]), UI/MailerUI/UIxMailEditor.m ([UIxMailEditor
2350         -sendAction]), UI/Contacts/UIxContactEditor.m ([UIxContactEditor
2351         -saveAction]):
2352         return a UIxJSClose component if everything went fine.
2353
2354         * UI/Scheduler/UIxTaskEditor.h: interface extracted from
2355         UIxTaskEditor.m.
2356
2357         * UI/Scheduler/UIxAppointmentEditor.h: interface extracted from
2358         UIxAppointmentEditor.m.
2359
2360         * UI/Common/UIxJSClose.[hm]: new UIxComponent designed to display
2361         a very light page with javascript code to close a window, by
2362         calling a method on the opener if specified. This component is
2363         designed to work as a response to form postings.
2364
2365 2006-10-11  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2366
2367         * SoObjects/Appointments/SOGoTaskObject.[hm]: clone of
2368         SOGoAppointmentObject adapted for the handling of tasks.
2369
2370         * SoObjects/Appointments/NSArray+Appointments.[hm]: category
2371         extracted from SOGoAppointmentObject.
2372
2373         * UI/Scheduler/UIxAppointmentEditor.m ([UIxAppointmentEditor
2374         -saveUrl]): returns the url needed to POST the new form to.
2375         redirect the user to <aptid>/editAsAppointment instead of /edit,
2376         so that SOGoAppointmentFolder can return the correct object type.
2377
2378         * SoObjects/SOGo/NSObject+AptComparison.m ([NSObject
2379         -compareAptsAscending:_other]): accept empty start or end dates.
2380
2381         * SoObjects/Appointments/SOGoAppointmentFolder.m
2382         ([SOGoAppointmentFolder
2383         -fetchFields:_fieldsfromFolder:_folderfrom:_startDateto:_endDatecomponent:_component]): added a "component" parameter to match the query against the specified component types. Made startDate and endDate optional by ignoring them altogether in the query whenever one of them is nil.
2384         ([SOGoAppointmentFolder -doCalendarQuery:context]): fetch
2385         components of type "vtodo" as well as "vevent".
2386         ([SOGoAppointmentFolder -lookupName:inContext:acquire:]): if the
2387         url specified ends with AsTask or AsAppointment, returns the
2388         an object of the appropriate class, otherwise deduce it from its
2389         content if the HTTP method is "PUT", otherwise read its type from
2390         the quick table.
2391
2392         * OGoContentStore/OCSiCalFieldExtractor.m ([OCSiCalFieldExtractor
2393         -extractQuickFieldsFromTodo:_task]): extract quick fields from
2394         tasks.
2395
2396         * UI/Scheduler/UIxCalView.m ([UIxCalView
2397         -fetchCoreAppointmentsInfos]): replacement methods for
2398         fetchCoreInfos but by retrieving object with component "vevent".
2399         ([UIxCalView -fetchCoreTasksInfos]): same as above for "vtodo"
2400         components.
2401
2402         * UI/Scheduler/UIxCalTasksListView.[hm]: clone of
2403         UIxCalAptListView adapted for the handling of tasks.
2404
2405         * UI/Scheduler/UIxTaskProposal.[hm],
2406         UI/Scheduler/UIxTaskView.[hm], UI/Scheduler/UIxTaskEditor.[hm]:
2407         clones of the UIxAppointment* classes for the handling of tasks.
2408
2409         * UI/WebServerResources/UIxTaskEditor.js: clone of
2410         UIxAppointmentEditor adapted for the handling of tasks.
2411
2412         * UI/WebServerResources/SchedulerUI.js: added support for tasks.
2413         Scroll the daily view to the appropriate hour when an appointment
2414         is selected in the appointments list.
2415
2416 2006-10-05  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2417
2418         * UI/Scheduler/UIxTimeDateControl.m ([UIxTimeDateControl
2419         -setDayStartHour:aStartHour]): specifies the user timezone on the
2420         given date.
2421
2422         * UI/Scheduler/UIxAppointmentEditor.m: indicate DTSTAMP with "GMT"
2423         as timezone.
2424
2425         * SoObjects/SOGo/NSCalendarDate+SOGo.m ([NSCalendarDate -adjustedDate]) 
2426         ([NSCalendarDate -driftedDate]): methods made useless by a better
2427         comprehension of the NSTimeZone API...
2428
2429 2006-10-04  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2430
2431         * UI/SOGoUI/UIxComponent.m ([UIxComponent -selectedDate]): call
2432         new methods from the NSCalendarDate methods.
2433
2434         * SoObjects/SOGo/NSCalendarDate+SOGo.m: module replacing and
2435         extending UI/Scheduler/NSCalendarDate+Scheduler.m.
2436         ([NSCalendarDate
2437         +dateFromShortDateString:dateStringandShortTimeString:timeStringinTimeZone:timeZone]): new method that generates a date from two short string formatted as follow: "yyyymmdd" and "hhmm". Thismethod replaces a similar method from UIxComponent (noted below).
2438         ([NSCalendarDate -adjustedDate]): this method returns another
2439         instance set to the correct hour after the original date was set
2440         from a non-GMT timezone. This date can be used for storage.
2441         ([NSCalendarDate -driftedDate]): this method does exactly the
2442         opposite of -adjutedDate, that is, it enables the method
2443         hourOfDay, minuteOfHour etc... to return the values according to
2444         the original date's timezone. This date CANNOT be used for storage.
2445
2446         * UI/Scheduler/NSCalendarDate+Scheduler.m ([NSCalendarDate
2447         -shortDateString]): new method that will return a "short date
2448         string" (yyyymmdd) from a calendar date object.
2449
2450         * UI/SOGoUI/UIxComponent.m ([UIxComponent
2451         -_cDateFromShortDateString:dateStringandShortTimeString:timeString]): new method to compute the selected date from the "day" and "hm" query parameters (if found). This method replaces the old algorithm that was found in the "selectedDate" method.
2452
2453         * Main/sogod.m (main): initialize the NSTimeZone's defaultTimeZone
2454         to the value of SOGoServerTimeZone or "Canada/Eastern" if not found.
2455
2456 2006-10-03  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2457
2458         * UI/WebServerResources/SchedulerUI.js: added code to scroll the
2459         view of the day at the height of hour 8:00.
2460
2461         * UI/Scheduler/UIxCalView.m ([UIxCalView -dayStartHour]): returns 0.
2462         ([UIxCalView -dayEndHour]): returns 24.
2463
2464         * UI/Contacts/UIxContactFoldersView.m ([UIxContactFoldersView -defaultAction]) 
2465         ([UIxContactFoldersView -newAction]): invoke
2466         _selectActionForApplication: on self with the proper attribute too.
2467
2468         * UI/Contacts/UIxContactsSelectionViewContainer.m: removed since
2469         we now use the action mechanism in UIxContactsListView to keep the
2470         same view for the contact selectors and the regular contact view.
2471
2472         * UI/Contacts/UIxContactsListViewContainer.[hm]: replaces
2473         UIxContactsListViewContainerBase.[hm]
2474
2475         * UI/Contacts/UIxContactsListView.[hm]: replaces UIxContactsListViewBase.[hm]
2476
2477         * UI/WebServerResources/generic.js: generalized emailstring
2478         handling functions. Generalized address book access functions.
2479
2480         * UI/Contacts/UIxContactsListViewBase.m ([UIxContactsListViewBase
2481         -isPopup]): return YES if the "popup" query parameter is set.
2482
2483         * UI/Contacts/UIxContactFoldersView.m ([UIxContactFoldersView
2484         -defaultAction]): keep the url parameters when redirecting.
2485         ([UIxContactFoldersView -selectForSchedulerAction]) 
2486         ([UIxContactFoldersView -selectForMailerAction]): new action
2487         methods for the /scheduler-contacts and /mailer-contacts invocations.
2488
2489         * SoObjects/SOGo/SOGoObject.m: compose the action url using the
2490         newly available NSString+URL category.
2491
2492         * SoObjects/SOGo/NSDictionary+URL.m ([NSDictionary
2493         -asURLParameters]): handle dictionary entries which could be
2494         instances of NSArray rather than NSString.
2495
2496         * SoObjects/SOGo/NSString+URL.m ([NSString
2497         -composeURLWithAction:actionparameters:urlParametersandHash:useHash]): when composing the url, remove the encoded parameters first since they will be added later.
2498         ([NSString -urlWithoutParameters]): new method that returns the
2499         url without its parameters.
2500
2501         * SoObjects/SOGo/NSString+iCal.h: deleted obsolete file.
2502
2503         * SoObjects/SOGo/NSDictionary+URL.[hm],
2504         UI/SOGoUI/NSString+URL.[hm]: moved from UI/SOGoUI/.
2505
2506         * UI/WebServerResources/UIxMailEditor.js: add support for
2507         additions of different types (to, cc, bcc) of recipients from the
2508         address book.
2509
2510         * UI/Common/UIxPageFrame.m ([UIxPageFrame -doctype]): added the
2511         "<?xml..." header.
2512
2513         * UI/Contacts/UIxContactsMailerSelection.m,
2514         UI/Contacts/UIxContactsSchedulerSelection.m: classes replacing
2515         UI/Contacts/UIxContactsSelectionView.m to provide a different set
2516         of widgets depending on the application invoking the contact list.
2517
2518 2006-09-29  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2519
2520         * UI/WebServerResources/ContactsUI.js: hide the current contact
2521         whenever the user changes of contact folder.
2522
2523         * UI/WebServerResources/UIxContactEditor.js: the contact UID is
2524         now provided by the template when loading the page.
2525
2526         * SoObjects/SOGo/AgenorUserManager.m ([AgenorUserManager
2527         -iCalPersonWithUid:uid]): new method taken from removed module
2528         'iCalPerson+UIx';
2529
2530 2006-09-28  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2531
2532         * UI/Scheduler/UIxAppointmentView.m ([UIxAppointmentView
2533         -categoriesAsString]): same as below.
2534
2535         * UI/Scheduler/UIxAppointmentEditor.m: adapted by using the new
2536         vcalendar API's iCalEvent instead of the removed SOGoAppointment.
2537
2538         * SoObjects/Appointments/SOGoAppointmentObject.m
2539         ([SOGoAppointmentObject -calendarFromContent:cnt]): new helper method.
2540         ([SOGoAppointmentObject -firstEventFromCalendar:calendar]): new
2541         helper method.
2542
2543         * SoObjects/Appointments/SOGoAppointmentFolder.m
2544         ([SOGoAppointmentFolder -doCalendarQuery:context]): added a
2545         hackish test to detect whether the request concernes VEVENT's or
2546         anything else. Return events only in the former case.
2547         ([SOGoAppointmentFolder
2548         -fetchOverviewInfosFrom:_startDateto:_endDate]): retrieve the
2549         c_name quickfield so that the calendar list can identify the
2550         appointments with their complete "filename".
2551
2552         * OGoContentStore/OCSiCalFieldExtractor.m: use CardGroup's
2553         groupsOfClass:fromSource: to parse the given vcalendar.
2554
2555         * UI/Scheduler/iCalRecurrenceRule+SOGo.m: removed obsolete class.
2556
2557         * UI/Scheduler/SOGoAppointment+UIx.h: removed obsolete class.
2558
2559         * SoObjects/SOGo/SOGoAppointmentICalRenderer.[hm]: removed
2560         obsolete class.
2561
2562         * SoObjects/SOGo/SOGoAppointment.[hm]: removed obsolete class.
2563
2564 2006-09-26  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2565
2566         * SoObjects/Appointments/SOGoAppointmentFolder.m
2567         ([SOGoAppointmentFolder -lookupName:inContext:acquire:]): be
2568         sensitive to the CalDAV method names.
2569         ([SOGoAppointmentFolder -doCalendarQuery:context]): method for the
2570         "calendar-query" CalDAV method name.
2571
2572         * UI/WebServerResources/ContactsUI.js: removed a lot of useless
2573         code coming originally from MailerUI.js.
2574
2575         * UI/WebServerResources/UIxContactEditor.js: imitate the
2576         Thunderbird address book by completing the display name with the
2577         content of the first and last name fields, until the display name
2578         is modified manually.
2579
2580         * UI/WebServerResources/generic.js: added a "trim" method to the
2581         String class.
2582
2583         * UI/Contacts/UIxContactsListViewBase.m ([UIxContactsListViewBase
2584         -displayName]): new method that returns the display name from "cn"
2585         or from the "displayName" key if found.
2586
2587         * UI/Contacts/UIxContactEditor.m ([UIxContactEditor
2588         -initSnapshot]): check if "[card n]" returns anything to avoid a
2589         crash.
2590
2591         * UI/Common/UIxPageFrame.m ([UIxPageFrame -doctype]): new method
2592         that returns an unparsed doctype definition for the pages.
2593
2594         * SoObjects/Contacts/SOGoContactLDAPEntry.m ([SOGoContactLDAPEntry
2595         -vCard]): set the card's fn to attribute "displayName" if found
2596         before "cn".
2597
2598 2006-09-20  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2599
2600         * SoObjects/Contacts/SOGoContactLDAPEntry.m ([SOGoContactLDAPEntry
2601         -vCard]): handle the "streetAddress" and "l" fields.
2602
2603         * UI/Templates/MailerUI/UIxMailEditor.wox: arranged the message
2604         header fields by converting the tables to DIVs and SPANs.
2605
2606         * UI/WebServerResources/generic.css: attempted unification of font
2607         families and size across all the elements. changed the
2608         logConsole's "position" from "fixed" to "absolute" to avoid
2609         performance issues.
2610
2611 2006-09-19  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2612
2613         * UI/WebServerResources/ContactsUI.js (uixDeleteSelectedContacts):
2614         empty the contact view when the current contact is being deleted.
2615
2616         * UI/WebServerResources/MailerUI.js (newContactFromEmail): fully
2617         parse the email field and provide the address full name if found
2618         as the "contactFN" parameter.
2619
2620         * UI/WebServerResources/generic.js (openMailTo): do not give a
2621         name to the opened window so that serveral ones can be opened at
2622         the same time.
2623
2624         * UI/MailPartViewers/UIxMailPartTextViewer.m
2625         ([UIxMailPartTextViewer -flatContentAsString]): override method by
2626         replacing carriage returns with "<br />" in the result string from
2627         super's implementation.
2628
2629         * UI/Contacts/UIxContactView.m ([UIxContactView
2630         -_urlOfType:aType]): don't manage non-mailto urls through
2631         javascript, let the user decide what's best for him.
2632
2633         * UI/Contacts/UIxContactFoldersView.m ([UIxContactFoldersView
2634         -newAction]): transfer all the query parameters by using the
2635         "asURLParameters"'s result string from [self queryParameters].
2636
2637         * UI/Contacts/UIxContactEditor.m ([UIxContactEditor
2638         -initSnapshot]): retrieve "contactEmail" and "contactFN" from the
2639         query parameters and put their values (if any) into the snapshot.
2640
2641         * UI/Contacts/UIxContactView.m ([UIxContactView -note]): convert
2642         carriage-returns to "<br />".
2643         ([UIxContactView -workCompany]): explicitly initialize company to
2644         nil if org is nil or empty.
2645
2646         * UI/WebServerResources/UIxContactEditor.js: updated validation
2647         code after we added and renamed some fields.
2648
2649         * UI/WebServerResources/ContactsUI.js: added code to cache contact
2650         cards and to handle card updates.
2651
2652 2006-09-18  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2653
2654         * UI/Contacts/UIxContactView.m ([UIxContactView -hasOtherInfos]):
2655         test the length of the returned string since they will never be
2656         nil.
2657
2658         * UI/Contacts/UIxContactEditor.m ([UIxContactEditor -saveAction]):
2659         return self if the process went successful, returns an exception
2660         otherwise (and only otherwise...).
2661
2662         * OGoContentStore/OCSContactFieldExtractor.m
2663         ([OCSContactFieldExtractor -extractQuickFieldsFromVCard:_vCard]):
2664         adapted method to the new VCard api. Since the cards are stored in
2665         vcard format, we no longer deal with a dictionary but with a
2666         NGVCard object...
2667
2668 2006-09-15  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2669
2670         * UI/Contacts/UIxContactView.m ([UIxContactView -preferredEmail]):
2671         return a string with a "mailto" url.
2672         ([UIxContactView -_urlOfType:aType]): generic method to return a
2673         url string with a html anchor pointing to it.
2674
2675         * UI/Contacts/UIxContactEditor.[hm]: UIxContactEditorBase renamed
2676         since subclass "UIxContactEditor" did nothing. Implemented code to
2677         display and modify the values parsed from the vcards, displayed in
2678         a way similar to the Thunderbird addressbook.
2679
2680         * SoObjects/Contacts/SOGoContactLDAPEntry.m ([SOGoContactLDAPEntry
2681         -save]): new dummy method.
2682
2683         * SoObjects/Contacts/SOGoContactGCSEntry.m ([SOGoContactGCSEntry
2684         -save]): made method void.
2685
2686 2006-09-13  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2687
2688         * UI/Contacts/UIxContactView.m: added many wrapper methods to
2689         display blocks of data Ã  la Thunderbird Addressbook. If data is
2690         available, those wrappers (around the NGVCard methods) will
2691         enclose the results in a proper HTML output with the correct label
2692         (if present), otherwise it will return an empty string.
2693         ([UIxContactView -vcardAction]): new action to return the contact
2694         as text/vcard (for exporting).
2695
2696         * SoObjects/Contacts/SOGoContactLDAPEntry.m ([SOGoContactLDAPEntry
2697         +contactEntryWithName:aNamewithLDAPEntry:anEntryinContainer:aContainer]): adapted the mapping of the LDIF data with the new NGVCard API.
2698
2699         * SoObjects/Contacts/SOGoContactGCSEntry.m ([SOGoContactGCSEntry
2700         -vCard]): create a new NGVCard instance when no data is available
2701         and retain it.
2702         ([SOGoContactGCSEntry -save]): save the vCard using the new
2703         "versitString" API method/message.
2704
2705         * UI/Contacts/UIxContactView.h: separated interface from
2706         UIxContactView.m.
2707
2708         * UI/WebServerResources/ContactsUI.js: add-ed code to download card
2709         views and display them beneath the list.
2710
2711 2006-09-08  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2712
2713         * SoObjects/SOGo/SOGoObject.m ([SOGoObject -userTimeZone]): retain
2714         the timezone even when it's the server timezone.
2715
2716         * SoObjects/SOGo/SOGoUserFolder.m ([SOGoUserFolder
2717         -privateContacts:inContext:]): no long configure the calendar
2718         object with the user's timezone since it's now accessible
2719         application-wide throught the SOGoObject methods.
2720
2721         * UI/SOGoUI/UIxComponent.[hm]: removed the "viewTimeZone" ivar and
2722         method. Removed the "backendTimeZone" method.
2723
2724         * UI/MainUI/SOGoUserHomePage.[hm]: made a subclass of UIxComponent
2725         instead of SoComponent.
2726
2727         * SoObjects/Appointments/SOGoAppointmentObject.m: 
2728         ([SOGoAppointmentObject -viewTimeZoneForPerson:_person]): returns
2729         [self serverTimeZone] instead of "EST" (which was removed).
2730
2731         * SoObjects/Appointments/SOGoAppointmentFolder.[hm]: removed the
2732         "timeZone" ivar and its accessors.
2733
2734         * SoObjects/SOGo/SOGoObject.m ([SOGoObject -serverTimeZone]): new
2735         centralized method returing the timezone configured in the
2736         userdefaults db or "Canada/Eastern" if missing.
2737         ([SOGoObject -userTimeZone]): new centralized method returing the
2738         timezone of the current user or the server timezone if missing
2739         from the user configuration table.
2740
2741 2006-09-07  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2742
2743         * UI/WebServerResources/SchedulerUI.js: implemented caching of
2744         date selectors.
2745
2746         * UI/SOGoUI/UIxComponent.m ([UIxComponent -userFolderPath]):
2747         return a path based on the object's context instead of the first
2748         level in SOGo's object hierarchy...
2749
2750 2006-09-06  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2751
2752         * UI/Templates/SchedulerUI/UIxCalDayTable.wox: day columns can now
2753         be clicked.
2754
2755         * UI/Templates/SchedulerUI/UIxCalDateSelector.wox: pass the user's
2756         timezone ([self viewTimeZone]) to the WEMonthOverview component to
2757         avoid a confusion with the days.
2758
2759         * UI/Templates/SchedulerUI/UIxCalInlineAptView.wox: appointments
2760         can now be clicked.
2761
2762         * UI/WebServerResources/SchedulerUI.js: implemented a mechanism to
2763         imitate Sunbird's synchronization between the 3 visible views.
2764
2765         * UI/SOGoUI/UIxComponent.m ([UIxComponent -selectedDate]): make
2766         sure the numbers in dateString are formatted so as to take 4 chars
2767         for the year and 2 for the day and the month, otherwise
2768         NSCalendarDate will return a nil date.
2769         ([UIxComponent -applicationPath]): return a path based on the
2770         object's context instead of the second level in SOGo's object
2771         hierarchy...
2772
2773 2006-09-05  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2774
2775         * UI/SOGoUI/UIxComponent.m ([UIxComponent -selectedDate]): add the
2776         user's timezone abbreviation to the date string passed as parameter to
2777         NSCalendarDate to generate an accurate date instance. Do the same
2778         when no date is specified and today is chosen.
2779
2780         * UI/WebServerResources/UIxAppointmentEditor.js: convert the
2781         form's time values to integers before comparing them.
2782
2783         * UI/Scheduler/UIxCalAptListView.m ([UIxCalAptListView -currentStartTime]) 
2784         ([UIxCalAptListView -currentEndTime]): initialize the resulting
2785         dates timezone with [self viewTimeZone].
2786
2787         * UI/SOGoUI/UIxComponent.m ([UIxComponent -init]): new
2788         "viewTimeZone" ivar destined to hold an instance of the user's
2789         timezone in memory.
2790         ([UIxComponent -viewTimeZone]): take the timezone from the user's
2791         prefs.
2792
2793 2006-08-30  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2794
2795         * UI/Templates/SchedulerUI/UIxAppointmentEditor.wox: completely
2796         rearranged the layout.
2797
2798         * UI/WebServerResources/UIxAppointmentEditor.js: added code to
2799         manage showing and hiding appointment details.
2800
2801         * SoObjects/SOGo/SOGoUserFolder.m ([SOGoUserFolder
2802         -privateContacts:inContext:]): init the SOGoAppointmentFolder's
2803         timezone by taking the current user's timezone setting.
2804
2805         * SoObjects/Appointments/SOGoAptMailNotification.m: same as below.
2806
2807         * SoObjects/Appointments/SOGoAppointmentObject.m
2808         ([SOGoAppointmentObject -changeParticipationStatus:inContext:]):
2809         set default timezone to EST, although this code should be
2810         rewritten to handle a system and a user default value.
2811
2812         * UI/Scheduler/UIxTimeDateControl.m ([UIxTimeDateControl
2813         -takeValuesFromRequest:_rqinContext:_ctx]): enhanced method to
2814         take the values from the hour and minute INPUTs when data is
2815         POSTed since we no longer use the UIxTimeSelector component.
2816         ([UIxTimeDateControl -selectableHours]) 
2817         ([UIxTimeDateControl -selectableMinutes]): new methods used by the
2818         template SELECTs to display reasonable and acceptable values
2819         instead of all the possibilities.
2820
2821         * UI/WebServerResources/generic.js: adapted code for the new
2822         implementation of the UIxContactSelector component (added a
2823         "remove" button, removed the previous INPUT and replaced them with
2824         links of class "button").
2825
2826         * UI/Scheduler/UIxTimeDateControl.h: separated interface from
2827         UIxTimeDateControl.m.
2828
2829         * UI/Scheduler/UIxCalDayTable.m ([UIxCalDayTable -currentAppointmentDay]) 
2830         ([UIxCalDayTable -currentAppointmentHour]): new methods that
2831         returns correctly formatted values used as attributes for JS code.
2832
2833         * UI/Contacts/UIxContactSelector.m ([UIxContactSelector
2834         -initialContactsAsString]): renamed implementation of
2835         initialParticipants.
2836         ([UIxContactSelector -currentContactId]) 
2837         ([UIxContactSelector -currentContactName]): new methods used when
2838         listing the initial contacts in the widget. Currently, both return
2839         the person's cn but the latter should ultimately return a user
2840         fullname.
2841
2842         * UI/Contacts/UIxContactSelector.h: separated interface from
2843         UIxContactSelector.m.
2844
2845         * UI/Scheduler/UIxDatePickerScript.[hm]: component removed since
2846         all javascript code is now put in Scheduler.js/generic.js.
2847
2848         * UI/Scheduler/NSCalendarDate+UIx.[hm]: category removed, code
2849         moved into NSCalendarDate+Scheduler instead.
2850
2851         * SoObjects/Appointments/SOGoAppointmentFolder.m
2852         ([SOGoAppointmentFolder -setTimeZone:newTZ]): new method to
2853         configure the timezone from SOGoUserFolder when the instance is
2854         being created.
2855         ([SOGoAppointmentFolder -viewTimeZone]): MET was removed. Returns
2856         the value of the new "timezone" ivar.
2857
2858 2006-08-25  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2859
2860         * UI/WebServerResources/SchedulerUI.{css,js}: added a tabview with
2861         the date selector in the first page and the container of the
2862         future calendar selector in the second page.
2863
2864         * UI/WebServerResources/generic.js: added code for handling tabbed
2865         views.
2866
2867         * UI/Common/UIxPageFrame.m ([UIxPageFrame -productFrameworkName]):
2868         returns the bundle name associated to the current running product.
2869
2870 2006-08-24  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2871
2872         * UI/WebServerResources/UIxAppointmentEditor.js: fixed the AJAX
2873         exception by invoking a timeout on the opener rather than invoking
2874         the list refresh method.
2875
2876         * UI/Scheduler/UIxCalDayView.m ([UIxCalDayView -labelForDay]):
2877         removed method.
2878
2879         * UI/Scheduler/UIxCalWeekView.m ([UIxCalWeekView -weekBeforePrevWeekQueryParameters]) 
2880         ([UIxCalWeekView -prevWeekQueryParameters]) 
2881         ([UIxCalWeekView -nextWeekQueryParameters]) 
2882         ([UIxCalWeekView -weekAfterNextWeekQueryParameters]): new methods
2883         that return the dates relatively to the current day.
2884         ([UIxCalWeekView -lastWeekName]) 
2885         ([UIxCalWeekView -currentWeekName]) 
2886         ([UIxCalWeekView -nextWeekName]) 
2887         ([UIxCalWeekView -weekAfterNextWeekName]) 
2888         ([UIxCalWeekView -_weekNumberWithOffsetFromToday:offset]): new
2889         methods that returns the label for the corresponding weeks.
2890
2891         * UI/Scheduler/UIxCalDayTable.[hm]: new class module/component
2892         used by UIxCalDayView and UIxCalWeekView to display the events
2893         occuring in one or more days.
2894
2895 2006-08-22  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2896
2897         * UI/Scheduler/UIxCalMainView.m: extended class to populate the
2898         entries in the new "monthMenu" and "yearMenu".
2899
2900         * UI/Scheduler/UIxCalDayView.m ([UIxCalDayView -labelForDay]): new
2901         method to return the current day as a string formatted depending
2902         on the current locale.
2903
2904         * UI/Scheduler/UIxCalAptListView.m ([UIxCalAptListView -startDate]) 
2905         ([UIxCalAptListView -endDate]): "today" is now the default filter
2906         for displayed events.
2907         ([UIxCalAptListView -currentSerialDay]): new method returning the
2908         date of the current enumerated appointment in serial form
2909         (yyyymmdd).
2910
2911         * UI/WebServerResources/SchedulerUI.js: added code to select the
2912         relevant day when an appointment is selected. Added code to popup
2913         a month and a year menu whenever the header entries are clicked in
2914         the calendar widget.
2915
2916         * UI/WebServerResources/generic.js: made addClassName and
2917         removeClassName methods of HTMLElement.
2918
2919 2006-08-21  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2920
2921         * UI/WebServerResources/MailerUI.js: fixed the contact creation
2922         from email addresses.
2923
2924         * UI/WebServerResources/generic.js: centralized the search-related
2925         functions here since the same code was used across the 3
2926         applications.
2927
2928         * UI/Scheduler/UIxCalAptListView.m ([UIxCalAptListView -startDate]) 
2929         ([UIxCalAptListView -endDate]): return the required dates needed
2930         depending on the value given to the "filterpopup" url parameter.
2931
2932         * UI/Common/UIxToolbar.m ([UIxToolbar -buttonLabel]): reduced the
2933         code by invoking UIxComponent's labelForKey:.
2934
2935         * UI/SOGoUI/UIxComponent.m ([UIxComponent -labelForKey:]): use
2936         [self pageResourceManager] instead of [self resourceManager].
2937
2938         * UI/Contacts/UIxContactEditorBase.m: invokes
2939         globallyUniqueObjectId on the clientobject's class instead of the
2940         hardcoded "SOGoFolder".
2941
2942         * UI/Contacts/UIxContactFoldersView.m ([UIxContactFoldersView
2943         -newAction]): redirect the "new" action to the personal (default)
2944         contact folder.
2945
2946         * SoObjects/SOGo/SOGoObject.m ([SOGoObject
2947         +objectWithName:inContainer:]): new constructor.
2948
2949         * SoObjects/Contacts/SOGoContactGCSFolder.m ([SOGoContactGCSFolder
2950         -lookupContactWithId:recordId]): always create a contact object,
2951         even if it does not exist.
2952
2953 2006-08-18  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2954
2955         * UI/Scheduler/UIxCalMainView.[hm]: new class to serve as a pseudo
2956         component that lays out the different components of SOGoCalendar.
2957         Only serves as an Objective-C counterpart to its xml template.
2958
2959         * UI/Scheduler/UIxCalInlineMonthOverview.h: interface extracted
2960         from its .m file.
2961
2962         * UI/Scheduler/UIxCalFilterPanel.[hm]: new class designed to
2963         display a widget to handle the information displayed in the
2964         appointments list. Not currently used, lacks implementation.
2965
2966         * UI/Scheduler/UIxCalDateSelector.[hm]: new class designed to
2967         display a calendar as a dynamic widget from where one can select
2968         the current visible day.
2969
2970         * UI/Scheduler/NSCalendarDate+Scheduler.[hm]: category code
2971         extracted from UIxCalInlineMonthOverview.m.
2972
2973         * UI/Scheduler/UIxDatePicker.m: removed the jsPopup, jsCode and
2974         calendarPageURL methods. The javascript code is handled by .js
2975         files as much as possible...
2976
2977         * UI/WebServerResources/ContactsUI.js,
2978         UI/WebServerResources/MailerUI.js: adapted to the code refactoring
2979         in generic.js.
2980
2981         * UI/WebServerResources/SchedulerUI.js: implemented functions to
2982         handle the new widgets. XmlHTTPRequest code taken from
2983         MailerUI.js.
2984
2985         * UI/WebServerResources/generic.js: put some functions related to
2986         element selections as methods to HTMLElement and HTMLTableElement.
2987
2988         * UI/Scheduler/UIxCalAptListView.[hm]: new class designed to
2989         display the list of appointments (embodies the code-size of
2990         UIxCalAptListView; answers to the "aptlist" method).
2991
2992 2006-08-15  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
2993
2994         * UI/Scheduler/UIxCalWeekOverview.m ([UIxCalWeekOverview
2995         -correctURLAction]): new short action method replacing the method
2996         below by taking far less code.
2997
2998         * SoObjects/Appointments/SOGoAppointmentFolder.m
2999         ([SOGoAppointmentFolder -GETAction:]): removed method. Replaced
3000         with an action in the view-related code.
3001
3002         * UI/Scheduler/UIxAppointmentEditor.m: invoke
3003         "stringByEscapingHTMLString" on the resulting value to avoid
3004         issues with accented characters.
3005         ([-jsCode]): removed method since the javascript code was merged
3006         into SchedulerUI.js.
3007
3008 2006-08-14  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
3009
3010         * UI/Scheduler/iCalPerson+UIx.m ([iCalPerson +personWithUid:]):
3011         new class method that returns an iCalPerson based on the UID given
3012         as param.
3013
3014         * UI/Contacts/UIxContactsListViewContainerBase.m: 
3015         UIxContactsListViewContainer renamed to serve as a base class for
3016         the contact lists in both the contact editor and the contact
3017         selectors.
3018
3019         * SoObjects/Contacts/SOGoContactLDAPFolder.m
3020         ([SOGoContactLDAPFolder
3021         -LDAPSetHostname:setPort:setBindDN:setBindPW:setContactIdentifier:
3022         setUserIdentifier:setRootDN:]): an LDAP field specifying the
3023         loginname of the users can now be specified.
3024
3025         * UI/WebServerResources/generic.js: added code to manage contact
3026         lists through the new implementation of the UIxContactSelector.
3027
3028         * UI/Templates: put the templates related to SchedulerUI in its
3029         own directory.
3030
3031         * SoObjects/Contacts/NGLdapEntry+Contact.m ([NGLdapEntry
3032         -asDictionaryWithAttributeNames:withUID:andCName:cName]): add an
3033         entry for "uid" with the field name representing the login name of
3034         the user in the corresponding LDAP branch.
3035
3036 2006-08-10  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
3037
3038         * SoObjects/Contacts/SOGoContactGCSFolder.m ([SOGoContactGCSFolder
3039         -lookupName:_keyinContext:_ctxacquire:_flag]): when the HTTP
3040         request is a PUT, always create an entry, even if we're not sure
3041         it does exist.
3042
3043 2006-08-09  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
3044
3045         * UI/WebServerResources/ContactsUI.js: implemented live-search.
3046
3047         * SoObjects/Contacts/SOGoContactFolders.m ([SOGoContactFolders
3048         -appendSystemSourcesInContext:context]): populated method with
3049         code that creates entries mapped to instances SOGoContactFolder,
3050         based on the configuration found in the NSUserDefaults under the
3051         key "SOGoLDAPAddressBooks".
3052         ([SOGoContactFolders
3053         -lookupName:nameinContext:contextacquire:acquire]):
3054         "contactsources" do not exist anymore, SOGoContactFolder was split
3055         into two classes: SOGoContactGCSFolder and SOGoContactLDAPFolder
3056         and one protocol: SOGOContactFolder, instead.
3057         ([SOGoContactFolders -contactFolders]): new accessor used by the
3058         views of SOGoContactXXXFolder to list the possible sources.
3059
3060         * SoObjects/Contacts/SOGoContactObject.h: new protocol that
3061         defines the methods that UIxContactsView, ..Editor and so on...
3062         can expect.
3063
3064         * SoObjects/Contacts/SOGoContactFolder.h: new protocol that
3065         defines the methods that UIxContactsListViewBase expects as well
3066         as the data fields returned in the contact lists.
3067
3068         * SoObjects/Contacts/SOGoContactLDAPFolder.[hm]: new class that
3069         returns entries an LDAP server. Conforms to the new
3070         SOGOContactFolder protocol.
3071
3072         * SoObjects/Contacts/SOGoContactLDAPEntry.[hm]: new class that
3073         returns a vCard based on contact entries from an LDAP server.
3074         Conforms to the new SOGOContactObject protocol.
3075
3076         * SoObjects/Contacts/NGVCardSimpleValue+Contact.m
3077         ([NGVCardSimpleValue -vCardEntryString]): generates the correct
3078         entry for the textual representation of the vCard.
3079
3080         * SoObjects/Contacts/NGVCardSimpleValue+Contact.[hm]: new class
3081         extension.
3082
3083         * SoObjects/Contacts/SOGoContactGCSEntry.[hm]: new module name of
3084         "SOGoContactObject".
3085
3086         * SoObjects/Contacts/NGVCard+Contact.m ([NGVCard -asString]): new
3087         method that generates a textual representation of the vcard.
3088
3089         * SoObjects/Contacts/NGVCard+Contact.[hm]: new class extension.
3090
3091         * SoObjects/Contacts/SOGoContactGCSFolder.[hm]: new module name of
3092         "SOGoContactFolder".
3093
3094         * SoObjects/Contacts/SOGoContactSource.h,
3095         SoObjects/Contacts/SOGoPersonalAB.[hm]: unused classes and
3096         protocols.
3097
3098         * SoObjects/Contacts/NGLdapEntry+Contact.m ([NGLdapEntry
3099         -singleAttributeWithName:key]): new method that returns the first
3100         object associated with an ldap key (where generally one value is
3101         returned by key).
3102         ([NGLdapEntry
3103         -asDictionaryWithAttributeNames:attributeNamesandCName:cName]):
3104         map the entry into an NSDictionary for processing by
3105         UIxContactsListViewBase.m with the least possible overhead.
3106
3107         * SoObjects/Contacts/NGLdapEntry+Contact.[hm]: new class
3108         extension.
3109
3110 2006-08-04  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
3111
3112         * SoObjects/SOGo/SOGoUserFolder.m ([SOGoUserFolder
3113         -privateContacts:inContext:]): now returns an instance of
3114         SOGoContactFolders.
3115
3116         * UI/Contacts/UIxContactsListViewContainer.m
3117         ([UIxContactsListViewContainer -contactFolderName]): new method to
3118         return the absolute path to the current contact folder, called
3119         from within the template.
3120
3121         * UI/Templates/ContactsUI/UIxContactsListViewContainer.wox: added
3122         JS code to initialize the 'currentContactFolder' generic var.
3123
3124         * SoObjects/Contacts/SOGoContactFolder.m ([SOGoContactFolder
3125         +contactFolderWithSource:inContainer:andName:]): new class
3126         method meant to return an instance connected to the specified
3127         source. Currently useless but won't be anymore in the next few
3128         days.
3129
3130         * SoObjects/SOGo/SOGoUserFolder.h: commented out declaration of
3131         the "lookupFreeBusyObject" method since it does not exist.
3132
3133         * UI/Contacts/UIxContactFoldersView.[hm]: new class module serving
3134         as a "view" for the SOGoContactFolders object. Does nothing but
3135         redirect the browser to the URL of the personal address book of
3136         the user. It does not even have a template.
3137
3138         * SoObjects/Contacts/SOGoPersonalAB.[hm]: new class module
3139         implementing the SOGoContactSource protocol. Does nothing
3140         currently but will be used to implement access to the personal
3141         address book of the user stored in the SOGo database.
3142
3143         * SoObjects/Contacts/SOGoContactSource.h: new "SOGoContactSource"
3144         protocol defining an API common to all possible types of contact
3145         sources.
3146
3147         * SoObjects/Contacts/SOGoContactFolders.[hm]: new class module
3148         serving as the root of the contact folders available to the
3149         current user. Correctly lists the contact sources in webdav.
3150
3151 2006-08-03  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
3152
3153         * UI/MailerUI/UIxMailAccountsView.m ([UIxMailAccountsView
3154         -composeAction]): new action method that permits external object
3155         to write a message from the default (primary) account.
3156
3157         * UI/Contacts/UIxContactEditorBase.m ([UIxContactEditorBase
3158         -initSnapshot]): new method with code taken from "defaultAction"
3159         but needed for others.
3160         ([UIxContactEditorBase -writeAction]): new action designed to
3161         compose the correct URL needed to obtain the MailerUI's email
3162         editor with the correct "mailto" parameter.
3163
3164         * UI/Common/UIxSortableTableHeader.m: moved from MailerUI to
3165         Common so that other modules can use it.
3166
3167         * UI/Contacts/UIxContactsListViewContainer.m: container to make it
3168         easier to manage both ajax and non-ajax requests.
3169
3170         * UI/Contacts/UIxContactsFilterPanel.m: clone of
3171         UIxMailFilterPanel, but applicable to contact lists.
3172
3173         * SoObjects/Contacts/NSDictionary+Contact.m ([NSDictionary
3174         -vcardContentFromSOGoContactRecord]): use the new standard methods
3175         created for each type of entry. If a line is determined to not
3176         contain information, it will be skipped.
3177
3178         * SoObjects/SOGo/AgenorUserManager.m ([AgenorUserManager
3179         +initialize]): init defaultMailDomain with the user default
3180         "SOGoDefaultMailDomain".
3181
3182 2006-08-02  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
3183
3184         * UI/Contacts/UIxContactEditorBase.m ([UIxContactEditorBase
3185         -saveAction]): reorganized methods to only have ONE return point.
3186         Invoke saveRecord: directly on the clientObject instead of
3187         saveContentString, which does the same thing anyway.
3188
3189         * SoObjects/Contacts/NSDictionary+Contact.m
3190         ([NSDictionary -vcardContentFromSOGoContactRecord]): extension
3191         method to convert the dictionary returned with the user submission
3192         to a record in VCARD format to be stored in the database.
3193
3194 2006-08-01  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
3195
3196         * UI/WebServerResources/MailerUI.js: when opening the context menu
3197         of the message list, select the message below the mouse cursor and
3198         deselect the other selected messages temporarily. This mimics the
3199         behaviour of Thunderbird for that matter and was already
3200         implemented for the entries of the folder tree.
3201
3202         * UI/MailerUI/UIxMailFolderMenu.m ([UIxMailFolderMenu
3203         -iconForMenuItem]): new method that returns the fully qualified
3204         relative URL to the icon representing the mailbox, or the default
3205         mailbox icon if needed.
3206
3207         * UI/SOGoUI/UIxComponent.m ([UIxComponent
3208         -urlForResourceFilename:filename]): automatically return an empty
3209         string whenever the filename passed as argument is nil.
3210
3211         * UI/WebServerResources/MailerUI.js: open the mailboxes with the
3212         "desc" parameter set to 1 so that they are sorted in descending
3213         order by default. Also, added "onHeaderClick()", triggered by
3214         clicking on the message list header elements.
3215
3216         * UI/MailerUI/UIxMailSortableTableHeader.m
3217         ([UIxMailSortableTableHeader -isSortedDescending]): same as below.
3218
3219         * UI/MailerUI/UIxMailListView.m ([UIxMailListView
3220         -isSortedDescending]): defaults to "YES" when the sort order is
3221         not specified.
3222
3223 2006-07-31  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
3224
3225         * UI/WebServerResources/MailerUI.js:
3226         - message cache: set the max num of cached messages to 20. Limit
3227         the cached message size to 30000 bytes.
3228         - ajax: when a message request is called while one is already
3229         being performed, the latter will be cancelled. Idem when
3230         retrieving the content of a mailbox.
3231         - folder tree: when a mailbox is selected because of the URL
3232         requested (initMailboxSelection), the dtree is expanded throughout
3233         the mailbox entry's parent hierarchy to ensure it is made visible
3234         when the page is being displayed. (new function: expandUpperTree).
3235         - mailbox loading: when loading a mailbox where a message was
3236         previously selected, we invoke its url with the "pageforuid"
3237         parameter correctly specified. During callback processing, we scan
3238         the table for the related row and reselect it.
3239         Also, the message area is set blank before loading any mailbox.
3240
3241         * UI/MailerUI/UIxMailListView.m ([UIxMailListView
3242         -defaultAction]): if the "pageforuid" parameter is passed in the
3243         url, take its value and invoke [self firstMessageOfPageFor:]
3244         consequently to deduce the first message to display. Otherwise,
3245         set it to "idx", otherwise set it to 0.
3246         ([UIxMailListView -firstMessageOfPageFor:]): new method
3247         that determines the first message of the page where the message
3248         passed as parameter is contained.
3249
3250         * UI/WebServerResources/UIxMailListView.js: removed this module,
3251         its code was put in MailerUI.js instead.
3252
3253 2006-07-28  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
3254
3255         * UI/MailerUI/UIxMailFolderMenu.m: a descendent of UIxMailTree
3256         which returns the nodes for the parent specified in "parentMenu".
3257         Used to generate the javascript code for the folder dtree.
3258
3259         * UI/Templates/MailerUI/UIxMailPanelFrame.wox: the components
3260         using that container-template are now using UIxMailMainFrame
3261         since UIxMailPanelFrame had no real interest. File removed.
3262
3263         * UI/WebServerResources/dtree.{css,js}: new files to handle
3264         javascript-generated mailbox tree. Modified from original version
3265         by integrating the previous code with the one we are using for
3266         selections and mailbox handling. Minor visual enhancements too...
3267
3268 2006-07-25  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
3269
3270         * SoObjects/Mailer/SOGoUser+Mail.m: if only one identity is to be
3271         returned, put it in an NSArray before returning it (fixes
3272         bug#217).
3273
3274 2006-07-24  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
3275
3276         * UI/SOGoUI/NSString+URL.m ([NSString -hostlessURL]): new method
3277         that returns a url string stripped from its "http://hostname"
3278         prefix.
3279
3280         * UI/SOGoUI/NSDictionary+URL.[hm]: moved from UI/Common.
3281
3282         * UI/SOGoUI/NSString+URL.[hm]: moved from UI/Common.
3283
3284 2006-07-17  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
3285
3286         * UI/MailerUI/WOContext+UIxMailer.m ([WOContext
3287         -mailDateFormatter]): retrieve the timezone from the user settings
3288         and pass it to the returned dateFormatter. Also, the dateFormatter
3289         is kept in a static variable to avoid useless
3290         creations/destructions.
3291
3292         * UI/MailerUI/UIxMailFormatter.m ([UIxMailDateFormatter
3293         -setTimeZone:newTimeZone]): new accessor to specify the timezone.
3294
3295         * UI/MailerUI/UIxMailFilterPanel.m ([UIxMailFilterPanel -setSearchCriteria:]) 
3296         ([UIxMailFilterPanel -searchCriteria]): new methods, similar to
3297         s/Criteria/Text/ to handle the "criteria" form parameter.
3298
3299 2006-07-11  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
3300
3301         * UI/WebServerResources/uix.css: enhanced the toolbar appearance
3302         to integrate better with the firefox look&feel. Added entries for
3303         the new "menu" DIV class (popup menus).
3304
3305         * UI/WebServerResources/generic.js: added "sanitizeMailTo" which
3306         takes any chunk of text as param, detects the user email and the
3307         optional first and last names and return them in a well-formatted
3308         way. Renamed "getSelection" to "getSelectedNodes" to avoid a
3309         namespace conflict. Added "onMenuClick(node, event, menuId)" to
3310         handle popup menus through "onclick" element attributes (node =
3311         this, event = event and menuId = name of the menu DIV id to
3312         popup).
3313
3314         * UI/Contacts/UIxContactEditorBase.m ([UIxContactEditorBase
3315         -snapshot]): add an entry for "email" into the snapshot
3316         dictionary if a "contactEmail" URL parameter was detected and if
3317         the entry for "email" is empty.
3318
3319         * UI/Contacts/Toolbars/SOGoContactFolder.toolbar: the "new card"
3320         button now invokes the newContact() js function in ContactsUI.js
3321         instead of opening "new" directly. newContact() pops up a window
3322         stripped from its navigation bar.
3323
3324         * UI/Contacts/ContactsUI.js: new module specific to the ContactsUI
3325         bundle (AddressBook).
3326
3327         * UI/Templates/MailerUI/UIxMailView.wox: added a div of class
3328         "menu" and id "addressMenu" have the header email addresses
3329         display it with the new menu code in generic.js.
3330
3331         * UI/Templates/MailerUI/UIxMailPanelFrame.wox: same as below +
3332         replaced the body tables with a div of class "pageContent"
3333         (standardization across the page templates).
3334
3335         * UI/Templates/MailerUI/UIxMailMainFrame.wox: include
3336         productJavaScriptURL and pageJavaScriptURL (conditionnally) since
3337         those are now inherited from UIxPageFrame.
3338
3339         * UI/MailerUI/UIxMailView.js: new file specific to UIxMailView.
3340
3341         * UI/MailerUI/UIxMailToSelection.m ([UIxMailToSelection -to]): if
3342         a "mailto" URL parameter is detected and the "to" array is empty,
3343         initialize "to" with the value of "mailto" before returning it.
3344
3345         * UI/MailerUI/UIxMailEditorAction.m ([UIxMailEditorAction
3346         -composeAction]): rewrote method in a cleaner way and with usage
3347         of the URL extensions to NSString and NSDictionary (see below).
3348         Also, if a "mailto" url parameter is detected, pass it to the
3349         redirected url.
3350
3351         * UI/MailerUI/UIxMailMainFrame.m: subclassed from UIxPageFrame to
3352         reduce code.
3353
3354         * UI/Common/NSDictionary+URL.m ([NSDictionary -asURLParameters]):
3355         returns a parameter string to add to a base URL.
3356
3357         * UI/Common/NSString+URL.m ([NSString
3358         -composeURLWithAction:parameters:andHash:useHash]): new method to
3359         compose a complete URL from an object URL with parameters and an
3360         optional '#' character.
3361
3362         * UI/Common/UIxPageFrame.h: separated interface from
3363         UIxPageFrame.m.
3364
3365 2006-07-07  Wsourdeau Sourdeau  <wsourdeau@inverse.ca>
3366
3367         * UI/Scheduler/UIxAppointmentEditor.m: returns yes to "isPopup";
3368
3369         * UI/WebServerResources/generic.js: added code to manage
3370         selections within HTML containers.
3371
3372         * UI/Common/UIxPageFrame.m ([UIxPageFrame -productJavaScriptURL]):
3373         added method to determine the possible URL for a product-specific
3374         javascript filename of the forme <productname>.js.
3375         ([UIxPageFrame -hasProductSpecificJavaScript]): new method.
3376         ([UIxPageFrame -isPopup]): new method to determine whether the
3377         application navigator bar should be displayed (main page) or not
3378         (popup page).
3379
3380         * SoObjects/SOGo/SOGoAuthenticator.m ([SOGoAuthenticator
3381         -LDAPCheckLogin:_loginpassword:_pwd]): new method to authenticate
3382         the user through LDAP.
3383
3384 2006-07-06  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
3385
3386         * The toolbar code from the MailerUI product was taken, renamed as
3387         "UIxToolBar" and put into UI/Common. Toolbar plists were created
3388         for the Contacts and Scheduler products and put in their respectir
3389         Toolbars/ subdirectories. Finally,
3390         UI/Templates/{UIxToolbarButton,UIxToolbarSeparator}.wox, and
3391         UI/Common/{UIxToolbarButton,UIxToolbarSeparator}.m were removed
3392         and an invocation to the UIxToolbar component was put at the top
3393         of UI/Templaces/UIxPageFrame.wox.
3394
3395         * UI/Common/UIxToolbar.m: new "isLastGroup" method to determine
3396         within the templates whether a separator should be displayed.
3397
3398         * UI/Common/UIxToolbar.m ([UIxToolbar -hasButtons]): new method
3399         that returns NO if the toolbar is empty.
3400
3401 2006-07-05  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
3402
3403         * UI/Templates/UIxPageFrame.wox: replaced central table with a DIV.
3404
3405         * UI/Common/UIxToolbarSeparator.m, UI/Common/UIxToolbarButton.m:
3406         new toolbar objects.
3407
3408         * UI/Templates/UIxPageFrame.wox: use the exact html code as below.
3409
3410         * UI/Templates/MailerUI/UIxMailMainFrame.wox: redone the
3411         linkbanner as a DIV instead of a TABLE.
3412
3413         * UI/MailerUI/UIxMailMainFrame.m [UIxMailMainFrame
3414         showLinkBanner]:
3415         returns 'YES' to request the display of the navigation bar between
3416         applets.
3417
3418 2006-06-15      ludovic@inverse.ca
3419
3420         * It's now possible to set the default
3421           domain using for email using the
3422           SOGoDefaultMailDomain preference key.
3423
3424 2006-06-15      ludovic@inverse.ca
3425         
3426         * Initial import of SOGo from trunk.