473,471 Members | 1,860 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

webDAV or MAPI or something else?

Hi All,

I need to build a console app that can connect to a mailbox on a
Microsoft Exchange 2000 Server located on our intranet to do the
following:

- go through all emails in the inbox
- test these emails for whether or not they have attachments that meet
a specific filename pattern
- save any attachments that meet the pattern to a local drive
- permanently delete the email with said attachments, once the
attachments are saved

I'd like to know what would be the best (perhaps better expressed as
the easiest) way to do this?

Any help will be very appreciated!

Many thanks,

pt

Nov 2 '07 #1
2 1346
Well, you could use WebDAV, but my guess is that using MAPI would be
easier. I know that MAPI will give you what you want, but I'm not familiar
enough with WebDAV to make the same claim about it.

Also, if I had to guess, I would say that you probably have more
functions available to you through MAPI than you do WebDAV, which might
facilitate what you are trying to do.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"planetthoughtful" <pl**************@gmail.comwrote in message
news:11**********************@v29g2000prd.googlegr oups.com...
Hi All,

I need to build a console app that can connect to a mailbox on a
Microsoft Exchange 2000 Server located on our intranet to do the
following:

- go through all emails in the inbox
- test these emails for whether or not they have attachments that meet
a specific filename pattern
- save any attachments that meet the pattern to a local drive
- permanently delete the email with said attachments, once the
attachments are saved

I'd like to know what would be the best (perhaps better expressed as
the easiest) way to do this?

Any help will be very appreciated!

Many thanks,

pt
Nov 2 '07 #2
On Nov 2, 12:51 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.comwrote:
Well, you could use WebDAV, but my guess is that using MAPI would be
easier. I know that MAPI will give you what you want, but I'm not familiar
enough with WebDAV to make the same claim about it.

Also, if I had to guess, I would say that you probably have more
functions available to you through MAPI than you do WebDAV, which might
facilitate what you are trying to do.

--
- Nicholas Paldino [.NET/C# MVP]
- m...@spam.guard.caspershouse.com
Hi Nicholas,

Thanks for the advice! You aren't aware of any examples on the web of
achieving this, by any chance? MSDN isn't being very helpful (or, at
least isn't being helpful given the keywords I'm trying to use).

Many thanks again,

pt

Nov 2 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Siegfried Heintze | last post by:
Does the Outlook API supersede MAPI? If I implement a SPAM filter using MAPI to automatically delete messages from the message store, will other clients like Eudora benefit? If I implement a...
4
by: Li Weng | last post by:
Hi, Within WebDAV I can use "X-MS-ENUMATTS" and "attachmentfilename" to get attachment file names. But if the attachment is another email, it doesn't come with "attachmentfilename". My...
7
by: Ottar | last post by:
I've made a program sorting incomming mail in public folder. The function runs every minute by using the form.timer event. In Access XP it runs for weeks, no problem. Access 2003 runs the same...
0
by: George Durzi | last post by:
If I use this WebDAV request to extract one property from Contact, it works ok. <?xml version="1.0"?> <a:propfind xmlns:a="DAV:" xmlns:b="urn:schemas:contacts:"...
1
by: Søren Reinke | last post by:
Hi there I am trying to talk to a CMS system using webdav (it is webdav enablet) I have been googling for som examples on how to talk to a webdav server from ..net but found nothing usefull. ...
1
by: Søren Reinke | last post by:
Hi there I am trying to talk to a CMS system using webdav (it is webdav enablet) I have been googling for som examples on how to talk to a webdav server from ..net but found nothing usefull. ...
0
by: Claus Lysholm | last post by:
This simple function "almost" get's Outlook EntryID value for at mail item: --- Octenttohex(rs.Fields("http://schemas.microsoft.com/mapi/proptag/0x0FFF0102") Function Octenttohex(OctenArry As...
7
by: Wiebe Tijsma | last post by:
Hi, I'm using C# + webDAV to create a draft message to be sent in a user's Drafts folder. I can create the message successfully, however when I open the message in outlook, it doesn't show...
0
by: ArunkumarSundaravelu | last post by:
Hi How to Reply a Message in webdav method, We are using Normal send method with attachment in webdav if their anything newly added or any property to set when replying a mail. If we send...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.