Commit Graph

876 Commits (775a8421d5172cd11be3e16d4e2f41224052ce8a)

Author SHA1 Message Date
Ludovic Marcotte 4804337a01 Now pass the memory context when copying/moving folders. 2012-12-07 13:30:50 -05:00
Ludovic Marcotte ca1a3ac06b Fixed the ordering of the memory context. 2012-12-05 14:56:29 -05:00
Ludovic Marcotte 2017536beb move_copy_messages now uses the openchange's memory context.
This fixes strange crashes when dealing with invitations and
other stuff. More work will need to be done in this regard. Also
kept the old code just in case for now. Will be cleaned up shortly
after more people test it.
2012-12-03 09:18:17 -05:00
Ludovic Marcotte cc98664d13 Fix for bug #2024. 2012-11-20 15:21:49 -05:00
Wolfgang Sourdeau 3b0a497f2d (hack) allow subcribers to read messages from "Freebusy Data" root folder 2012-11-09 14:50:56 -05:00
Wolfgang Sourdeau d51bf22976 Commented out allocation/deallocation debugging code 2012-10-23 23:58:39 -04:00
Wolfgang Sourdeau 2cd0a643b9 the defaults for "sogod" are now registered from libSOGo 2012-10-23 13:42:27 -04:00
Wolfgang Sourdeau 331b61d9b2 escape the username part of the tablename in order to obtain an acceptable SQL identifier 2012-10-22 15:17:47 -04:00
Wolfgang Sourdeau 06fc7ed49f -submitWithFlags: adapt to new SOGoMailer API 2012-10-17 08:26:22 -04:00
Wolfgang Sourdeau ef5119f765 crash: do not attempt to store nil body part keys, for emails having no text body 2012-10-15 08:04:26 -04:00
Wolfgang Sourdeau d5c29b3870 speedup of -synchroniseCache: assign message ids and change numbers in batch, as in the mail module 2012-10-13 10:59:18 -04:00
Wolfgang Sourdeau dec64722c8 Use NSString instances for representing change numbers, rather than NSNumber 2012-10-13 09:59:13 -04:00
Wolfgang Sourdeau 1e92fe0395 style 2012-10-13 09:50:43 -04:00
Wolfgang Sourdeau 526f83d3c9 synchroniseCache: register new mail message ids and version numbers in batch with the new methods in MAPIStoreFolder and MAPIStoreMapping 2012-10-12 23:29:38 -04:00
Wolfgang Sourdeau 63abe73c29 ensureIDsForChildKeys: new helper method that ensure that the child keys have a corresponding fmid and register them with -[MAPIStoreMapping registerURLs:withIDs:] if needed 2012-10-12 23:28:47 -04:00
Wolfgang Sourdeau 9e551cca5b registerURLs:withIDs: now takes an array of NSNumber or NSString instances 2012-10-12 23:27:05 -04:00
Wolfgang Sourdeau ea98a35fad getNewFMIDs: new wrapper method around openchangedb_get_new_folderIDs 2012-10-12 23:25:51 -04:00
Wolfgang Sourdeau 641eb8013b -registerURLs:withIDs: new method to register multiple urls at once 2012-10-12 17:44:26 -04:00
Wolfgang Sourdeau 5e2453f3c4 getNewChangeNumbers: new wrapper for openchangedb_get_new_changeNumbers 2012-10-12 17:42:43 -04:00
Wolfgang Sourdeau 420e5e0759 include inttypes.h for PRIx64 2012-10-10 11:55:06 -04:00
Wolfgang Sourdeau dd1a8e9285 only preload message bodies of normal messages, ignore FAI ones 2012-10-10 10:38:50 -04:00
Wolfgang Sourdeau 37e8f7ca98 "preload_message_bodies" now take an additional "enum mapistore_table_type" argument 2012-10-10 10:38:25 -04:00
Wolfgang Sourdeau 060c036936 ensure that object versions are properly "masked" to 48-bit integers 2012-10-10 08:43:21 -04:00
Wolfgang Sourdeau ad2b5fe413 ensure that shifted property ids are correctly "masked" to 16-bit integers 2012-10-10 08:42:44 -04:00
Wolfgang Sourdeau 5b7cbb6350 Use NSString instances as keys rather than NSNumber, to work around a performance issue with GNUstep < 1.24 2012-10-09 16:39:24 -04:00
Wolfgang Sourdeau c9dad4cab6 Make use of +[NSString stringWithUnsignedLongLong:] from NGExtensions 2012-10-09 14:14:58 -04:00
Wolfgang Sourdeau 113a95d2c7 show "dealloc" messages since "init" messages are shown already 2012-10-07 00:17:42 -04:00
Wolfgang Sourdeau 65462b273a dealloc: release the associated woContext, thereby fixing a mem leak 2012-10-07 00:17:06 -04:00
Wolfgang Sourdeau 2758b44d37 Small optimization, we avoid copying potentially big array of bytes by attaching a wrapper around the NSData object to the resulting binary structure 2012-10-06 14:19:34 -04:00
Wolfgang Sourdeau a549773554 Implemented a mechanism to preload body parts for email messages 2012-10-06 13:02:39 -04:00
Wolfgang Sourdeau a7691c552b Renamed -preloadMessageBodies: to preloadMessageBodiesWithMIDs: and perform a conversion of MIDs to message keys instead of the subclass code 2012-10-06 13:01:44 -04:00
Wolfgang Sourdeau 46c82286d8 Added -childKeyFromURL: as translation method and refactored -lookupMessageByURL: and -lookupFolderByURL: to make use of it 2012-10-05 13:51:58 -04:00
Wolfgang Sourdeau b2ee81f75a Commented out freebusy exception for read accesses 2012-10-05 10:09:38 -04:00
Wolfgang Sourdeau 671ce26a48 struct UI8Array_r replaces struct I8Array_r 2012-10-05 09:59:45 -04:00
Wolfgang Sourdeau eca09c87cc Implemented the folder.preload_message_bodies backend op 2012-10-05 09:55:01 -04:00
Wolfgang Sourdeau aa24d5133e Without the backend prefix, the mapistore backend context would never be found 2012-10-05 09:54:22 -04:00
Wolfgang Sourdeau 1b02490e85 Improved the performance of the dict population by using NSString keys rather than NSNumber ones. The discussion here "https://savannah.gnu.org/bugs/?37494" seems to indicate that this occurs only with old versions of GNUstep. 2012-10-03 11:25:47 -04:00
Wolfgang Sourdeau 08eb4d9f84 Only fetch subfolders when they are supported 2012-09-27 19:23:56 -04:00
Wolfgang Sourdeau ead3c8f6b9 Reindentation 2012-09-27 19:23:34 -04:00
Wolfgang Sourdeau 2711e0a0db Retrieve the displayName rather the address part of the email address 2012-09-26 17:07:19 -04:00
Wolfgang Sourdeau 37ccb0875c Check whether the "INBOX" folder has the "noinferiors" flag set before declaring that it accepts subfolder creation 2012-09-26 11:50:28 -04:00
Wolfgang Sourdeau a6a30afe75 Set PidLidRecurrentPattern 2012-09-26 09:28:37 -04:00
Wolfgang Sourdeau 49ea183835 PidLidFExceptionalBody should be set only on event exceptions 2012-09-26 09:27:59 -04:00
Wolfgang Sourdeau 2760e35f15 PidTagAccessLevel should not be set on folder objects 2012-09-26 09:26:38 -04:00
Wolfgang Sourdeau 23ebc24d94 Handle permissions on embedded messages too 2012-09-24 10:24:46 -04:00
Wolfgang Sourdeau 569a34c0f4 Added PidTagHasNamedProperties 2012-09-19 16:06:27 -04:00
Wolfgang Sourdeau 1f8f31daff Embedded message can always be "saved" 2012-09-19 16:05:52 -04:00
Wolfgang Sourdeau 72fb3f552d PidTagBody: do not return a body if it is an empty string or a simple crlf 2012-09-19 12:25:20 -04:00
Wolfgang Sourdeau 04d5284ef3 Added PidLidRecurrenceType, PidLidAppointmentTimeZoneDefinitionStartDisplay and PidLidAppointmentTimeZoneDefinitionEndDisplay 2012-09-19 12:23:56 -04:00
Wolfgang Sourdeau cad770bf76 Moved PidTagException* properties to the right place 2012-09-19 12:22:07 -04:00