Noah Romer wrote, On 08/27/08 11:12:
Well, I found a MAPI property that should give me the data I need: PR_TRANSPORT_MESSAGE_HEADERS. I found it by trolling through all possible properties for a few messages.

And, I've found the flaw in that plan. PR_TRANSPORT_MESSAGE_HEADERS on contains data if the message came from outside the Exchange server in question. Messages coming from another account on the Exchange server have no data in PR_TRANSPORT_MESSAGE_HEADERS. So, at the very least, the current approach for creating the message headers would have to be used for internal messages. The problem with that is that the current code is only grabbing the Display Name and not the actual email address.

Has anyone found the procedure to get the email address for the sender and recipients out of the MAPI object? I see the data is there when I run exchange2mbox with '--dump-data', but I haven't yet found how to get that with mapi function calls.

I've been hacking on exchange2mbox.c . I'd been hoping to add PR_TRANSPORT_MESSAGE_HEADERS to the set_SPropTagArray() call that's made from exchange2mbox's main(). However, subsequent calls to octool_get_propval() get a NULL return value. I can do the brute force approach, but I'd rather not.

That turned out to be a problem with my dev server (ended up having to replace the motherboard).

--
Noah Romer <[EMAIL PROTECTED]>
GPG Key Fingerprint: 944E C2F8 EBEC BCC7 EEA9  9381 1B21 0098 CC8D 45BA
_______________________________________________
devel mailing list
[email protected]
http://mailman.openchange.org/listinfo/devel

Reply via email to