open Exchange Folder Message Url Directly Using Webrequest

i succeeded in get exchange inbox mail unread Messages and display them into gridview control on my page but when open link for each message inside gridview i redirect to login page

the link i need to open directly is


where msibrahim is exchange folder name and encoded url is the url of the message

i can pass login page using this function

Private Function GetOWAAuthCookies(ByVal server As String, ByVal credentials As NetworkCredential) As CookieCollection
        System.Net.ServicePointManager.CertificatePolicy = New AcceptAllCertificatePolicy()
        Dim authURI As String = String.Format(“{0}/exchweb/bin/auth/owaauth.dll”, server, credentials.UserName)
        Dim bytes As Byte() = Encoding.UTF8.GetBytes(String.Format(“destination={0}/exchange/” & “{1}&username={2}{1}&password={3}”, server, credentials.UserName, credentials.Domain, credentials.Password))
        Dim request As HttpWebRequest = TryCast(WebRequest.Create(authURI), HttpWebRequest)
        request.Method = “POST”
        request.ContentType = “application/x-www-form-urlencode”
        request.CookieContainer = New CookieContainer()
        request.ContentLength = bytes.Length
        request.AllowAutoRedirect = False
        Using requestStream As Stream = request.GetRequestStream()
            requestStream.Write(bytes, 0, bytes.Length)
        End Using

        Using response As HttpWebResponse = TryCast(request.GetResponse(), HttpWebResponse)
            Dim _oCookieCollection As CookieCollection = response.Cookies
            Return _oCookieCollection

        End Using
    End Function

how i can using returned cookie to open direct link message

until now i redirect to folder(mailbox folder) successfully .

is there is way to navigate to direct link message because this is security issue in exchange 2003 owa login dll that url query string is ignored and go directly to main page of mailbox folder

any help?

Do you have access right for that folder?

yes i have access for the folder  and i alreay when try to open  message link  i redirect  to main inbox url  which is https://myexchangeserver/msibrahimi need to know how i can access to message  url directly passing main folderUr