On Fri, 2008-08-29 at 13:08 -0700, Noah Romer wrote:
> 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.

Hi Noah,

I'll add some code this week-end to exchange2mbox to fetch
PR_TRANSPORT_MESSAGE_HEADERS and store them in the mbox file if the
message has the property.


> 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 think you have probably referring to the data in OpenMessage reply and
the recipients you are looking for get be fetched using
GetRecipientTable (libmapi/IMessage.c). I'll also give it a look this
week-end and see whether it would be worthwhile to update exchange2mbox
to rely on these data rather than GetProps output.

Cheers,
Julien.

-- 
Julien Kerihuel
[EMAIL PROTECTED]
OpenChange Project Manager

GPG Fingerprint: 0B55 783D A781 6329 108A  B609 7EF6 FE11 A35F 1F79

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
devel mailing list
[email protected]
http://mailman.openchange.org/listinfo/devel

Reply via email to