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

« back to all changes in this revision

Viewing changes to utils/mapitest/mapitest_common.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:
60
60
                                          mapi_object_t *obj_child,
61
61
                                          uint32_t olNum)
62
62
{
63
 
        enum MAPISTATUS retval;
64
63
        mapi_id_t       id_child;
65
64
 
66
 
        retval = GetDefaultFolder(obj_parent, &id_child, olNum);
 
65
        GetDefaultFolder(obj_parent, &id_child, olNum);
67
66
        if (GetLastError() != MAPI_E_SUCCESS) {
68
67
                mapitest_print(mt, "* %-35s: 0x%.8x\n", "GetDefaultFolder", GetLastError());
69
68
                return false;
70
69
        }
71
70
 
72
 
        retval = OpenFolder(obj_parent, id_child, obj_child);
 
71
        OpenFolder(obj_parent, id_child, obj_child);
73
72
        if (GetLastError() != MAPI_E_SUCCESS) {
74
73
                mapitest_print(mt, "* %-35s: 0x%.8x\n", "OpenFolder", GetLastError());
75
74
                return false;
394
393
                        return false;
395
394
                }
396
395
 
397
 
                from = talloc_asprintf(mt->mem_ctx, "[MT] Dummy%i", i);
 
396
                from = talloc_asprintf(mt->mem_ctx, "MT Dummy%i", i);
398
397
                set_SPropValue_proptag(&lpProp[0], PR_SENDER_NAME, (const void *)from);
399
398
                body = talloc_asprintf(mt->mem_ctx, "Body of message %i", i);
400
399
                set_SPropValue_proptag(&lpProp[1], PR_BODY, (const void *)body);
417
416
        /* Create 5 test messages in the test folder with the same sender */
418
417
        for (i = 5; i < 10; ++i) {
419
418
                mapi_object_init(&(context->obj_test_msg[i]));
420
 
                subject = talloc_asprintf(mt->mem_ctx, "[MT] Subject%i", i);
 
419
                subject = talloc_asprintf(mt->mem_ctx, "MT Subject%i", i);
421
420
                ret = mapitest_common_message_create(mt, &(context->obj_test_folder),
422
421
                                                        &(context->obj_test_msg[i]), subject);
423
422
                if (! ret){
425
424
                        return false;
426
425
                }
427
426
 
428
 
                from = talloc_asprintf(mt->mem_ctx, "[MT] Dummy From");
 
427
                from = talloc_asprintf(mt->mem_ctx, "MT Dummy From");
429
428
                set_SPropValue_proptag(&lpProp[0], PR_SENDER_NAME, (const void *)from);
430
429
                body = talloc_asprintf(mt->mem_ctx, "Body of message %i", i);
431
430
                set_SPropValue_proptag(&lpProp[1], PR_BODY, (const void *)body);