View Single Post
  #6  
Old October 4th 06, 07:24 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default How to make the transport skip a recipient

Did you look at the message with MFCMAPI or OutlookSpy to make sure the
changes were committed? If you used OOM to reopen the message, it didn't
necessarily reopened the messasge .

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Arcady" wrote in message
...
Before writing the actual code I have used OOM to test the method, I did
"or"
on the Type property of the Recipient object, saved the message, closed
it,
opened it again and checked that Type is still 0x80000001.
Isn't this test enough ?
Have you tested the "MAPI_SUBMITTED" thing ?
Btw, can outlook spy be used to test it ? I mean can it be used to change
the mapi property directly (bypassing the OOM)?

Thanks,
Arcady.

"Dmitry Streblechenko" wrote:

You might want to show some of your code. Are you using MAPI alone or mix
it
with OOM?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Arcady" wrote in message
...
Hi Dimitry,
Thank you for your reply.
I've tried to "or" PR_RECIPIENT_TYPE with MAPI_SUBMITTED already and it
did
not worked. I saved the message after I had done the "or" and verified
that
PR_RECIPIENT_TYPE was 0x80000001 after the save and after the message
entered
the Outbox, but the message was delivered to the recipient
nevertheless.
(I worked with Outlook2003 and Exchange 2003).

I also have tried to set PR_RESPONSIBILITY to 1, but apparently, the
spooler
resets it (the message is delivered to the recipient).

Please tell me if you have any suggestions.

Thank you in advance,
Arcady.


"Dmitry Streblechenko" wrote:

"Or" the PR_RECIPIENT_TYPE with MAPI_SUBMITTED (0x80000000), e.g.
MAPI_TO
(0x1) becomes 0x80000001.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Arcady" wrote in message
...
Hi, I'm working on an addin for outlook that sends the messages to
some
of
the recipients by https in the Send event.
The addin is written in Delphi.
I would like the transport to skip the recipients I that have been
already
processed by the client.
Removing the recipients is not good, since I want them to appear in
the
sent
items.
Can I acheive my goal by setting the PR_RESPONSIBILITY property to 1
for
the
processed recipients in the Send event ?

Thanks,
Arcady.








Ads