Commit Graph

901 Commits

Author SHA1 Message Date
Jean Raby
139c14d9e1 save: memCtx
Same fix as for MAPIStoreContactMessage
2013-04-16 12:06:17 -04:00
Jean Raby
5d17414018 [MAPIStoreContactsMessage save] needs memCtx
From extrafu
2013-04-15 14:13:07 -04:00
Jean Raby
3810833e1b remove unrtf leftovers 2013-04-11 10:22:28 -04:00
Ludovic Marcotte
33840c71cd Changed noop by unselect/select. 2013-04-10 10:48:25 -04:00
Ludovic Marcotte
1b983ef691 Fixed a potential timing issue with Dovecot when getting the modseq 2013-04-10 09:56:23 -04:00
Ludovic Marcotte
6a8e6cd762 Fixed the GNUmakfile and const's for charset tables. 2013-03-28 08:32:00 -04:00
Ludovic Marcotte
663351029a Replaced unrtf by our own RTF to HTML converter.
Faster, thread safe, a hell lot cleaner.
2013-03-26 19:32:08 -04:00
Jean Raby
c26e5fa7fe semi-colon 2013-03-26 14:01:04 -04:00
Jean Raby
74c01dc448 gen-charset-table.py: script to import ms charmaps
For example: http://msdn.microsoft.com/en-us/goglobal/cc305147
2013-03-26 13:42:22 -04:00
Ludovic Marcotte
93f9a7273e Now handle mem context when saving messages and removed useless debugging. 2013-03-13 15:04:11 -04:00
Jean Raby
c79af52b67 Fix BSONCodec.m includes
include objc.h instead of runtime.h so that it works on older gcc objc runtime
2013-03-06 11:03:19 -05:00
Jean Raby
13277bbdb9 c_content TEXT to LONGTEXT for OpenChange tables
Add an script to update existing tables.
Note that if a row already have 65535 char in it,
the data is most likely broken.
2013-03-05 10:47:09 -05:00
Ludovic Marcotte
a8d67edb44 Merge branch 'master' of https://github.com/inverse-inc/sogo 2013-02-20 12:11:17 -05:00
Ludovic Marcotte
89766b2e7e Temporary fix for unsigned long long values. 2013-02-20 12:10:34 -05:00
Jean Raby
7d65d808f6 Strip newline characters from user password files
Makes it easier to create those files with a regular editor.
2013-02-20 10:50:58 -05:00
Ludovic Marcotte
fa5e99d58d Much better fix over previous commit. 2013-02-19 15:54:52 -05:00
Ludovic Marcotte
67c2d508ea Added rationale around previous commit. 2013-02-19 15:42:05 -05:00
Ludovic Marcotte
19923d10db Also handle date-strings as date objects.
Dates are stored as string in BSON - might change in the future.
2013-02-19 15:30:29 -05:00
Ludovic Marcotte
e57b6835e6 Fix for objective-c runtimes. 2013-02-18 16:50:54 -05:00
Ludovic Marcotte
bcab7e7dc9 C99 style fixes. 2013-02-18 16:42:59 -05:00
Ludovic Marcotte
2572eedd89 Added BSON encoder/decoder for Outlook cache files. 2013-02-18 16:28:06 -05:00
Ludovic Marcotte
4f38b5cf3f Alse use hex-formatted keys for deleted mails. 2013-02-14 15:59:19 -05:00
Ludovic Marcotte
71b9772546 Ensure we hit the cache with hex-formatted keys. 2013-02-14 15:22:48 -05:00
Ludovic Marcotte
a1b623b325 We now allow to change the storage format for plists. 2013-01-23 20:21:27 -05:00
Julien Kerihuel
7e001a05a4 Issue #1829: Fix crash in unrtf library.
Integer overflow in array index leading to unpredictable behavior.
Using correct integer signess and casting fix the problem and turn
negative value into 0. Expected fallback behavior then apply.

Make use of uint8_t since the hash array is a static array of 255 elements.
2013-01-18 10:27:37 -05:00
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