Commit graph

43 commits

Author SHA1 Message Date
Enrique J. Hernández Blasco 12e952eb55 oc: Honor calendar WebMail UI permissions on OpenChange library
By expanding roles from the given ACL to have these values as flags
inside the OpenChange library. This only applies to Calendar and
Tasks folders which stored four different access rights to three
different types of events/tasks.

As the events and tasks are stored in the same table, I have added
two new classes to manage permissions in the same way and this
avoids the code duplication called MAPIStoreCalTask(Folder|Message).
2016-02-23 10:10:48 +01:00
Enrique J. Hernández Blasco e08ee9a265 oc: Use enum mapistore_error instead of int
This specifies a little the scope of the variable to make it
more realistic with the actual values it may have. We do have
a static typed compiled language, why don't we use it?
2016-02-15 15:44:14 +01:00
Enrique J. Hernández Blasco 2fc21e48d8 oc: Use proper variable name for last modified value 2015-12-11 11:31:15 +01:00
Juan Vallés 8800cdf641 oc-calendar: force cache synchronisation for a message before aborting
Sometimes we're trying to get the `objectVersion` of a calendar message,
but this message's entry is not in the cache. The method
`synchroniseCache` won't work in this case, so we try to force the
synchronisation of that particular message in order to get the change
number before aborting.
2015-10-20 11:33:10 +02:00
Enrique J. Hernández Blasco b702e40ebb oc: load versionsMessage on setting up
versionsMessage object could have outdated version in a root folder
in the following case:

* Download latest contents using FXBuffer
  * versionsMessage is updated by synchroniseCache
* OpenMessage from last FXBuffer
  * Setup versions message as root folder
* Get Predecessor Change List from that message

We could just reload if needed the versions message if something
is missing but I don't know if that situation fixes more than this
one.
2015-09-03 23:01:21 +02:00
Enrique J. Hernández Blasco 321672e2c3 oc: Update predecessor change list on saving
There were cases where only the change key was updated (GCS) or
others were the change key was updated with wrong info.

This changeset has as goal to update the predecessor change list
and, change key if required, on saving taking into account the latest information
given by the client in high level ROPs such as ImportMessageMove
or SetProperties, and merge it with information provided by the server
backend (IMAP server, SOGo DB) using `synchroniseCache`.

For more details about `PidTagChangeKey` and `PidTagPredecessorChangeList`
property values check [MS-OXCFXICS] Section 2.2.1.2
2015-08-04 08:41:38 +02:00
Enrique J. Hernández Blasco 1dbfc18379 oc: Update to new XID structure definition
From ede986f commit from OpenChange repository.
2015-08-04 08:41:38 +02:00
Ludovic Marcotte 41e6fb89d3 Renamed constants in preparation for the big cache cleanup 2014-05-13 17:54:02 -04:00
Ludovic Marcotte 7ddc1b9e2d Avoid type-issues generating wrong GlobCnt - leading to OpenChange crashes during the sync process. 2013-09-18 14:03:07 -04:00
Ludovic Marcotte d28482557f Fix for bug 2285 2013-06-20 13:43:45 -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 e86f5ff841 Monotone-Parent: 78c0405a3665172ccb21ec34bba08331cc479f71
Monotone-Revision: e70a6a4e35fcf0aacec5ec5ef392c0c8e6bb4e31

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-08-21T20:36:32
Monotone-Branch: ca.inverse.sogo
2012-08-21 20:36:32 +00:00
Wolfgang Sourdeau bde4b22ba7 Monotone-Parent: 572391072fa416635b9921d39ed76478ed762097
Monotone-Revision: 105b571703ff5c4cc1024854ef8a1d987aef2bf1

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-08-17T19:04:57
Monotone-Branch: ca.inverse.sogo
2012-08-17 19:04:57 +00:00
Wolfgang Sourdeau 95a443d89a Monotone-Parent: 3f8608c82d9c379cc9e0fea6ffe853cc1949a24b
Monotone-Revision: 905276f295d6f28a6946297f6a7af9ad60f71842

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-06-29T17:59:38
Monotone-Branch: ca.inverse.sogo
2012-06-29 17:59:38 +00:00
Wolfgang Sourdeau 18cd217b63 Monotone-Parent: 256c88e136b95ffb79c997058df4ad39e9e33821
Monotone-Revision: df7bf24308030f46878403591ecefe2986dc350b

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-03-16T21:13:16
Monotone-Branch: ca.inverse.sogo
2012-03-16 21:13:16 +00:00
Wolfgang Sourdeau 57fc5197be Monotone-Parent: 9d9059c535146bcefa1a378020e4c39b33d901e2
Monotone-Revision: 256c88e136b95ffb79c997058df4ad39e9e33821

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-03-16T21:12:12
Monotone-Branch: ca.inverse.sogo
2012-03-16 21:12:12 +00:00
Wolfgang Sourdeau ff26754291 Monotone-Parent: f4e8a715d67a12fea729843b1401f636ce05ed66
Monotone-Revision: 86ef6adf2b0443af39cafaac0b9a9d66fb753576

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-03-16T21:09:10
Monotone-Branch: ca.inverse.sogo
2012-03-16 21:09:10 +00:00
Wolfgang Sourdeau 26701b7c71 Monotone-Parent: 34a0500cef031e53eda3a1a6c3b2f626ce8f76dc
Monotone-Revision: f4e8a715d67a12fea729843b1401f636ce05ed66

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-03-16T21:05:41
Monotone-Branch: ca.inverse.sogo
2012-03-16 21:05:41 +00:00
Wolfgang Sourdeau 3ad93f3257 Monotone-Parent: 0d1809a8a5fbb980e78d197e8f5c0c634b960a2e
Monotone-Revision: cd4c34d79c62c8b6a1f9ccfb14ea9a79442034c6

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-03-16T20:51:51
Monotone-Branch: ca.inverse.sogo
2012-03-16 20:51:51 +00:00
Wolfgang Sourdeau 5855c961c2 Monotone-Parent: b4877f2729cab76fd5d38a99c8de852adf2573f1
Monotone-Revision: 8564a65896abd2a99c1994b8cfdec195d21899ae

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-03-12T08:20:22
Monotone-Branch: ca.inverse.sogo
2012-03-12 08:20:22 +00:00
Wolfgang Sourdeau 98bf3201e7 Monotone-Parent: 75575dc685de1258c4ba450e53c12e11c7954b71
Monotone-Revision: 28a24e19c42fd0a497caf994e8b2f88fc7432164

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-03-12T06:03:56
Monotone-Branch: ca.inverse.sogo
2012-03-12 06:03:56 +00:00
Wolfgang Sourdeau a29aa90913 Monotone-Parent: bb133434e9e283747d7758877c0c8dcd50346b55
Monotone-Revision: 4ea252c6500eb31c2c96a411c6338ecc5e71eef0

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-03-08T15:24:23
Monotone-Branch: ca.inverse.sogo
2012-03-08 15:24:23 +00:00
Wolfgang Sourdeau c4292714b5 Monotone-Parent: 1e532558ba17916d33138e4c65d283faf4d0e929
Monotone-Revision: 3d21b0780b7affb529a020d89dcbf84325264c7d

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-03-02T20:44:24
Monotone-Branch: ca.inverse.sogo
2012-03-02 20:44:24 +00:00
Wolfgang Sourdeau 18eab08165 Monotone-Parent: 1446e7383727bc0d371dfafcec06697f030f7117
Monotone-Revision: 7f4c04f0c1883efb437cd0189f442b20c0063c82

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-02-20T19:47:58
Monotone-Branch: ca.inverse.sogo
2012-02-20 19:47:58 +00:00
Wolfgang Sourdeau 32ee60c025 Monotone-Parent: be64ce923b1780a6ed810e7250748d84ad4425bb
Monotone-Revision: 7f9dd19e7f17c342c380ab2a0c551594be6d8762

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-02-02T01:45:17
Monotone-Branch: ca.inverse.sogo
2012-02-02 01:45:17 +00:00
Wolfgang Sourdeau 8ffac8727d Monotone-Parent: 4aebdfab09fd72cefd327e453f27e340da9f8738
Monotone-Revision: 6d3ffdac670dcdb4b4ded0a4c992663c091081b4

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-01-30T21:42:10
Monotone-Branch: ca.inverse.sogo
2012-01-30 21:42:10 +00:00
Wolfgang Sourdeau 4b81cb167d Monotone-Parent: 4e23e038f2b0b7eddf8b30700b8c9a8910768f98
Monotone-Revision: 9235e5dc4d151a3cba8ad842ac39e1b2d18c8201

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-01-29T19:55:21
Monotone-Branch: ca.inverse.sogo
2012-01-29 19:55:21 +00:00
Wolfgang Sourdeau 1ffc1d9cb9 Monotone-Parent: d70b16e4de0e51014c13f2e04c41c5dbaca8197a
Monotone-Revision: 0520cbbe794e4bb4de915dd4b488e316122faa8a

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-12-01T21:29:17
Monotone-Branch: ca.inverse.sogo
2011-12-01 21:29:17 +00:00
Wolfgang Sourdeau 0f35c72c24 Monotone-Parent: 6ea44b1efa1edb28f1218a700087fee83cb79305
Monotone-Revision: 2b0145bf6bbc08cf0fb2fc9d65b3fd914daa72c2

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-12-01T21:13:09
Monotone-Branch: ca.inverse.sogo
2011-12-01 21:13:09 +00:00
Wolfgang Sourdeau 4e17404e8c Monotone-Parent: d102adf292e54c9c4f3572b83e38879d24b721d0
Monotone-Revision: 1d22ee7adc99b9420d9a7b859dfb1048c8c92eaa

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-11-18T15:26:03
Monotone-Branch: ca.inverse.sogo
2011-11-18 15:26:03 +00:00
Wolfgang Sourdeau 7ab47ef0d7 Monotone-Parent: 839a303aa2831a3fa7a86f2c7c9908561cb4e20f
Monotone-Revision: 83c74feed1e25505354586a32e506982bd739960

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-09-22T13:39:38
Monotone-Branch: ca.inverse.sogo
2011-09-22 13:39:38 +00:00
Wolfgang Sourdeau ed176ec946 Monotone-Parent: fde0ef781cb60652a47fc1c5edcece9225aafa07
Monotone-Revision: 07cb9d1891b96efc9f2a3c78eacb86dadf65aaa2

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-09-20T19:37:03
Monotone-Branch: ca.inverse.sogo
2011-09-20 19:37:03 +00:00
Ludovic Marcotte 057a38355b See ChangeLog
Monotone-Parent: 8027e57cbf5cbb4ab2ee6bf9509fe2f571f150c1
Monotone-Revision: 0ffde732abb09a8e3d0382ed47a3ec787f25796e

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2011-09-14T18:33:44
Monotone-Branch: ca.inverse.sogo
2011-09-14 18:33:44 +00:00
Ludovic Marcotte defb3e67dc Wrapped tight loops inside a transaction to dramatically speedup things
Monotone-Parent: 4d37ced4d18a580dd453377f39144a265c8580cf
Monotone-Revision: 34186beb96b4e03796e53fcc658539fd1c3dbb8a

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2011-08-31T18:11:09
Monotone-Branch: ca.inverse.sogo
2011-08-31 18:11:09 +00:00
Wolfgang Sourdeau 22eedad363 Adjusted license terms to GPL v3 in every files
Monotone-Parent: 40a650719396cb82af520f186bbd67d0cd22e776
Monotone-Revision: 6b69f89d586a065c3777dccbf188959c7728e86a

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-08-12T15:02:01
Monotone-Branch: ca.inverse.sogo
2011-08-12 15:02:01 +00:00
Wolfgang Sourdeau 7a5f67babe Monotone-Parent: 48c9c37f78835c3255c4103136b86bdfcaaca051
Monotone-Revision: d9c62c6e142174bc3d2adb12ee04492347c95ede

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-07-29T02:13:39
Monotone-Branch: ca.inverse.sogo
2011-07-29 02:13:39 +00:00
Wolfgang Sourdeau 2f2605dfcc Monotone-Parent: ec3d19f268090d56a33692cdc116485c488fd4d6
Monotone-Revision: 6b4e2f16b2a1ac3bbbb8f854763b7deb70bd8a46

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-07-28T00:55:50
Monotone-Branch: ca.inverse.sogo
2011-07-28 00:55:50 +00:00
Wolfgang Sourdeau aad817d5ca Monotone-Parent: da9c14ddfb4c9a9c929c7b84543af4ce664cfc10
Monotone-Revision: 829ccf73000a2d91a5daf67741479e395011b6a8

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-07-26T20:13:10
Monotone-Branch: ca.inverse.sogo
2011-07-26 20:13:10 +00:00
Wolfgang Sourdeau 2974a91c5e Monotone-Parent: a1865313ff7142cbf139f7645dcbb299dd1acb92
Monotone-Revision: 06779f0bbfe40e7611b69790cf2eff4809382438

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-06-07T00:17:46
Monotone-Branch: ca.inverse.sogo
2011-06-07 00:17:46 +00:00
Wolfgang Sourdeau 8dfda2873f Monotone-Parent: ab4b56bae1b03fc971ec45c668ed8a6bd9b23831
Monotone-Revision: c65e5de16bdce7bebdde2adc5fd2504e2066e9f2

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-05-30T21:12:56
Monotone-Branch: ca.inverse.sogo
2011-05-30 21:12:56 +00:00
Wolfgang Sourdeau dd0bea0dc9 Monotone-Parent: 17790db0c2368364683e4074a491e7107c6cf071
Monotone-Revision: 96b5a2580e3b0b6ba57af91d0fed6f513f8e13f0

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-02-24T20:32:27
Monotone-Branch: ca.inverse.sogo
2011-02-24 20:32:27 +00:00