~ubuntu-branches/debian/sid/openchange/sid

« back to all changes in this revision

Viewing changes to libmapi/simple_mapi.c

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij
  • Date: 2012-04-12 20:07:57 UTC
  • mfrom: (11 sid)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: package-import@ubuntu.com-20120412200757-k933d9trljmxj1l4
Tags: 1:1.0-4
* openchangeserver: Add dependency on openchangeproxy.
* Rebuild against newer version of Samba 4.
* Use dpkg-buildflags.
* Migrate to Git, update Vcs-Git header.
* Switch to debhelper 9.

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
        store = (mapi_object_store_t *)obj_store->private_data;
125
125
        OPENCHANGE_RETVAL_IF(!store, MAPI_E_NOT_INITIALIZED, NULL);
126
126
 
127
 
        mem_ctx = talloc_named(NULL, 0, "CacheDefaultFolders");
 
127
        mem_ctx = talloc_named(mapi_object_get_session(obj_store), 0, "CacheDefaultFolders");
128
128
 
129
129
        mapi_object_init(&obj_inbox);
130
130
        retval = GetReceiveFolder(obj_store, &id_inbox, NULL);
430
430
        OPENCHANGE_RETVAL_IF(!unread, MAPI_E_INVALID_PARAMETER, NULL);
431
431
        OPENCHANGE_RETVAL_IF(!total, MAPI_E_INVALID_PARAMETER, NULL);
432
432
 
433
 
        mem_ctx = talloc_named(NULL, 0, "GetFolderItemsCount");
 
433
        mem_ctx = talloc_named(mapi_object_get_session(obj_folder), 0, "GetFolderItemsCount");
434
434
 
435
435
        SPropTagArray = set_SPropTagArray(mem_ctx, 0x2, 
436
436
                                          PR_CONTENT_UNREAD,
504
504
 
505
505
        rowList.ModifyFlags = 0;
506
506
 
507
 
        mem_ctx = talloc_named(NULL, 0, "AddUserPermission");
 
507
        mem_ctx = talloc_named(mapi_object_get_session(obj_folder), 0, "AddUserPermission");
508
508
 
509
509
        /* query Address book */
510
510
 
585
585
 
586
586
        rowList.ModifyFlags = 0;
587
587
 
588
 
        mem_ctx = talloc_named(NULL, 0, "ModifyUserPermission");
 
588
        mem_ctx = talloc_named(mapi_object_get_session(obj_folder), 0, "ModifyUserPermission");
589
589
 
590
590
        SPropTagArray = set_SPropTagArray(mem_ctx, 2, PR_ENTRYID, PR_DISPLAY_NAME);
591
591
        names[0] = username;
701
701
        OPENCHANGE_RETVAL_IF(!obj_folder, MAPI_E_INVALID_PARAMETER, NULL);
702
702
        OPENCHANGE_RETVAL_IF(!username, MAPI_E_INVALID_PARAMETER, NULL);
703
703
 
704
 
        mem_ctx = talloc_named(NULL, 0, "RemoveUserPermission");
 
704
        mem_ctx = talloc_named(mapi_object_get_session(obj_folder), 0, "RemoveUserPermission");
705
705
 
706
706
        SPropTagArray = set_SPropTagArray(mem_ctx, 2, PR_ENTRYID, PR_DISPLAY_NAME);
707
707
        names[0] = username;
808
808
 
809
809
        /* Step 1. Retrieve properties needed by the BestBody algorithm */
810
810
        SPropTagArray = set_SPropTagArray(mapi_ctx->mem_ctx, 0x4,
811
 
                                          PR_BODY,
 
811
                                          PR_BODY_UNICODE,
812
812
                                          PR_RTF_COMPRESSED,
813
813
                                          PR_HTML,
814
814
                                          PR_RTF_IN_SYNC);