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

« back to all changes in this revision

Viewing changes to utils/openchange-tools.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:
187
187
        struct SPropValue               *lpProps;
188
188
        struct SRow                     aRow;
189
189
        uint32_t                        count;
190
 
        ssize_t                         len;
191
190
        /* common email fields */
192
191
        const char                      *msgid;
193
192
        const char                      *from, *to, *cc, *bcc;
198
197
        const char                      *codepage;
199
198
 
200
199
        /* Build the array of properties we want to fetch */
201
 
        SPropTagArray = set_SPropTagArray(mem_ctx, 0x13,
 
200
        SPropTagArray = set_SPropTagArray(mem_ctx, 0x14,
202
201
                                          PR_INTERNET_MESSAGE_ID,
203
202
                                          PR_INTERNET_MESSAGE_ID_UNICODE,
204
203
                                          PR_CONVERSATION_TOPIC,
205
204
                                          PR_CONVERSATION_TOPIC_UNICODE,
206
205
                                          PR_MSG_EDITOR_FORMAT,
207
 
                                          PR_BODY,
208
206
                                          PR_BODY_UNICODE,
209
207
                                          PR_HTML,
 
208
                                          PR_RTF_IN_SYNC,
210
209
                                          PR_RTF_COMPRESSED,
211
210
                                          PR_SENT_REPRESENTING_NAME,
212
211
                                          PR_SENT_REPRESENTING_NAME_UNICODE,
218
217
                                          PR_DISPLAY_BCC_UNICODE,
219
218
                                          PR_HASATTACH,
220
219
                                          PR_MESSAGE_CODEPAGE);
221
 
        lpProps = talloc_zero(mem_ctx, struct SPropValue);
 
220
        lpProps = NULL;
222
221
        retval = GetProps(obj_message, MAPI_UNICODE, SPropTagArray, &lpProps, &count);
223
222
        MAPIFreeBuffer(SPropTagArray);
224
223
        MAPI_RETVAL_IF(retval, retval, NULL);
283
282
        printf("Body:\n");
284
283
        fflush(0);
285
284
        if (body.length) {
286
 
                len = write(1, body.data, body.length);
287
 
                len = write(1, "\n", 1);
 
285
                write(1, body.data, body.length);
 
286
                write(1, "\n", 1);
288
287
                fflush(0);
289
288
                talloc_free(body.data);
290
289
        }