A
Alex Fostiy
Hi,
I would like to find out which messages are marked as deleted in IMAP
mailbox programmatically using MAPI or Outlook Object Model and would be
grateful for any help.
My ultimate goal is to use MAPI to construct a restriction that only returns
messages that are not marked as deleted from IMAP mail folder in addition to
other criteria. I have already implemented the restriction which works well
using FindRow API on Exchange, POP3 and Hotmail message stores.
The only issue is with IMAP where I also get back messages that are already
marked deleted but not yet purged from the IMAP mail server.
Searching various MAPI properties using OutlookSpy shows that no properties
are changed when a message is marked as deleted, except last message
modification time (PR_LAST_MODIFICATION_TIME) which is not reliable for my
needs because it can mean other changes have made to the message besides the
message deletion.
However, the "deleted" state information clearly persists locally since
after Outlook is closed and started again, the message "deleted" state is
still
there and visible with a cross-through line in Outlook folder view.
I am developing an Outlook add-in in C++ and have access to all MAPI and
Outlook COM API.
Thank you in advance,
Alex
I would like to find out which messages are marked as deleted in IMAP
mailbox programmatically using MAPI or Outlook Object Model and would be
grateful for any help.
My ultimate goal is to use MAPI to construct a restriction that only returns
messages that are not marked as deleted from IMAP mail folder in addition to
other criteria. I have already implemented the restriction which works well
using FindRow API on Exchange, POP3 and Hotmail message stores.
The only issue is with IMAP where I also get back messages that are already
marked deleted but not yet purged from the IMAP mail server.
Searching various MAPI properties using OutlookSpy shows that no properties
are changed when a message is marked as deleted, except last message
modification time (PR_LAST_MODIFICATION_TIME) which is not reliable for my
needs because it can mean other changes have made to the message besides the
message deletion.
However, the "deleted" state information clearly persists locally since
after Outlook is closed and started again, the message "deleted" state is
still
there and visible with a cross-through line in Outlook folder view.
I am developing an Outlook add-in in C++ and have access to all MAPI and
Outlook COM API.
Thank you in advance,
Alex