Sign in
Dan's WebDAV 101
This blog covers Messaging API development for Exchange and Outlook. My name is Daniel Bagley, I'm on the Messaging Developer Team.
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
About
RSS for posts
Atom
RSS for comments
OK
Search
Tags
2007
attachments
C#
CDO
CDO 1.21
CDOEX
CDOSYS
DevMsgTeam
EWS
example
Exchange
exchange web services
HOWTO
item
mapi
meeting
message
mime
Outlook
OWA
sample
VB
vbscript
WebDAV
webdav101blog
Archive
Archives
October 2012
(1)
August 2012
(1)
July 2012
(1)
June 2012
(1)
February 2012
(3)
January 2012
(1)
December 2011
(1)
September 2011
(9)
June 2011
(1)
February 2011
(1)
January 2011
(2)
December 2010
(2)
June 2010
(2)
January 2010
(1)
December 2009
(3)
November 2009
(1)
October 2009
(1)
August 2009
(2)
June 2009
(1)
April 2009
(2)
February 2009
(2)
January 2009
(6)
December 2008
(3)
October 2008
(3)
September 2008
(14)
August 2008
(7)
July 2008
(9)
June 2008
(3)
May 2008
(8)
April 2008
(4)
March 2008
(29)
February 2008
(9)
January 2008
(5)
November 2007
(11)
May 2007
(7)
April 2007
(2)
July 2006
(1)
June 2006
(1)
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Dan's WebDAV 101
Howto: Calling Exchange Powershell from an impersonated thread.
Posted
over 5 years ago
by
Webdav101
17
Comments
There are not many examples on doing doing impersonation for Exchange Powershell and non of the ones I see currently cover a few of the important gotccha’s. So, I put this together and wish to share. Impersonation and Exchange PowerShell: ...
Dan's WebDAV 101
System.Net.Mail with SSL to authenticate against port 465
Posted
over 5 years ago
by
Webdav101
13
Comments
Sending mail using System.Net.Mail with SSL will fail: System.Net. NetworkCredential aCred = new System.Net. NetworkCredential ( "myacct" , "mypassword" ); SmtpClient smtp = new SmtpClient ( "smtp.mail.myserver.com" , 465); smtp.EnableSsl...
Dan's WebDAV 101
Getting a list of mailboxes with WebDAV
Posted
over 5 years ago
by
Webdav101
11
Comments
OK, WebDAV does not have the ability itself to get a list of mailboxes. However you can use other APIs and even use an OWA call to get a list of mailboxes. Reading the GAL: WebDAV itself cannot do this. You could use the OWA GALFIND command...
Dan's WebDAV 101
EWS - Csharp - List unread inbox messages using a restriction
Posted
over 6 years ago
by
Webdav101
10
Comments
// C# sample using Exchange Web Service Proxy classes to list unread messages in an inbox using a restriction. private void FindInFolder() { // TODO: Put this code into a winform and call from a button: // TODO: create 3 text boxes called txtRequest...
Dan's WebDAV 101
How to add a holiday to a calendar using VB and CDO 1.21.
Posted
over 6 years ago
by
Webdav101
9
Comments
' How to add a holiday to a calendar using VB and CDO 1.21. ' ' This example code shows how to add a holiday to a calendar using VB and CDO 1.21. ' Set a reference to CDO 1.21 and do the TODO sections in the code. ' Holidays are All Day Appointments with...
Dan's WebDAV 101
HOWTO: Read unmounted Exchange EDB files.
Posted
over 5 years ago
by
Webdav101
8
Comments
I was recently asked this question similar to this: How can we search on unmounted EDB files? Are there any API's that I can use to access the mails in unmounted EDB? There are two answers: “No” and “It’s a bad idea”. Further:...
Dan's WebDAV 101
Sample: Howto display a list of calendar items in ListView using EWS
Posted
over 4 years ago
by
Webdav101
7
Comments
Here is a helpful sample of using EWS to get a list of calendar items and displaying them in a ListView. You should be able to use this with he sample I published prior on creating a CalendarView: Sample: Using Calendar Views with EWS. ...
Dan's WebDAV 101
How WebDAV - Use Basic Authentication with WebDAV even when FBA is enabled.
Posted
over 5 years ago
by
Webdav101
6
Comments
Some customers (developers) wish to use Basic Authentication when Forms Based Authentication (FBA) is enabled for Outlook Web Access (OWA). If OWA's FBA is enabled, all WebDAV access needs to be FBA authenticated - which means significant changes need...
Dan's WebDAV 101
Building VCALENDAR content without an Microsoft API is not supported by MS.
Posted
over 5 years ago
by
Webdav101
5
Comments
While Microsoft products follow many RFC guidelines for VCALENDAR/iCAL, it does not mean that they support development of VCALENDAR/iCAL directly. Microsoft has APIs which can build and read such content. Working with those APIs is supported; however...
Dan's WebDAV 101
HOWTO: Send Email With Attachment Using VB and WebDAV
Posted
over 5 years ago
by
Webdav101
5
Comments
To send an email with WebDAV, you will you will need to create/recreate the item with a WEBDAV PUT using the MIME of the message. It gets tricky when working with attachments. To get around the complexity of sending an email with an attachment, you may...
Dan's WebDAV 101
Howto Add an Attachment with Webdav
Posted
over 5 years ago
by
Webdav101
5
Comments
There is no mechanism to add an attachment in WebDAV. You will need to create/recreate the item using a WebDAV PUT. The text you would be putting would be the mime of the item, which also contains the attachment. It’s useful here to use CDOSYS to create...
Dan's WebDAV 101
My .EDB file grows when I search.
Posted
over 5 years ago
by
Webdav101
5
Comments
When doing a WebDAV or any other search, you will likely see the .EDB file expands. When performing a search against a mailbox using WebDAV or any other API, you may see the .EDB file grow in size. Don't panic, this is normal. When a search is performed...
Dan's WebDAV 101
Sample: Using Calendar Views with EWS.
Posted
over 4 years ago
by
Webdav101
4
Comments
When working with Exchange Web Services (EWS) to do calendaring operations, you will likely run into the need to define calendar views. A calendar view is a restriction/filer on the timespan of appointments and meetings you want to see in the calendar...
Dan's WebDAV 101
GetUserAvailability errors with non-DST timezones using the Exchange Managed API 1.0.
Posted
over 3 years ago
by
Webdav101
4
Comments
If you see "The Month parameter must be in the range 1 through 12." thrown using the 1.0 version of the Exchange Managed API when dealing with non-DST timezones, then you should look at upgrading to the 1.1 version of the Exchange Managed API - the issue...
Dan's WebDAV 101
Howto: VBScript - Read a file
Posted
over 5 years ago
by
Webdav101
4
Comments
'----------------------------------------------------------------------------------- ' ReadFileText - Used to read a file in a folder. ' Parameters: ' sFile - The file to read ' ' Returns: ' A string containing the content of the file. '-------------...
Dan's WebDAV 101
HOWTO: VB/CDO 1.21 - Delete inbox message attachments over certain size
Posted
over 6 years ago
by
Webdav101
4
Comments
Here is an example: 'How to read the Inbox messages and delete attachments over a given size using VB and CDO 1.21 ' This example deletes all jpg file attachments over a certain size in an inbox. Const CONST_MAX_JPG_ATTACHMENT = 3000 ' TODO: Change...
Dan's WebDAV 101
Using ISAPI Extensions to change-out OWA Credential is not supported
Posted
over 6 years ago
by
Webdav101
4
Comments
Single sign-on applications usually use an ISAPI Extension on Exchange servers in order to swap-out credentials being passed to OWA. This type of manipulation is not supported by Microsoft. In fact any thing which augments the behavior in this way is...
Dan's WebDAV 101
Howto: Get the MIME of an item from a mailbox.
Posted
over 5 years ago
by
Webdav101
3
Comments
This VBSript sample uses WebDAV to read the mime of a message item and write it to disk. dim sHREF dim sUserName dim sPassword dim sResponse dim HttpWebRequest dim sHREF dim sUserName dim sPassword dim sResponse dim HttpWebRequest sHREF = " http...
Dan's WebDAV 101
HOWTO: Write a file using VBScript
Posted
over 5 years ago
by
Webdav101
3
Comments
'------------------------------------------------------------------------------- ' WriteFileText - Used to write an item to a file in a folder. ' Parameters: ' sFile - The file to read ' ' Returns: ' A string containing the content of the file. '----...
Dan's WebDAV 101
Howto: WebDAV X-MS-ENUMATTS using VBScript to enumerate attachments
Posted
over 5 years ago
by
Webdav101
3
Comments
' This example shows how to enumerate attachments on a message. X-MS-ENUMATTS will ' return phantom urls to attachments on the message. These URLs can be used with GET ' and DELETE (starting with Exchange 2003 SP1). ' For listing and reading an attachment...
Dan's WebDAV 101
Handling results of calling Powershell - Multivalued and string arrays.
Posted
over 5 years ago
by
Webdav101
3
Comments
When calling PowerShell from managed code, you need to be aware of what is being returned and to not process properties returned always as strings. When you get information you were not expecting or no info returned from the call, you should look at TypeNameOfValue...
Dan's WebDAV 101
Whats not supported with WebDAV?
Posted
over 5 years ago
by
Webdav101
3
Comments
Ahhh thats a big one... What is supported: • Non-recurring appointments • Contacts in Microsoft Outlook that you create or modify • Folders that you create in Outlook and in Exchange 2000 Server or Exchange Server 2003 • E-mail messages that you create...
Dan's WebDAV 101
New to Exchange ActiveSync Development?
Posted
over 2 years ago
by
Webdav101
3
Comments
One area I do developer support for is EAS development with those who have an EAS client developmnet license and have a specific support agreement in thier Premier contract for EAS developer support - these are needed to get any EAS developer support...
Dan's WebDAV 101
Sample: How to get the number of file attachments with EWS.
Posted
over 4 years ago
by
Webdav101
3
Comments
Since HasAttachments does not really give you the number of file attachments, we you will find that you need to work around it. You can use code like that below to get the real count of file attachments on an item. // --------------------------...
Dan's WebDAV 101
Santa, I want it all - WebDAV and the full-meal-deal - allprops.
Posted
over 5 years ago
by
Webdav101
3
Comments
So, your trying to get "all properties" using WebDAV. Well, hate to break it to you, but there is no way unless you know what every property is and specify it. You will find the same limitation in other messaging APIs - just pick any of them. Now, you...
Page 1 of 7 (160 items)
1
2
3
4
5
»