DAgent Plugin PreDelivery communication PHP MAPI

Hi all,

Is it possible to grep a message in PHP MAPI with the known PR_ENTRYID that I request via python kopano-dagent plugin PreDelivery method?

Normally, I open a message in PHP MAPI with mapi_msgstore_openentry(), but when I request this (via HTTP request) in PreDelivery phase, the mailitem is not found yet. This makes sense of course.

Is there a way in PHP MAPI to get a message by entryid that is not in the definitive store yet?

Thanks!

I have found a workaround that works for me. I do the request in PostDelivery and delete the mailitem in PHP MAPI.