tridge/openchange.git
13 years agoMinor cleanups for mapitest. The NSPI change prevents segfaulting.
bradh [Sat, 22 Jan 2011 21:37:51 +0000 (21:37 +0000)]
Minor cleanups for mapitest. The NSPI change prevents segfaulting.

git-svn-id: https://svn.openchange.org/openchange@2528 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoRemove the "second hand" FID / MID database, which we didn't (and couldn't safely...
bradh [Sat, 22 Jan 2011 20:18:04 +0000 (20:18 +0000)]
Remove the "second hand" FID / MID database, which we didn't (and couldn't safely) use anyway.

(merge rev 2526 from mapistore_v2 branch)

git-svn-id: https://svn.openchange.org/openchange@2527 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoRemove the database for used FID/MID values.
bradh [Sat, 22 Jan 2011 19:56:57 +0000 (19:56 +0000)]
Remove the database for used FID/MID values.

We can't reuse values (because it will break incremental change sync), and we never tried to use them anyway.

git-svn-id: https://svn.openchange.org/openchange@2526 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoFix another error from MS-OXPROPS.
bradh [Sat, 22 Jan 2011 19:51:08 +0000 (19:51 +0000)]
Fix another error from MS-OXPROPS.

Thanks to Mark Miller (Microsoft) for the investigation on this.

git-svn-id: https://svn.openchange.org/openchange@2525 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoMerge libmapiserver from sogo branch.
bradh [Fri, 21 Jan 2011 20:17:49 +0000 (20:17 +0000)]
Merge libmapiserver from sogo branch.

git-svn-id: https://svn.openchange.org/openchange@2524 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoMerge preliminary mapistore_v2 code back into trunk:
jkerihuel [Fri, 21 Jan 2011 20:12:07 +0000 (20:12 +0000)]
Merge preliminary mapistore_v2 code back into trunk:
- Enable mapistore.ldb root tree provisioning
- Add python bindings
- Turn MAPISTORE errors into an enum

git-svn-id: https://svn.openchange.org/openchange@2523 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoMerge libmapiserver from trunk.
bradh [Fri, 21 Jan 2011 20:10:56 +0000 (20:10 +0000)]
Merge libmapiserver from trunk.

git-svn-id: https://svn.openchange.org/openchange@2522 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoMerge libmapiserver changes from mapistore_v2 branch.
bradh [Fri, 21 Jan 2011 18:31:09 +0000 (18:31 +0000)]
Merge libmapiserver changes from mapistore_v2 branch.

git-svn-id: https://svn.openchange.org/openchange@2521 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agomerge from trunk
bradh [Fri, 21 Jan 2011 17:58:39 +0000 (17:58 +0000)]
merge from trunk

git-svn-id: https://svn.openchange.org/openchange@2520 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoFix EcDoConnectEx server side implementation and ndr_push function.
jkerihuel [Wed, 19 Jan 2011 09:57:15 +0000 (09:57 +0000)]
Fix EcDoConnectEx server side implementation and ndr_push function.

Outlook can now use EcDoConnectEx/EcDoRpcExt2 to communicate with
OpenChange server.

git-svn-id: https://svn.openchange.org/openchange@2519 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoSome additional support for public folders.
bradh [Fri, 14 Jan 2011 01:52:26 +0000 (01:52 +0000)]
Some additional support for public folders.

mstoredb backend doesn't seem to be escaping some characters correctly, which is causing problems.

git-svn-id: https://svn.openchange.org/openchange@2518 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoInitial work on public folder provisioning and operations.
bradh [Thu, 13 Jan 2011 05:11:30 +0000 (05:11 +0000)]
Initial work on public folder provisioning and operations.

Current status is:
[bradh@f13 mapistore_v2]$ ./bin/openchangeclient --mailbox --pf --profile=localserver
|---+ NON_IPM_SUBTREE [FID: 0x0000000030000001]
|   |---+ OFFLINE ADDRESS BOOK [FID: 0x0000000050000001]
|   |---+ EFORMS REGISTRY [FID: 0x0000000040000001]
|   |---+ SCHEDULE FREE BUSY [FID: 0x0000000060000001]

git-svn-id: https://svn.openchange.org/openchange@2517 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoadded minimal stub for RopDeletePropertiesNoReplicate
wsourdeau [Tue, 11 Jan 2011 22:02:29 +0000 (22:02 +0000)]
added minimal stub for RopDeletePropertiesNoReplicate

git-svn-id: https://svn.openchange.org/openchange@2516 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoOpenFolder: added debugging output for when a handle is not resolved
wsourdeau [Tue, 11 Jan 2011 21:45:49 +0000 (21:45 +0000)]
OpenFolder: added debugging output for when a handle is not resolved

git-svn-id: https://svn.openchange.org/openchange@2515 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoAllocate FIDs in 0x1000 intervals, and don't set the low 16 bits
bradh [Tue, 11 Jan 2011 10:34:28 +0000 (10:34 +0000)]
Allocate FIDs in 0x1000 intervals, and don't set the low 16 bits
(replica id) when increasing the global count.

git-svn-id: https://svn.openchange.org/openchange@2514 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoFix entry ID generation.
bradh [Tue, 11 Jan 2011 06:15:12 +0000 (06:15 +0000)]
Fix entry ID generation.

git-svn-id: https://svn.openchange.org/openchange@2513 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoUnbreak clean builds, by adding appropriate header path.
bradh [Tue, 11 Jan 2011 05:14:35 +0000 (05:14 +0000)]
Unbreak clean builds, by adding appropriate header path.

Also a bit more work on RopSetReceiveFolder implementation.

git-svn-id: https://svn.openchange.org/openchange@2512 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoSupport EntryId handling.
bradh [Tue, 11 Jan 2011 01:09:39 +0000 (01:09 +0000)]
Support EntryId handling.

This allows the OXCFOLD-OPEN test to pass.

git-svn-id: https://svn.openchange.org/openchange@2511 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoRopGetPropertiesSpecific_mapistore: simplified handling of "layout" flag and added...
wsourdeau [Mon, 10 Jan 2011 18:54:52 +0000 (18:54 +0000)]
RopGetPropertiesSpecific_mapistore: simplified handling of "layout" flag and added support for untyped properties

git-svn-id: https://svn.openchange.org/openchange@2510 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years ago(2) libmapiserver_push_property now takes an additional parameter specifying whether...
wsourdeau [Mon, 10 Jan 2011 18:53:03 +0000 (18:53 +0000)]
(2) libmapiserver_push_property now takes an additional parameter specifying whether a TypedPropertyValue/FlaggedPropertyValueWithType is being pushed

git-svn-id: https://svn.openchange.org/openchange@2509 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agolibmapiserver_push_property now takes an additional parameter specifying whether...
wsourdeau [Mon, 10 Jan 2011 18:52:11 +0000 (18:52 +0000)]
libmapiserver_push_property now takes an additional parameter specifying whether a TypedPropertyValue/FlaggedPropertyValueWithType is being pushed

git-svn-id: https://svn.openchange.org/openchange@2508 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoadded new "get_property_type" function that returns the type expected for the specifi...
wsourdeau [Mon, 10 Jan 2011 18:50:30 +0000 (18:50 +0000)]
added new "get_property_type" function that returns the type expected for the specified property tag

git-svn-id: https://svn.openchange.org/openchange@2507 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoStub implementation of RopGetReceiveFolderTable.
bradh [Mon, 10 Jan 2011 09:23:33 +0000 (09:23 +0000)]
Stub implementation of RopGetReceiveFolderTable.

git-svn-id: https://svn.openchange.org/openchange@2506 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoTry to manage indexing contexts better.
bradh [Mon, 10 Jan 2011 04:04:41 +0000 (04:04 +0000)]
Try to manage indexing contexts better.

git-svn-id: https://svn.openchange.org/openchange@2505 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoMinor comment rewording.
bradh [Mon, 10 Jan 2011 04:04:01 +0000 (04:04 +0000)]
Minor comment rewording.

git-svn-id: https://svn.openchange.org/openchange@2504 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoHandle folder deletion better.
bradh [Mon, 10 Jan 2011 02:55:00 +0000 (02:55 +0000)]
Handle folder deletion better.

Fix minor issue in folder creation, where we didn't initialise the
object FID if the folder already existed.

git-svn-id: https://svn.openchange.org/openchange@2503 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoInitial work on rmdir for mstoredb backend.
bradh [Sun, 9 Jan 2011 21:26:45 +0000 (21:26 +0000)]
Initial work on rmdir for mstoredb backend.

git-svn-id: https://svn.openchange.org/openchange@2502 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoStart switch of implementation of RopSetReceiveFolder to mapistore.
bradh [Sun, 9 Jan 2011 08:34:17 +0000 (08:34 +0000)]
Start switch of implementation of RopSetReceiveFolder to mapistore.

Comments out some unused code in openchangedb.

git-svn-id: https://svn.openchange.org/openchange@2501 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoFix CreateFolder, comment out some of the unused code.
bradh [Sun, 9 Jan 2011 08:32:08 +0000 (08:32 +0000)]
Fix CreateFolder, comment out some of the unused code.

git-svn-id: https://svn.openchange.org/openchange@2500 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoReduce amount of copy/paste code in mstoredb backend.
bradh [Sun, 9 Jan 2011 04:15:53 +0000 (04:15 +0000)]
Reduce amount of copy/paste code in mstoredb backend.

git-svn-id: https://svn.openchange.org/openchange@2499 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoImplement RopGetReceiveFolder.
bradh [Sun, 9 Jan 2011 03:44:30 +0000 (03:44 +0000)]
Implement RopGetReceiveFolder.

Provides backend support for retrieving a whole table.

Clean up property handling a bit.

git-svn-id: https://svn.openchange.org/openchange@2498 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoFlag mailboxes and folders with an ldb objectClass, and check for that on queries.
bradh [Sat, 8 Jan 2011 07:23:41 +0000 (07:23 +0000)]
Flag mailboxes and folders with an ldb objectClass, and check for that on queries.

git-svn-id: https://svn.openchange.org/openchange@2497 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agofixed warnings and typos introduced in last commit
wsourdeau [Sat, 8 Jan 2011 02:38:12 +0000 (02:38 +0000)]
fixed warnings and typos introduced in last commit

git-svn-id: https://svn.openchange.org/openchange@2496 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoRopRestrict: initialize the table status to a default value of TBLSTAT_COMPLETE
wsourdeau [Fri, 7 Jan 2011 19:58:14 +0000 (19:58 +0000)]
RopRestrict: initialize the table status to a default value of TBLSTAT_COMPLETE

git-svn-id: https://svn.openchange.org/openchange@2495 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoidentify nspi session by their policy_handle + dont return status codes on the stack...
wsourdeau [Fri, 7 Jan 2011 19:55:01 +0000 (19:55 +0000)]
identify nspi session by their policy_handle + dont return status codes on the stack but via the out struct of the respective call

git-svn-id: https://svn.openchange.org/openchange@2494 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoTry to avoid leaking too much memory...
bradh [Fri, 7 Jan 2011 02:51:48 +0000 (02:51 +0000)]
Try to avoid leaking too much memory...

git-svn-id: https://svn.openchange.org/openchange@2493 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoImprove property handling.
bradh [Fri, 7 Jan 2011 02:30:00 +0000 (02:30 +0000)]
Improve property handling.

We now have a rough implementation for openchangeclient --mailbox.

git-svn-id: https://svn.openchange.org/openchange@2492 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoCommit script changes - should have been part of previous commit.
bradh [Fri, 7 Jan 2011 02:25:41 +0000 (02:25 +0000)]
Commit script changes - should have been part of previous commit.

git-svn-id: https://svn.openchange.org/openchange@2491 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoAdd PidTagChildFolderCount property.
bradh [Fri, 7 Jan 2011 02:23:04 +0000 (02:23 +0000)]
Add PidTagChildFolderCount property.

Try harder to find property values given a name

Fix some formatting.

git-svn-id: https://svn.openchange.org/openchange@2490 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoMake openchangeclient --mailbox layout look a bit nicer with longer folder details.
bradh [Fri, 7 Jan 2011 00:30:40 +0000 (00:30 +0000)]
Make openchangeclient --mailbox layout look a bit nicer with longer folder details.

git-svn-id: https://svn.openchange.org/openchange@2489 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoImplement a bit more of mapistore_v2 conversion
bradh [Thu, 6 Jan 2011 21:10:29 +0000 (21:10 +0000)]
Implement a bit more of mapistore_v2 conversion

Removes some unused code, and provides stubs for part of mstoredb.

git-svn-id: https://svn.openchange.org/openchange@2488 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoAdd missing files and update ignore properties.
bradh [Thu, 6 Jan 2011 08:12:41 +0000 (08:12 +0000)]
Add missing files and update ignore properties.

git-svn-id: https://svn.openchange.org/openchange@2487 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agotypo fix for property name, plus minor formatting cleanups.
bradh [Thu, 6 Jan 2011 05:35:27 +0000 (05:35 +0000)]
typo fix for property name, plus minor formatting cleanups.

git-svn-id: https://svn.openchange.org/openchange@2486 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoConversion from PR_FOO style names to PidTagFoo style names
bradh [Thu, 6 Jan 2011 05:26:32 +0000 (05:26 +0000)]
Conversion from PR_FOO style names to PidTagFoo style names

I'm truly sorry for the python script that generates these names
from the [MS-OXPROPS].pdf reference. It needs a really good cleanup.

git-svn-id: https://svn.openchange.org/openchange@2485 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoenhanced/fixed memory handling + take the extra \\0 ascii char into account in string...
wsourdeau [Thu, 6 Jan 2011 03:12:27 +0000 (03:12 +0000)]
enhanced/fixed memory handling + take the extra \\0 ascii char into account in string macros when used as parameter to sizeof

git-svn-id: https://svn.openchange.org/openchange@2484 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoRopRelease: set the released handle to 0xffffffff for easier debugging
wsourdeau [Thu, 6 Jan 2011 03:05:54 +0000 (03:05 +0000)]
RopRelease: set the released handle to 0xffffffff for easier debugging

git-svn-id: https://svn.openchange.org/openchange@2483 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoRopQueryPosition: returns 0xffffffff if the table numerator has reached the denominat...
wsourdeau [Thu, 6 Jan 2011 03:04:49 +0000 (03:04 +0000)]
RopQueryPosition: returns 0xffffffff if the table numerator has reached the denominator; RopSeekRow: returns MAPI_E_INVALID_BOOKMARK when the offset >= the table denominator (empty tables); RopFindRow: take the bookmark into account by setting the denominator accordinly and work-around the lack of support for DIR_BACKWARD (untested)

git-svn-id: https://svn.openchange.org/openchange@2482 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoemsabp_tdb_traverse_MId_DN: compare the key with "CN=" rather than the EMSABP_TDB_DAT...
wsourdeau [Thu, 6 Jan 2011 03:00:12 +0000 (03:00 +0000)]
emsabp_tdb_traverse_MId_DN: compare the key with "CN=" rather than the EMSABP_TDB_DATA_REC macro since we want to return a real DN

git-svn-id: https://svn.openchange.org/openchange@2481 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoAdd libgcal dependency to build system
mbonnet [Wed, 5 Jan 2011 16:33:49 +0000 (16:33 +0000)]
Add libgcal dependency to build system
Add preliminary gcal mapistore backend skeleton

git-svn-id: https://svn.openchange.org/openchange@2480 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agofixed response of QueryRows on rules tables
wsourdeau [Wed, 5 Jan 2011 15:18:31 +0000 (15:18 +0000)]
fixed response of QueryRows on rules tables

git-svn-id: https://svn.openchange.org/openchange@2479 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoreindentation+detect and bypass rules table in RopFindRow
wsourdeau [Wed, 5 Jan 2011 15:05:28 +0000 (15:05 +0000)]
reindentation+detect and bypass rules table in RopFindRow

git-svn-id: https://svn.openchange.org/openchange@2478 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoCreate a development branch for Google Calendar backend development
jkerihuel [Wed, 5 Jan 2011 10:55:40 +0000 (10:55 +0000)]
Create a development branch for Google Calendar backend development

git-svn-id: https://svn.openchange.org/openchange@2477 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoimport latest mparse.pl from trunk.
bradh [Wed, 5 Jan 2011 10:19:16 +0000 (10:19 +0000)]
import latest mparse.pl from trunk.

git-svn-id: https://svn.openchange.org/openchange@2476 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoSome interim work on GetPropertiesSpecific call.
bradh [Wed, 5 Jan 2011 09:01:23 +0000 (09:01 +0000)]
Some interim work on GetPropertiesSpecific call.

git-svn-id: https://svn.openchange.org/openchange@2475 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agowhen comparing a tdb key with a string, we also need to compare their lengths, in...
wsourdeau [Wed, 5 Jan 2011 04:55:20 +0000 (04:55 +0000)]
when comparing a tdb key with a string, we also need to compare their lengths, in case the key is shorter than the string but has the same prefix

git-svn-id: https://svn.openchange.org/openchange@2474 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agowhen comparing a tdb key with a string, we also need to compare their lengths, in...
wsourdeau [Wed, 5 Jan 2011 03:47:01 +0000 (03:47 +0000)]
when comparing a tdb key with a string, we also need to compare their lengths, in case the key is shorter than the string but has the same prefix

git-svn-id: https://svn.openchange.org/openchange@2473 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoImplement lookup of mailbox GUID and replica information in mapistore.
bradh [Wed, 5 Jan 2011 02:48:45 +0000 (02:48 +0000)]
Implement lookup of mailbox GUID and replica information in mapistore.

git-svn-id: https://svn.openchange.org/openchange@2472 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoStart fetching FIDs from mapistore during logon.
bradh [Wed, 5 Jan 2011 01:29:18 +0000 (01:29 +0000)]
Start fetching FIDs from mapistore during logon.

Implements initial versions of op_getprops and op_setprops for mstore backend.

We now add those FIDs to the mailbox root during provisioning.

git-svn-id: https://svn.openchange.org/openchange@2471 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoreverted r2449
wsourdeau [Tue, 4 Jan 2011 13:36:52 +0000 (13:36 +0000)]
reverted r2449

git-svn-id: https://svn.openchange.org/openchange@2470 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agooptimized things a little by avoiding excessive array wandering when the required...
wsourdeau [Tue, 4 Jan 2011 13:36:18 +0000 (13:36 +0000)]
optimized things a little by avoiding excessive array wandering when the required element has been found

git-svn-id: https://svn.openchange.org/openchange@2469 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoAdd a context ID for oxcstor logon code.
bradh [Tue, 4 Jan 2011 04:49:02 +0000 (04:49 +0000)]
Add a context ID for oxcstor logon code.

git-svn-id: https://svn.openchange.org/openchange@2468 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoAllow public folders to store a URI too.
bradh [Tue, 4 Jan 2011 04:48:07 +0000 (04:48 +0000)]
Allow public folders to store a URI too.

git-svn-id: https://svn.openchange.org/openchange@2467 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoMinor updates to provisioning test tool.
bradh [Tue, 4 Jan 2011 04:46:58 +0000 (04:46 +0000)]
Minor updates to provisioning test tool.

git-svn-id: https://svn.openchange.org/openchange@2466 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoBump to alpha14.
bradh [Mon, 3 Jan 2011 22:17:13 +0000 (22:17 +0000)]
Bump to alpha14.

git-svn-id: https://svn.openchange.org/openchange@2465 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoAvoid using "namespace" - reserved word in C++.
bradh [Sat, 1 Jan 2011 09:31:46 +0000 (09:31 +0000)]
Avoid using "namespace" - reserved word in C++.

git-svn-id: https://svn.openchange.org/openchange@2464 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoStart of a C provisioning system, and some initial porting of
bradh [Sat, 1 Jan 2011 06:13:09 +0000 (06:13 +0000)]
Start of a C provisioning system, and some initial porting of
the emsmdb server to mapistore_v2.

git-svn-id: https://svn.openchange.org/openchange@2463 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoAvoid double-free of the memory context.
bradh [Sat, 1 Jan 2011 00:33:52 +0000 (00:33 +0000)]
Avoid double-free of the memory context.

git-svn-id: https://svn.openchange.org/openchange@2462 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoImplement "normal" folder creation.
bradh [Fri, 31 Dec 2010 23:15:53 +0000 (23:15 +0000)]
Implement "normal" folder creation.

We probably need to collapse op_root_mkdir() and op_mkdir() into a single
backend function.

git-svn-id: https://svn.openchange.org/openchange@2461 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoImplement mstoredb op_readdir_count (for folders).
bradh [Fri, 31 Dec 2010 09:10:19 +0000 (09:10 +0000)]
Implement mstoredb op_readdir_count (for folders).

git-svn-id: https://svn.openchange.org/openchange@2460 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoImplement lookup of FID by folder name (and parent FID) for mstoredb backend
bradh [Fri, 31 Dec 2010 08:42:29 +0000 (08:42 +0000)]
Implement lookup of FID by folder name (and parent FID) for mstoredb backend

Also add stub implementation of opendir() for mstoredb backend.

git-svn-id: https://svn.openchange.org/openchange@2459 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoReduce the debug noise a bit.
bradh [Fri, 31 Dec 2010 08:39:32 +0000 (08:39 +0000)]
Reduce the debug noise a bit.

git-svn-id: https://svn.openchange.org/openchange@2458 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoAdd the special folder type where appropriate.
bradh [Fri, 31 Dec 2010 04:04:24 +0000 (04:04 +0000)]
Add the special folder type where appropriate.

git-svn-id: https://svn.openchange.org/openchange@2457 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoAdd support for indexing new folders
bradh [Fri, 31 Dec 2010 03:56:39 +0000 (03:56 +0000)]
Add support for indexing new folders

This was a bit messy because we may need the URI, which is potentially
only available to the backend. So we pass it back from the backend.

git-svn-id: https://svn.openchange.org/openchange@2456 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoImplement root folder handling in mstoredb backend.
bradh [Fri, 31 Dec 2010 02:42:47 +0000 (02:42 +0000)]
Implement root folder handling in mstoredb backend.

Add tests in the C test code (mapistore_test.c) to check various cases.

We no longer handle GlobalCount in mapistoredb, and use the indexing tdb
instead. We pass the FID to the backend in the mkdir case.

Update python bindings and test code to match

Minor API documentation changes

Still a lot of work to go on this.

git-svn-id: https://svn.openchange.org/openchange@2455 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoimplemented RopGetStreamSize
wsourdeau [Thu, 30 Dec 2010 19:36:37 +0000 (19:36 +0000)]
implemented RopGetStreamSize

git-svn-id: https://svn.openchange.org/openchange@2454 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoidentified a few useful ids
wsourdeau [Thu, 30 Dec 2010 04:37:57 +0000 (04:37 +0000)]
identified a few useful ids

git-svn-id: https://svn.openchange.org/openchange@2453 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoenabled the setting of properties on table objects, leaving proper support to the...
wsourdeau [Thu, 30 Dec 2010 04:37:18 +0000 (04:37 +0000)]
enabled the setting of properties on table objects, leaving proper support to the backend

git-svn-id: https://svn.openchange.org/openchange@2452 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoimplemented RopResetTable (mapistore only for now)
wsourdeau [Thu, 30 Dec 2010 00:22:26 +0000 (00:22 +0000)]
implemented RopResetTable (mapistore only for now)

git-svn-id: https://svn.openchange.org/openchange@2451 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoenhanced debug messages here and there...
wsourdeau [Thu, 30 Dec 2010 00:21:39 +0000 (00:21 +0000)]
enhanced debug messages here and there...

git-svn-id: https://svn.openchange.org/openchange@2450 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoadded hack that hopefully work-arounds certain handle issues
wsourdeau [Thu, 30 Dec 2010 00:20:12 +0000 (00:20 +0000)]
added hack that hopefully work-arounds certain handle issues

git-svn-id: https://svn.openchange.org/openchange@2449 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoreturn a value for PR_SMT_ADDRESS/_UNICODE and PR_ORIGINAL_ENTRYID
wsourdeau [Wed, 29 Dec 2010 21:49:29 +0000 (21:49 +0000)]
return a value for PR_SMT_ADDRESS/_UNICODE and PR_ORIGINAL_ENTRYID

git-svn-id: https://svn.openchange.org/openchange@2448 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoaccept NULL rows without causing a segfault
wsourdeau [Wed, 29 Dec 2010 21:48:26 +0000 (21:48 +0000)]
accept NULL rows without causing a segfault

git-svn-id: https://svn.openchange.org/openchange@2447 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoadded inclusion of libmapi/mapi_nameid.h
wsourdeau [Wed, 29 Dec 2010 21:47:53 +0000 (21:47 +0000)]
added inclusion of libmapi/mapi_nameid.h

git-svn-id: https://svn.openchange.org/openchange@2446 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoadded the EMSMDBP_TABLE_FAI_TYPE and EMSMDBP_TABLE_RULE_TYPE table types, modified...
wsourdeau [Wed, 29 Dec 2010 21:46:48 +0000 (21:46 +0000)]
added the EMSMDBP_TABLE_FAI_TYPE and EMSMDBP_TABLE_RULE_TYPE table types, modified op_createmessage to take an "associated" type parameter and mapistore_get_message_count to take a table_type parameter + fake the rule table + enhanced debugging messages wrt handles management

git-svn-id: https://svn.openchange.org/openchange@2445 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoenhanced type info for certain unknown properties and added more such properties
wsourdeau [Wed, 29 Dec 2010 21:39:28 +0000 (21:39 +0000)]
enhanced type info for certain unknown properties and added more such properties

git-svn-id: https://svn.openchange.org/openchange@2444 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoClean up mapistore indexing files with "make clean".
bradh [Wed, 29 Dec 2010 06:44:20 +0000 (06:44 +0000)]
Clean up mapistore indexing files with "make clean".

git-svn-id: https://svn.openchange.org/openchange@2443 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agore-introduce a C test framework for mapistore / mapistoredb.
bradh [Tue, 28 Dec 2010 03:34:45 +0000 (03:34 +0000)]
re-introduce a C test framework for mapistore / mapistoredb.

Pretty limited at this stage.

git-svn-id: https://svn.openchange.org/openchange@2442 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoFactor out some of the common LDIF writing code, and check errors.
bradh [Tue, 28 Dec 2010 03:33:28 +0000 (03:33 +0000)]
Factor out some of the common LDIF writing code, and check errors.

Add cleanup routine for the mapistoredb context.

git-svn-id: https://svn.openchange.org/openchange@2441 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoTypo fix in template name.
bradh [Mon, 27 Dec 2010 04:11:02 +0000 (04:11 +0000)]
Typo fix in template name.

git-svn-id: https://svn.openchange.org/openchange@2440 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoBump to samba4 alpha14 release.
bradh [Mon, 27 Dec 2010 04:04:53 +0000 (04:04 +0000)]
Bump to samba4 alpha14 release.

git-svn-id: https://svn.openchange.org/openchange@2439 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoDon't link mapistore FSOCPF backend against SQLITE libs
bradh [Sun, 26 Dec 2010 06:31:40 +0000 (06:31 +0000)]
Don't link mapistore FSOCPF backend against SQLITE libs

git-svn-id: https://svn.openchange.org/openchange@2438 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoResolve user name instead of using a hard-coded value.
bradh [Sun, 26 Dec 2010 04:32:47 +0000 (04:32 +0000)]
Resolve user name instead of using a hard-coded value.

git-svn-id: https://svn.openchange.org/openchange@2437 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoInitial implementation of SMTP mail sending with FSOCPF backend.
bradh [Sun, 26 Dec 2010 02:40:11 +0000 (02:40 +0000)]
Initial implementation of SMTP mail sending with FSOCPF backend.

So given an openchangeclient submission like:
./bin/openchangeclient --sendmail --to="bradh@frogmouth.net" --cc="bradh@openchange.org" --subject="Test message" --body="Hello SMTP world"
we:
 - build up the message (properties and recipients), saving those in FSOCPF
 - convert the message to RFC2822 style format using liboxcmail
 - send that out using libcurl SMTP sending format.

There is a hard-coded From: (sender) address which I need to figure out how to determine automatically.

git-svn-id: https://svn.openchange.org/openchange@2436 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoWe probably need better handling of recipients in OCPF, but SMTP address is good...
bradh [Sun, 26 Dec 2010 02:31:16 +0000 (02:31 +0000)]
We probably need better handling of recipients in OCPF, but SMTP address is good for now.

git-svn-id: https://svn.openchange.org/openchange@2435 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoAdd support for generating date related headers. Includes mapitest.
bradh [Sun, 26 Dec 2010 02:28:58 +0000 (02:28 +0000)]
Add support for generating date related headers. Includes mapitest.

Also make sure we can use both PT_STRING8 and PT_UNICODE (whichever is provided) for string coversions.

git-svn-id: https://svn.openchange.org/openchange@2434 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoRemove unused variable.
bradh [Sun, 26 Dec 2010 02:26:30 +0000 (02:26 +0000)]
Remove unused variable.

git-svn-id: https://svn.openchange.org/openchange@2433 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoMore work on recipient saving into FSOCPF.
bradh [Sat, 25 Dec 2010 06:02:08 +0000 (06:02 +0000)]
More work on recipient saving into FSOCPF.

As well as saving the recipients, this also changes a structure element name (class), to avoid conflict with C++.
Also fix a couple of comment typos.

git-svn-id: https://svn.openchange.org/openchange@2432 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoInitial work on a ModifyRecipients implementation, mainly borrowed from SOGO branch.
bradh [Fri, 24 Dec 2010 00:37:43 +0000 (00:37 +0000)]
Initial work on a ModifyRecipients implementation, mainly borrowed from SOGO branch.

Initial work on fsocpf backend by me.

git-svn-id: https://svn.openchange.org/openchange@2431 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoUpdate test code to match signature change in ResolveNames.
bradh [Fri, 24 Dec 2010 00:03:32 +0000 (00:03 +0000)]
Update test code to match signature change in ResolveNames.

The rest of the changes are just whitespace to line the arguments up.

git-svn-id: https://svn.openchange.org/openchange@2430 71d39326-ef09-db11-b2a4-00e04c779ad1

13 years agoadded TODO notice
wsourdeau [Thu, 23 Dec 2010 19:26:06 +0000 (19:26 +0000)]
added TODO notice

git-svn-id: https://svn.openchange.org/openchange@2429 71d39326-ef09-db11-b2a4-00e04c779ad1