I have a little problem here:
Our application monitors all message stores for new items and adds
some custom properties to certain message types. My problem ist to
check whether or not an item is owned by another user or if I do not have
MAPI_MODIFY rights on the items when in cache mode. Is there any
method I can retrieve this information?
Otherwise writing the props obviously fails and the user gets lots of sync
failures,
since the SaveChanges() method will happily write in the cache without any
errors.
--Thomas
--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Minor, Thomas" <Thomas...@newsgroup.nospam> wrote in message
news:5811A96D-8A03-4BFF...@microsoft.com...
> Have you tried to open the message in the online mode?
No, since we didn't want to interfere with the cache mode advantages.
But in this case we obviously have no other choice.
I guess that it might be enough to check the items with MAPI_NO_CACHE set,
or
do I really have to open the whole store online?
What will happen when the user goes offline/ starts offline on a notebook?
--Thomas
--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Minor, Thomas" <Thomas...@newsgroup.nospam> wrote in message
news:603E04D1-6296-4527...@microsoft.com...
> Opening just the message should be enough.
Ok. I assume, that I just get a connection failure if I try MAPI_NO_CACHE
when in
offline mode, right?
> If it is dlegate mailbox, are you sure it is cached?
The problem occurs with other users calendars which are opened by the user.
Checking PR_ACCESS and PR_ACCESS_LEVEL on the message item or the parrent
folder
always showed me MAPI_MODIFY or write access when in cached mode.
> Are you sure SaveChanges succeeds, but the sync fails?
I'll recheck that.
We just found one source of our problems with that very user in the mean
time.
Doe to a migration from Lotus to Exchange all old appointments have been
added as IPM.Note rather than IPM.Appointment, which made our filtering
fail.
I now workaround this by checking the cointainer class of the parrent folder
ignoring anything below an IPF.Appointment folder.
As far as I know, I cannot filter the notifications I recieve via an
AdviceSink
for events from, let's say, external sources as an included shared calendar?
--Thomas
--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Minor, Thomas" <Thomas...@newsgroup.nospam> wrote in message
news:%23L7bMzH...@TK2MSFTNGP06.phx.gbl...
> Depends on how you set up the advise sink - if you pass an entry id, you
> will only get notifications from that particular folder or message.
Hmm, yes. But as far as I know this does not work recursively.
So I would have to set a sink on all folders below e.g. the Inbox
and track any changes in the folder structure.
That might be quite some folders to manage, depending on the users
inbox.
--Thomas