Hello,
I've written a OnMessageSubmission sink that intercepts messages
with certain attributes from being immediately sent. Later on after
some big brother type processing, I'd like to either delete or send
the message.
Question 1: What is the best way of doing this? Delete the message
and re-submit? Defer the message and un-defer it later?
Defer:
Question 2a: How to iterate unsent (or deferred in my case) messages?
I looked into IMailMsgStoreDriver::EnumMessages() and
IMailMsgEnumMessages::Next() but they don't give me back a
IMailMsgProperties interface, through which I'd undefer the message
(IMailMsgProperties::PutDWORD(IMMPID_MP_DEFERRED_DELIVERY_FILETIME,
0)).
Question 2b: Will this send the message immediately or will I have to
restart the SMTP server?
Delete:
Question 2a: How to resubmit? If I delete the message, how do I later
on create/get a IMailMsgProperties to pass to
ISMTPServer::AllocMessage() and ISMTPServer::SubmitMessage()?
Question 2b: Will the message-id change when I resubmit?
Thanks,
dowd
Archived from group: microsoft>public>exchange2000>transport