Hello all!
I need to lock user's message in Inbox private folder.
The good way, i think, is using LOCK WebDAV method - lock message
exclusively with timeout.
But LOCK method works with public folders messages - if i've use LOCK, to
set lock message in User's Inbox, i've response 501 error message (server
error, Not implemented). I did it with Administrator rights. I'd test it on
own Inbox messages also.
Can i use WebDAV LOCK, PROPPATCH methods for pirvate messages?
Thank you,
Alexander.
Henning Krause [MVP] - 14 Apr 2006 14:36 GMT
Hello,
I've never used the LOCK method... but proppatch certainly works with
private folders.
Why do you need to lock an item in private mailbox?
Greetings,
Henning Krause
> Hello all!
>
[quoted text clipped - 9 lines]
> Thank you,
> Alexander.
Topper - 14 Apr 2006 15:07 GMT
I use workflow in public folder. I need to send notification messages to
domain users for current public workflow message (in current Workflow
session)
Common goal is users cann't delete\change recieved messages while they done
some action with message in public store (for example, public store message
is Organisation Order, Report etc. )
And the majior detail is the message has remind properties for displaing
reminder popup window in Outlook for user.
I have 3 ways to do this.
Well,
the first is using wide-event sink for private store for processing
write|delete action with notification messages in users Inbox folders - but
i need to check if user has done action with public store message and allow
them move|delete operations with message.
the 2d is using proppatch method for modifying ACL of notification message -
it is bad like first.
the 3d is using LOCK method for lock created notification messages with
timeouts. If user hasn't done some action for public message, workflow
refreshed timeout property for user's notification message by OnExpire
event. If user has done action - workflow don't refreshed timeout property
and user can move|delete notification message.
In all cases i need to create notification messages in users Inbox folders
(not sending messages ) using workflow script for make changes directly.
Any ideas?
Thanks,
Alexander.
> Hello,
>
[quoted text clipped - 19 lines]
>> Thank you,
>> Alexander.
Topper - 14 Apr 2006 14:42 GMT
The code below:
strURL = "http://myserver/exchange/administrator/Inbox/testMessage.eml"
sOwner = "administrator"
' Build the body of the LOCK request.
strBody = "<?xml version='1.0'?><D:lockinfo xmlns:D='DAV:'>"
' Make it an exclusive write lock.
strBody = strBody & "<D:lockscope><D:exclusive/></D:lockscope>"
strBody = strBody & "<D:locktype><D:write/></D:locktype>"
' Set the owner of the lock.
strBody = strBody & "<D:owner><D:displayname>" & sOwner &
"</D:displayname></D:owner>"
strBody = strBody & "</D:lockinfo>"
' Create the XMLHTTP object.
set req = createobject("Microsoft.XmlHttp")
' Specify the LOCK method, the URL of the resource to lock, that the
request will be sent synchronously,
' the user name, and the password.
req.open "LOCK", strURL, false
' Set the Translate header to False.
req.setrequestheader "Translate", "f"
' Set the Content-Type header to "text/xml".
req.setrequestheader "Content-Type", "text/xml"
' Set a depth of 0.
req.setrequestheader "Depth", "0"
' Set the lock time-out for 100 seconds.
req.setrequestheader "Timeout", "Second-100"
' Send the LOCK request.
req.send strBody