tridge/openchange.git
13 years agouse dcesrv_call_account_name() instead of direct structure access master
Andrew Tridgell [Tue, 15 Mar 2011 03:44:01 +0000 (14:44 +1100)]
use dcesrv_call_account_name() instead of direct structure access

13 years agoremoved header workaround
Andrew Tridgell [Fri, 4 Mar 2011 05:45:36 +0000 (16:45 +1100)]
removed header workaround

this should not be needed any more

13 years agouse new Samba4 public dce_call functions
Andrew Tridgell [Thu, 3 Mar 2011 06:30:41 +0000 (17:30 +1100)]
use new Samba4 public dce_call functions

13 years agomapiproxy: Update to reflect samba4 API change.
bradh [Mon, 14 Mar 2011 08:37:23 +0000 (08:37 +0000)]
mapiproxy: Update to reflect samba4 API change.

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

13 years agompm_uuid_cmp was actually the same function as libndr's GUID_equal
wsourdeau [Thu, 10 Mar 2011 22:44:08 +0000 (22:44 +0000)]
mpm_uuid_cmp was actually the same function as libndr's GUID_equal

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

13 years agoapplied the same work-around as in r2494, but for emsmdb
wsourdeau [Thu, 10 Mar 2011 22:42:26 +0000 (22:42 +0000)]
applied the same work-around as in r2494, but for emsmdb

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

13 years agoapplied the same work-around as in r2494, but for emsmdb
wsourdeau [Thu, 10 Mar 2011 22:42:09 +0000 (22:42 +0000)]
applied the same work-around as in r2494, but for emsmdb

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

13 years agomoved and renamed "dcesrv_uuid_matches" from nspi module to libmapiproxy as "mpm_uuid...
wsourdeau [Thu, 10 Mar 2011 21:25:37 +0000 (21:25 +0000)]
moved and renamed "dcesrv_uuid_matches" from nspi module to libmapiproxy as "mpm_uuid_cmp"

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

13 years agolibmapi: minor NSPI cleanup.
bradh [Tue, 8 Mar 2011 00:25:31 +0000 (00:25 +0000)]
libmapi: minor NSPI cleanup.

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

13 years ago"mapistore_add_context" takes an fid as parameter, take that into account in the...
wsourdeau [Mon, 7 Mar 2011 22:11:35 +0000 (22:11 +0000)]
"mapistore_add_context" takes an fid as parameter, take that into account in the test scripts

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

13 years agomapistore_pocop_get_table_row always return a MAPISTORE_ERR_X instead of a MAPI_E_X...
wsourdeau [Mon, 7 Mar 2011 22:11:06 +0000 (22:11 +0000)]
mapistore_pocop_get_table_row always return a MAPISTORE_ERR_X instead of a MAPI_E_X...

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

13 years ago"op_create_context" now takes the folder id as argument
wsourdeau [Mon, 7 Mar 2011 21:30:58 +0000 (21:30 +0000)]
"op_create_context" now takes the folder id as argument

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

13 years agoadapted provisioning script to the SOGo backend
wsourdeau [Mon, 7 Mar 2011 21:30:32 +0000 (21:30 +0000)]
adapted provisioning script to the SOGo backend

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

13 years agoremoved unused pocop
wsourdeau [Mon, 7 Mar 2011 18:53:25 +0000 (18:53 +0000)]
removed unused pocop

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

13 years agoadded support for table, message and folder subscriptions
wsourdeau [Mon, 7 Mar 2011 18:51:42 +0000 (18:51 +0000)]
added support for table, message and folder subscriptions

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

13 years agofully converted the table backend api to the poc api, so as to enable the handling...
wsourdeau [Mon, 7 Mar 2011 18:47:29 +0000 (18:47 +0000)]
fully converted the table backend api to the poc api, so as to enable the handling of different instances

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

13 years agolet the mapistore backend handle the value of PR_CONTENT_COUNT
wsourdeau [Mon, 7 Mar 2011 18:37:46 +0000 (18:37 +0000)]
let the mapistore backend handle the value of PR_CONTENT_COUNT

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

13 years agolibmapi: fix documentation typos.
bradh [Mon, 7 Mar 2011 03:02:41 +0000 (03:02 +0000)]
libmapi: fix documentation typos.

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

13 years agoAdd a little example of GAL fetching with restrictions
bradh [Mon, 7 Mar 2011 01:45:18 +0000 (01:45 +0000)]
Add a little example of GAL fetching with restrictions

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

13 years agoRevert change in r2716
bradh [Sun, 6 Mar 2011 22:43:59 +0000 (22:43 +0000)]
Revert change in r2716

This appears to cause problems on (at least) Ubuntu boxes. So we leave it
for the user to modify if needed.

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

13 years agooxcnotif[2.2.1.4.1]: when TagCount == 0xffff (too many to list), no tags are sent
wsourdeau [Sun, 6 Mar 2011 01:06:33 +0000 (01:06 +0000)]
oxcnotif[2.2.1.4.1]: when TagCount == 0xffff (too many to list), no tags are sent

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

13 years agoOCPF: apidocs typo fix.
bradh [Thu, 3 Mar 2011 23:51:13 +0000 (23:51 +0000)]
OCPF: apidocs typo fix.

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

13 years agoAdd workaround for missing samba4 headers
bradh [Thu, 3 Mar 2011 23:07:44 +0000 (23:07 +0000)]
Add workaround for missing samba4 headers

Workaround (but not fix) for bug 350.

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

13 years agolibmapiadmin: Adapt to API change in Samba4
bradh [Thu, 3 Mar 2011 22:04:38 +0000 (22:04 +0000)]
libmapiadmin: Adapt to API change in Samba4

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

13 years agobuild: Work around linker problem on Fedora 13/14 (probably gold related)
bradh [Thu, 3 Mar 2011 22:01:19 +0000 (22:01 +0000)]
build: Work around linker problem on Fedora 13/14 (probably gold related)

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

13 years agofixed crash during invalid logons
wsourdeau [Thu, 3 Mar 2011 19:13:29 +0000 (19:13 +0000)]
fixed crash during invalid logons

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

13 years agoset the parent of the mesage object to the handle passed as parameter rather than...
wsourdeau [Thu, 3 Mar 2011 15:18:41 +0000 (15:18 +0000)]
set the parent of the mesage object to the handle passed as parameter rather than to the real foldel handle

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

13 years agoImplement unit tests for python properties handling.
bradh [Wed, 2 Mar 2011 03:56:40 +0000 (03:56 +0000)]
Implement unit tests for python properties handling.

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

13 years agoOnly add TYPE and PidTagMessageClass if ctx->type exists
jkerihuel [Tue, 1 Mar 2011 17:10:55 +0000 (17:10 +0000)]
Only add TYPE and PidTagMessageClass if ctx->type exists

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

13 years ago- Make folderID uint64_t optional when writing ocpf
jkerihuel [Tue, 1 Mar 2011 12:38:30 +0000 (12:38 +0000)]
- Make folderID uint64_t optional when writing ocpf
  files. (ocpf_write_init called with folderID set to 0)
  mapistore_fsocpf doesn't need to handle fmid on behalf of mapistore
  anymore.

- only write type if PidTagMessageClass is specified/used

- do not write RECIPIENT block if recipients are NULL (e.g. folder)

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

13 years agoReimplement ocpf_get_recipients and update its API
jkerihuel [Tue, 1 Mar 2011 08:25:09 +0000 (08:25 +0000)]
Reimplement ocpf_get_recipients and update its API
Reflect changes in mapistore_fsocpf backend

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

13 years agoReplace existing OCPF recipients implementation with a SRowSet
jkerihuel [Mon, 28 Feb 2011 18:02:34 +0000 (18:02 +0000)]
Replace existing OCPF recipients implementation with a SRowSet
Use PT_UNICODE instead of PT_STRING8 for most string properties (except MNID_ID specifically tagged as PT_STRING8)
Use Recipient blocks instead of strings similar to:

RECIPIENT {
TO {
prop1 = propvalue
prop2 = propvalue2
};

CC {
[...]
};

BCC {
[...]
};
};

Works with internal/external recipients too.

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

13 years agomapistore: implement setprops for mstoredb backend.
bradh [Mon, 28 Feb 2011 04:24:51 +0000 (04:24 +0000)]
mapistore: implement setprops for mstoredb backend.

This doesn't work correctly for PT_DOUBLE. Still working on that.

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

13 years agomapitest: Minor test clean ups for Some ResolveRecipients-related problems
bradh [Mon, 28 Feb 2011 04:22:56 +0000 (04:22 +0000)]
mapitest: Minor test clean ups for Some ResolveRecipients-related problems

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

13 years agopyopenchange: fix error string
bradh [Mon, 28 Feb 2011 04:17:55 +0000 (04:17 +0000)]
pyopenchange: fix error string

Also use PT_I2 instead of PT_SHORT, to match convention in SPropValue_CTR.

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

13 years agomapistore: Remove lpcfg_server_role prototype imported from samba
bradh [Sun, 27 Feb 2011 22:30:12 +0000 (22:30 +0000)]
mapistore: Remove lpcfg_server_role prototype imported from samba

This is now propery exported from samba, and no longer required here.

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

13 years agomapistore: Fix prototype for mapistore_backend_get_uri_by_name
bradh [Sun, 27 Feb 2011 22:28:48 +0000 (22:28 +0000)]
mapistore: Fix prototype for mapistore_backend_get_uri_by_name

This should have been part of r2702.

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

13 years agomapistore: trivial documentation fixes.
bradh [Sun, 27 Feb 2011 10:04:58 +0000 (10:04 +0000)]
mapistore: trivial documentation fixes.

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

13 years agomapistore: rename get_fid_by_name to be get_uri_by_name in backend ops
bradh [Sun, 27 Feb 2011 06:56:23 +0000 (06:56 +0000)]
mapistore: rename get_fid_by_name to be get_uri_by_name in backend ops

This reflects actual usage / arguments. It might be possible to avoid
doing any backend operation for this (just use indexing DB instead), but
this allows us to check if the backend folder has been created by some
other process and would create a problem at next update. Not sure if that
is important yet.

Fix implementation of this backend function in FSOCPF backend.

Add unit testing of duplicate folder creation, which exercises this.

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

13 years agomapistore: Add a test of folder creation without a folder comment.
bradh [Sun, 27 Feb 2011 01:35:56 +0000 (01:35 +0000)]
mapistore: Add a test of folder creation without a folder comment.

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

13 years agomapistore: add python bindings and tests for get_message_count()
bradh [Sun, 27 Feb 2011 00:12:33 +0000 (00:12 +0000)]
mapistore: add python bindings and tests for get_message_count()

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

13 years agomapistore: add closedir implementation
bradh [Sat, 26 Feb 2011 10:48:06 +0000 (10:48 +0000)]
mapistore: add closedir implementation

This isn't properly implemented in fsocpf yet.

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

13 years agomapistore: add unit tests and docs for debug getter function
bradh [Sat, 26 Feb 2011 06:50:16 +0000 (06:50 +0000)]
mapistore: add unit tests and docs for debug getter function

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

13 years agolibmapi: remove stray quote in doxygen configuration.
bradh [Fri, 25 Feb 2011 00:04:20 +0000 (00:04 +0000)]
libmapi: remove stray quote in doxygen configuration.

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

13 years agoAdd sanity check, prevent from provisioning if mapistoredb_init failed or wasn't...
jkerihuel [Thu, 24 Feb 2011 21:39:20 +0000 (21:39 +0000)]
Add sanity check, prevent from provisioning if mapistoredb_init failed or wasn't called
Fix unittest for mapistoredb

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

13 years agomapistore: update API documentation
bradh [Thu, 24 Feb 2011 21:37:52 +0000 (21:37 +0000)]
mapistore: update API documentation

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

13 years agoconvert string streams from UTF-16 to UTF-8
wsourdeau [Thu, 24 Feb 2011 21:28:41 +0000 (21:28 +0000)]
convert string streams from UTF-16 to UTF-8

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

13 years agomapistore: typo fixes.
bradh [Thu, 24 Feb 2011 21:20:38 +0000 (21:20 +0000)]
mapistore: typo fixes.

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

13 years agoSplit mapistoredb initialization into 2 different steps:
jkerihuel [Thu, 24 Feb 2011 21:13:10 +0000 (21:13 +0000)]
Split mapistoredb initialization into 2 different steps:
- mapistoredb_new: memory allocation and default names provisioning
- mapistore_init: fill in last bits if unset by user and call mapistore_init

- Add mapistoredb assessors on database_path, mapping_path and named_properties_database_path
- Update python bindings to reflect these changes + associated python scripts.

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

13 years agoadded row type definitions
wsourdeau [Thu, 24 Feb 2011 18:55:42 +0000 (18:55 +0000)]
added row type definitions

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

13 years agomake use of PT_UNICODE properties
wsourdeau [Thu, 24 Feb 2011 18:54:57 +0000 (18:54 +0000)]
make use of PT_UNICODE properties

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

13 years agoimplemented RopOpenAttach, RopCreateAttach, SaveChangesAttachment (stub) using the...
wsourdeau [Thu, 24 Feb 2011 18:54:37 +0000 (18:54 +0000)]
implemented RopOpenAttach, RopCreateAttach, SaveChangesAttachment (stub) using the new PoC backend operations + adapted RopSetProperties, RopSetColumns and RopQueryRows

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

13 years agoimplemented RopOpenAttach, RopCreateAttach, SaveChangesAttachment (stub) using the...
wsourdeau [Thu, 24 Feb 2011 18:53:58 +0000 (18:53 +0000)]
implemented RopOpenAttach, RopCreateAttach, SaveChangesAttachment (stub) using the new PoC backend operations + adapted RopSetProperties, RopSetColumns and RopQueryRows

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

13 years agoPoC: implemented poc methods for "release", "get_attachment_table", "get_attachment...
wsourdeau [Thu, 24 Feb 2011 18:50:04 +0000 (18:50 +0000)]
PoC: implemented poc methods for "release", "get_attachment_table", "get_attachment", "create_attachment", "set_columns", "get_row", "get_properties" and "set_properties" backend operations

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

13 years agomapistore: trivial API docs fix.
bradh [Wed, 23 Feb 2011 22:58:16 +0000 (22:58 +0000)]
mapistore: trivial API docs fix.

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

13 years agoFix debuglevel setter for mapistore Python bindings
jkerihuel [Tue, 22 Feb 2011 17:10:54 +0000 (17:10 +0000)]
Fix debuglevel setter for mapistore Python bindings
Implement debuglevel getter for mapistore Python bindings

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

13 years agoWAF pending work on libmapi, libocpf and libmapistore. Not good enough to enter trunk.
jkerihuel [Tue, 22 Feb 2011 10:52:02 +0000 (10:52 +0000)]
WAF pending work on libmapi, libocpf and libmapistore. Not good enough to enter trunk.

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

13 years agomapistore: parameterise out some variables in the provision test script
bradh [Tue, 22 Feb 2011 00:07:33 +0000 (00:07 +0000)]
mapistore: parameterise out some variables in the provision test script

Also add a test for creating the Inbox context.

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

13 years agomapistore: implement get_folder_count() in mapistore python bindings
bradh [Mon, 21 Feb 2011 02:19:57 +0000 (02:19 +0000)]
mapistore: implement get_folder_count() in mapistore python bindings

Also convert mapistore_strip_ns_from_uri to use const char**

Also add a test for mapistore rmdir(), which appears to have
some kind of reference count problem - it is causing a python
assert that indicates that something is still reachable.

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

13 years agopyopenchange: add test case for mapistore closedir()
bradh [Sun, 20 Feb 2011 10:22:42 +0000 (10:22 +0000)]
pyopenchange: add test case for mapistore closedir()

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

13 years agofsocpf: Fix updating of properties
bradh [Sat, 19 Feb 2011 11:16:12 +0000 (11:16 +0000)]
fsocpf: Fix updating of properties

We can now either set properties where none exist, update existing property
values, and add properties to those that are already set.

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

13 years agofsocpf: Minor work on set properties
bradh [Fri, 18 Feb 2011 04:04:06 +0000 (04:04 +0000)]
fsocpf: Minor work on set properties

The problem is that we can't yet update .properties

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

13 years agomapistore: fix fsocpf backend opendir and set_props calls
bradh [Thu, 17 Feb 2011 22:57:12 +0000 (22:57 +0000)]
mapistore: fix fsocpf backend opendir and set_props calls

The set_props call isn't right - it only works for the case where
the folder we are changing is the root of the context. I see
"Invalid OCPF context" error messages, although we do try to write
to the correct file.

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

13 years ago- Move libmapistore pc file into mapiproxy/libmapistore
jkerihuel [Thu, 17 Feb 2011 17:51:39 +0000 (17:51 +0000)]
- Move libmapistore pc file into mapiproxy/libmapistore
- Complete make install process for waf libmapistore
- Add backends compilation and dependencies check to WAF libmapistore

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

13 years agomapistore: Add unit tests for opendir and setprops.
bradh [Thu, 17 Feb 2011 05:06:52 +0000 (05:06 +0000)]
mapistore: Add unit tests for opendir and setprops.

This currently breaks the tests (i.e. they fail / segfault).

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

13 years agobuildsystem: cleanup mapistore coverage noise files on make clean / distclean
bradh [Thu, 17 Feb 2011 05:05:56 +0000 (05:05 +0000)]
buildsystem: cleanup mapistore coverage noise files on make clean / distclean

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

13 years agomapistore: add unit tests of creating a sub-folder.
bradh [Thu, 17 Feb 2011 03:59:00 +0000 (03:59 +0000)]
mapistore: add unit tests of creating a sub-folder.

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

13 years agoAdd unit tests for python mapistore / mapistoredb
bradh [Thu, 17 Feb 2011 03:41:30 +0000 (03:41 +0000)]
Add unit tests for python mapistore / mapistoredb

Run it like:
./pyopenchange/unittest/unittest_mapistoredb.py
(or add -v for more verbose output)

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

13 years agomapistore: Turn down URI generation message to DEBUG level
bradh [Thu, 17 Feb 2011 01:54:56 +0000 (01:54 +0000)]
mapistore: Turn down URI generation message to DEBUG level

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

13 years agoInstall header files for libmapistore
jkerihuel [Wed, 16 Feb 2011 23:27:54 +0000 (23:27 +0000)]
Install header files for libmapistore

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

13 years ago- Introduce preliminary WAF build system support for libmapistore
jkerihuel [Wed, 16 Feb 2011 23:04:06 +0000 (23:04 +0000)]
- Introduce preliminary WAF build system support for libmapistore
- Remove libmapi/libmapi.h references within libmapistore

- Add a WAF_BUILD_INC macros to config.mk.in so waf and autoconf
  requirements with regards to includes gets similar

- Change libmapistore includes

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

13 years agofixed alignment definition for ReadStream_repl
wsourdeau [Wed, 16 Feb 2011 17:42:08 +0000 (17:42 +0000)]
fixed alignment definition for ReadStream_repl

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

13 years agomapistore: Move some function declarations from mapistore_common.h to mapistore_backend.h
bradh [Wed, 16 Feb 2011 05:14:13 +0000 (05:14 +0000)]
mapistore: Move some function declarations from mapistore_common.h to mapistore_backend.h

Most of these require a backend context. mapistore_strip_ns_from_uri() doesn't
require one, but its currently only used from the backends, and that seems
the mostly use.

Also fix / move a bit of API documentation.

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

13 years agomapistore: Use __FUNCTION__ macro instead of the literal function name for talloc_named()
bradh [Wed, 16 Feb 2011 04:30:31 +0000 (04:30 +0000)]
mapistore: Use __FUNCTION__ macro instead of the literal function name for talloc_named()

Just makes it easier to update / harder to forget to change the name.

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

13 years agoRemove stray semicolons.
bradh [Wed, 16 Feb 2011 03:59:33 +0000 (03:59 +0000)]
Remove stray semicolons.

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

13 years agopyopenchange: add setters for database path and named properties database path.
bradh [Wed, 16 Feb 2011 03:58:55 +0000 (03:58 +0000)]
pyopenchange: add setters for database path and named properties database path.

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

13 years agopyopenchange: Minor cleanup in mapistoredb test
bradh [Wed, 16 Feb 2011 03:55:28 +0000 (03:55 +0000)]
pyopenchange: Minor cleanup in mapistoredb test

Remove stray semicolon, and fix typo.

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

13 years agomapistore: debug typo fix.
bradh [Wed, 16 Feb 2011 03:53:40 +0000 (03:53 +0000)]
mapistore: debug typo fix.

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

13 years agomapistore: Remove commented-out declaration.
bradh [Wed, 16 Feb 2011 02:47:38 +0000 (02:47 +0000)]
mapistore: Remove commented-out declaration.

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

13 years agomapistore: Clean up api documentation noise
bradh [Wed, 16 Feb 2011 01:35:45 +0000 (01:35 +0000)]
mapistore: Clean up api documentation noise

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

13 years agomapistore: Fix API documentation formatting for enum MAPISTORE_NAMEDPROPS_PROVISION_TYPE
bradh [Wed, 16 Feb 2011 00:43:42 +0000 (00:43 +0000)]
mapistore: Fix API documentation formatting for enum MAPISTORE_NAMEDPROPS_PROVISION_TYPE

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

13 years agoTry harder to not show _PUBLIC_ export defines in the API documentation
bradh [Wed, 16 Feb 2011 00:42:52 +0000 (00:42 +0000)]
Try harder to not show _PUBLIC_ export defines in the API documentation

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

13 years agomapistore: fix API documentation for mapistore_createmessage()
bradh [Wed, 16 Feb 2011 00:14:01 +0000 (00:14 +0000)]
mapistore: fix API documentation for mapistore_createmessage()

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

13 years agomapistore: minor cleanups for mapistore_mkdir()
bradh [Wed, 16 Feb 2011 00:07:26 +0000 (00:07 +0000)]
mapistore: minor cleanups for mapistore_mkdir()

 - initialize pointers to NULL
 - API documentation updates
 - comment fixes
 - relabel one label to make it clearer

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

13 years agoadded support for PidNameXSieve and PidNameXVirusScanned
wsourdeau [Tue, 15 Feb 2011 15:36:56 +0000 (15:36 +0000)]
added support for PidNameXSieve and PidNameXVirusScanned

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

13 years agoDefinitely change API and move from mapistore v1 to mapistore
jkerihuel [Tue, 15 Feb 2011 15:32:03 +0000 (15:32 +0000)]
Definitely change API and move from mapistore v1 to mapistore
v2. Server is currently broken and many fsocpf features are not
working. They will be fixed along future commits.

In a nutshell, this commit change mapistore so backend only have to
deal with URI. They don't have any knowledge about FID or MID.

It also implements mkdir for mstoredb and fsocpf.

In details:
- Update provision test script to:
  - create Conflicts folder within Sync Issues folder (not root
  folder)
  - change MDB_INBOX from mstoredb to fsocpf after mstoredb Inbox
    creation

- Update python bindings.
  - Add working implementation for:
    - add_context
    - get_folder_identifier
    - opendir
    - mkdir
  - Add mapistore python bindings getsetters for debuglevel. This offers
  an easy way to increase verbosity when debugging or analyzing
  failures.
  - Add objects for folder type enum (generic, search)

- Fix fsocpf model to use URI instead of FID/MID
- Fix create_context, opendir, mkdir implementation for fsocpf

- Commit all mapistore code within EMSMDB server.

- Add mapistore_set_debuglevel to set the mapistore debug level
- Add convenient public/common function to remove the namespace from a
  URI
- Add a function to return the URI for a default folder within a given
  context
- Add a function to return the folder identifier associated to a
  mapistore URI relative to a context identifier

- Add a mapistore indexing function to return the URI associated to a
  mapistore FMID for a given folder or message.

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

13 years agoEnsure the "layout" is activated for untyped responses as well
wsourdeau [Mon, 14 Feb 2011 23:37:18 +0000 (23:37 +0000)]
Ensure the "layout" is activated for untyped responses as well

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

13 years agoRemove temporary hack introduced in r2228
bradh [Mon, 14 Feb 2011 23:00:41 +0000 (23:00 +0000)]
Remove temporary hack introduced in r2228

The linking problem with samba4 is now fixed

This resolves task #330.

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

13 years agoimplemented RopSeekStream
wsourdeau [Mon, 14 Feb 2011 19:05:56 +0000 (19:05 +0000)]
implemented RopSeekStream

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

13 years agoadded debugging output for missing handles
wsourdeau [Mon, 14 Feb 2011 18:49:21 +0000 (18:49 +0000)]
added debugging output for missing handles

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

13 years agoRemove plugfest branch - merged to trunk.
bradh [Mon, 14 Feb 2011 00:01:47 +0000 (00:01 +0000)]
Remove plugfest branch - merged to trunk.

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

13 years agoserver: intialize aux_header buffer to null if the data is missing.
bradh [Sun, 13 Feb 2011 23:33:36 +0000 (23:33 +0000)]
server: intialize aux_header buffer to null if the data is missing.

This is a merge of r2581 from the plugfest branch.

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

13 years agoserver: fix handling of XorMagic flag
bradh [Sun, 13 Feb 2011 23:13:35 +0000 (23:13 +0000)]
server: fix handling of XorMagic flag

This is a merge of r2571 from the plugfest branch, and addresses some of
the problems seen with the Microsoft MS-OXCRPC test.

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

13 years agoserver: Correct handling of rgwBestVersion
bradh [Sun, 13 Feb 2011 22:25:52 +0000 (22:25 +0000)]
server: Correct handling of rgwBestVersion

The logic is to return either the client version (if its ok) or the minimum
version that is required to connect (if the client version is not ok).

This is a merge of r2576 from the plugfest branch.

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

13 years agoserver: fix samdb_connect() signature.
bradh [Sun, 13 Feb 2011 22:15:27 +0000 (22:15 +0000)]
server: fix samdb_connect() signature.

This is a merge of r2578 from the plugfest branch. Providing
signatures of samba functions was a hack, which we'll fix in due course.

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

13 years agoserver: Fix IDL for parsing of AUX_PERF_PROCESSINFO buffer.
bradh [Sun, 13 Feb 2011 21:57:46 +0000 (21:57 +0000)]
server: Fix IDL for parsing of AUX_PERF_PROCESSINFO buffer.

This is a merge of r2589 from plugfest branch

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

13 years agolibmapi: change mapidump_recipients to use PropertyTagArray_r
bradh [Sun, 13 Feb 2011 09:31:45 +0000 (09:31 +0000)]
libmapi: change mapidump_recipients to use PropertyTagArray_r

This matches the ResolveNames() argument, and fixes 3 warnings.

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

13 years agolibexchange2ical: handle change in function signature introduced in libical 0.46
bradh [Sun, 13 Feb 2011 08:50:04 +0000 (08:50 +0000)]
libexchange2ical: handle change in function signature introduced in libical 0.46

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

13 years agoAdd PtypString8 entries for each string to enum mapitags.
bradh [Sun, 13 Feb 2011 06:49:37 +0000 (06:49 +0000)]
Add PtypString8 entries for each string to enum mapitags.

This prevents some warnings, and is useful for completeness.

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

13 years agocheck_fasttransfer: Fix warnings from recent mapistore changes.
bradh [Sun, 13 Feb 2011 04:05:11 +0000 (04:05 +0000)]
check_fasttransfer: Fix warnings from recent mapistore changes.

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