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