views:

321

answers:

3

I need to get a zip file from an email attachment, unzip it and copy it somewhere.

What would be the way I should go about it?

I'm currently googling around things like 'Exchange API' and 'processing email attachments' and kind of hoping this kind of thing has been done before.

The environment will be Windows and Exchange 2003, and any coding will preferably be in C#.

A: 

I had to do this some time ago, and the best way is to use WEBDAV. Every mail item can be referenced like a URL.

If you check out this blog post on WEBDAV, it should show you the way.

Tim Almond
A: 

Assuming you want to do this in .NET you will either have to write or purchase a POP3 or IMAP4 class library to communicate with the Exchange server.

Here is one example of a POP3 client from CodeProject: http://www.codeproject.com/KB/IP/despop3client.aspx

uzbones
A: 

I did this in the end using Redemption I had a couple of problems, hence the linked question but got there in the end.

You do need to have the Outlook client installed, and you need full mailbox rights (not just read) on whatever mailbox you are trying to access.

This question, Read MS Exchange email in C# asked a couple of weeks after mine got some good answers as well.

Paul Rowland