Exchange 2007 Junkemailstate
In Exchange 2003 there is a clever way using OWA to toggle the junk
email state. Does such exist for 2007?
we enable junk email foldering one new mailboxes...
below is the 2003 code...
HankC
strUrl = "https://" & url & "/exchange/" & stralias & "/"
Set XmlHttp = CreateObject("Microsoft.XMLHTTP")
XmlHttp.Open "POST", strURL,false,strUserName,strPassword
XmlHttp.SetRequestHeader "Accept-Language","en-us"
XmlHttp.SetRequestHeader "User-Agent", "Mozilla/4.0 (compatible; MSIE
6.0; Windows NT 5.0; .NET CLR 1.1.4322)"
XmlHttp.SetRequestHeader "Cache-Control","no-cache"
XmlHttp.SetRequestHeader "Content-Type", "application/x-www-form-
urlencoded"
XmlHttp.SetRequestHeader "Accept", "*.*"
XmlHttp.Send "Cmd=Options&Junkemailstate=1" 'error? - check webdav on
the owa boxes
date: Mon, 5 May 2008 07:02:26 -0700 (PDT)
author: HankC