tridge/openchange.git
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

13 years agoBuild fixes for recent s4 changes.
bradh [Sat, 12 Feb 2011 08:50:37 +0000 (08:50 +0000)]
Build fixes for recent s4 changes.

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

13 years agoOnly make use of PT_UNICODE of textual props
wsourdeau [Sat, 12 Feb 2011 04:28:42 +0000 (04:28 +0000)]
Only make use of PT_UNICODE of textual props

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

13 years agoFixed hanling of non-MAPI_E_NOT_FOUND errors with property fetches
wsourdeau [Sat, 12 Feb 2011 04:28:02 +0000 (04:28 +0000)]
Fixed hanling of non-MAPI_E_NOT_FOUND errors with property fetches

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

13 years agoFixed RopGetPropertiesSpecific with regards to formatting of error values + return...
wsourdeau [Sat, 12 Feb 2011 04:27:14 +0000 (04:27 +0000)]
Fixed RopGetPropertiesSpecific with regards to formatting of error values + return size of stream storage file in the reply to RopOpenStream

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

13 years agoFixed SeekRow by supporting BOOKMARK_CURRENT and BOOKMARK_END and by returning proper...
wsourdeau [Fri, 11 Feb 2011 15:48:49 +0000 (15:48 +0000)]
Fixed SeekRow by supporting BOOKMARK_CURRENT and BOOKMARK_END and by returning property value for HasSoughtless and RowsSought, based on the documentation. Also, made the latter signed in exchange.idl.

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

13 years agoComment fix.
bradh [Fri, 11 Feb 2011 03:52:22 +0000 (03:52 +0000)]
Comment fix.

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

13 years agoUpdate to reflect recent samba4 changes.
bradh [Fri, 11 Feb 2011 02:34:56 +0000 (02:34 +0000)]
Update to reflect recent samba4 changes.

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

13 years agoserver: Update to reflect samba4 auth changes
bradh [Fri, 11 Feb 2011 01:12:31 +0000 (01:12 +0000)]
server: Update to reflect samba4 auth changes

Patch by Andrew Tridgell. Thanks!

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

13 years agoenable responses for PT_MV_UNICODE response values
wsourdeau [Thu, 10 Feb 2011 17:55:37 +0000 (17:55 +0000)]
enable responses for PT_MV_UNICODE response values

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

13 years agoMinor addition documentation changes for samba build system changes.
bradh [Thu, 10 Feb 2011 04:49:11 +0000 (04:49 +0000)]
Minor addition documentation changes for samba build system changes.

We can now do the whole provisioning stage from the top level
openchange directory.

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

13 years agoadded PR_NATIVE_BODY_INFO
wsourdeau [Wed, 9 Feb 2011 22:24:32 +0000 (22:24 +0000)]
added PR_NATIVE_BODY_INFO

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

13 years agoMinor additional samba4 build script fixes.
bradh [Wed, 9 Feb 2011 05:00:47 +0000 (05:00 +0000)]
Minor additional samba4 build script fixes.

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

13 years agoFix typo in Makefile (DESTIDR -> DESTDIR).
jelmer [Tue, 8 Feb 2011 11:16:28 +0000 (11:16 +0000)]
Fix typo in Makefile (DESTIDR -> DESTDIR).

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

13 years ago- Add an initialization function for backends. This function offers
jkerihuel [Tue, 8 Feb 2011 11:03:07 +0000 (11:03 +0000)]
- Add an initialization function for backends. This function offers
  backends the ability to remove empty skeleton from their code and
  ensure they won't crash the server if one ops is missing.

- Make defaults ops return MAPISTORE_ERR_NOT_IMPLEMENTED

- Call mapistore_backend_init_defaults from backends

- Turn DEBUG macros into MSTORE_DEBUG_* in backends

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

13 years agoTurn DEBUG() macros into MSTORE_DEBUG_*()
jkerihuel [Tue, 8 Feb 2011 00:00:46 +0000 (00:00 +0000)]
Turn DEBUG() macros into MSTORE_DEBUG_*()

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

13 years agoRopOpenMessage: properly take SUBJECT_PREFIX and NORMALIZED_SUBJECT into account...
wsourdeau [Mon, 7 Feb 2011 23:12:43 +0000 (23:12 +0000)]
RopOpenMessage: properly take SUBJECT_PREFIX and NORMALIZED_SUBJECT into account and pass them as Unicode since they may contain non-ascii characters

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

13 years agolibmapiserver_TypedString_size: fixed computing of UNICODE (utf-16) strings from...
wsourdeau [Mon, 7 Feb 2011 23:11:45 +0000 (23:11 +0000)]
libmapiserver_TypedString_size: fixed computing of UNICODE (utf-16) strings from UTF-8 content by using the strlen_m_ext() samba function

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

13 years agoimplemented stub for RopCopyTo
wsourdeau [Mon, 7 Feb 2011 17:07:51 +0000 (17:07 +0000)]
implemented stub for RopCopyTo

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

13 years ago- Let backends register named properties:
jkerihuel [Mon, 7 Feb 2011 16:10:32 +0000 (16:10 +0000)]
- Let backends register named properties:
  - Either external == public, used by a client and understood by the
    associated backend only
  - Or internal == private, only for backend's internal usage

Backends can either specify a buffer with LDIF data or full patch to
the LDIF file.

mapping index attribute is automatically updated both for CN=External
and CN=Internal. Backends are guaranteed (upon successful
registration) that each of the backend property is mapped and available.

- Add MAPISTORE_ERR_NOT_IMPLEMENTED error code to mapistore errors enum

- Add skeleton backend's hook for namedprops provisioning in mstoredb
  and fsocpf backends.

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

13 years agoStart internal index mapping at 0x1 instead of 0x0
jkerihuel [Mon, 7 Feb 2011 15:38:43 +0000 (15:38 +0000)]
Start internal index mapping at 0x1 instead of 0x0

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

13 years agoAdd an objectClass: External and objectClass: Internal for better
jkerihuel [Mon, 7 Feb 2011 11:45:43 +0000 (11:45 +0000)]
Add an objectClass: External and objectClass: Internal for better
indexing and search

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

13 years agoMinor documentation update to reflect samba4 buildsystem changes.
bradh [Mon, 7 Feb 2011 11:01:10 +0000 (11:01 +0000)]
Minor documentation update to reflect samba4 buildsystem changes.

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

13 years agoUpdate build script to reflect samba buildsystem changes.
bradh [Mon, 7 Feb 2011 10:50:45 +0000 (10:50 +0000)]
Update build script to reflect samba buildsystem changes.

More changes are required for documentation.

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

13 years agoMinor update for API documentation
bradh [Sun, 6 Feb 2011 22:51:29 +0000 (22:51 +0000)]
Minor update for API documentation

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

13 years agomissed variable initialization
wsourdeau [Sun, 6 Feb 2011 22:47:06 +0000 (22:47 +0000)]
missed variable initialization

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

13 years agofixed definitions in TABLE_SORT based on OXCDATA.pdf
wsourdeau [Sat, 5 Feb 2011 21:55:38 +0000 (21:55 +0000)]
fixed definitions in TABLE_SORT based on OXCDATA.pdf

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

13 years agoimplemented RopSortOrder
wsourdeau [Sat, 5 Feb 2011 21:55:03 +0000 (21:55 +0000)]
implemented RopSortOrder

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

13 years agoremoved intrusive debugging + accept BOOKMARK_BEGINNING for empty tables but return...
wsourdeau [Fri, 4 Feb 2011 19:16:54 +0000 (19:16 +0000)]
removed intrusive debugging + accept BOOKMARK_BEGINNING for empty tables but return MAPI_E_NOT_FOUND when no row is available

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

13 years ago- Add a function to provision a namespace in named properties database
jkerihuel [Fri, 4 Feb 2011 14:07:37 +0000 (14:07 +0000)]
- Add a function to provision a namespace in named properties database
  for a given user and associated python bindings code

- Add a function to check if a user exists in named properties
  database

- Add python bindings code to turn MAPISTORE_ERROR into string error
  messages both within mapistore and mapistoredb interfaces

- Update provision script to display error strings instead of integer
  values and update provision.py test code to create a named
  properties namespace for the user.

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

13 years ago- Generate pymapi properties objects from makepropslist.py rather than
jkerihuel [Fri, 4 Feb 2011 12:45:55 +0000 (12:45 +0000)]
- Generate pymapi properties objects from makepropslist.py rather than
  mparse.pl

- Commit pymapi_properties.c instead of auto-generating during make
  process

- Remove pymapi_properties code generation from mparse.pl and avoid it
  from being removed upon make clean.

- Adjust the very basic properties.py sample to use canonical names
  instead of altnames and remove unsupported (not covered by MS Doc)
  properties from the example.

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

13 years agoadded fid as argument to op_deletemessage
wsourdeau [Thu, 3 Feb 2011 22:35:11 +0000 (22:35 +0000)]
added fid as argument to op_deletemessage

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

13 years ago- Add mapistore function and associate bindings to retrieve the
jkerihuel [Thu, 3 Feb 2011 17:48:11 +0000 (17:48 +0000)]
- Add mapistore function and associate bindings to retrieve the
  default first available ID both for external and internal mappings.

- Remove unused variable in mapistore_namedprops.c

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

13 years agoFix incorrect cn for CN=External,CN=Server record
jkerihuel [Thu, 3 Feb 2011 17:06:42 +0000 (17:06 +0000)]
Fix incorrect cn for CN=External,CN=Server record

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

13 years agoRemove remaining references to nprops_ctx and replace them with
jkerihuel [Thu, 3 Feb 2011 16:59:32 +0000 (16:59 +0000)]
Remove remaining references to nprops_ctx and replace them with
mapistore_nprops_ctx.

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

13 years ago- Move named properties database provisioning out of mapistore_init()
jkerihuel [Thu, 3 Feb 2011 16:36:44 +0000 (16:36 +0000)]
- Move named properties database provisioning out of mapistore_init()

- Only create it through mapistoredb at provisioning time

- Add an interface in libmapistore/database to provision named
  properties and add associated python bindings and working code
  example within pyopenchange/tests/provision.py

- Remove deprecated code from mparse.pl for known and named property tags

- Add a convenient function in mapistore_processing.c to provision a
  LDB database using a LDIF file

- Add database schema and ROOTDSE to mapi_named_properties.ldb
  database

- Add MAPISTORE_ERR_NOT_IMPLEMENTED error code to the MAPISTORE_ERROR
  enum

- Replace some existing DEBUG macros with MSTORE_DEBUG_ equivalent

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

13 years agoFor named properties duplicate checks on MNID_STRING we want to couple
jkerihuel [Thu, 3 Feb 2011 16:14:23 +0000 (16:14 +0000)]
For named properties duplicate checks on MNID_STRING we want to couple
the keyword to the oleguid, if oleguid mismatches, then it must not be
considered as a duplicate.

Update generated code concerned by this change

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

13 years ago- Fix LDIF file generation for named properties database (dn: was
jkerihuel [Thu, 3 Feb 2011 15:45:41 +0000 (15:45 +0000)]
- Fix LDIF file generation for named properties database (dn: was
  missing)

- Remove named properties duplicate (MNID_ID or MNID_STRING). This was
  also preventing from provisioning the named properties database
  properly.

- Update files concerned by the parser changes

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

13 years agoRelease mem_ctx where needed
jkerihuel [Thu, 3 Feb 2011 13:55:50 +0000 (13:55 +0000)]
Release mem_ctx where needed

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

13 years ago- Add getsetters on mapistore_named_properties.ldb database
jkerihuel [Thu, 3 Feb 2011 12:41:54 +0000 (12:41 +0000)]
- Add getsetters on mapistore_named_properties.ldb database

- Add a pointer to mapistore_named_properties database in
  mapistoredb_conf structure and initialize it within
  mapistoredb_init() function.

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