473,465 Members | 1,373 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Query Mailbox in C# (.NET 2.0)

Hi all

I need to search (Subject) eMails in a specific Mailbox.
After I have found a mail I need to be able to
detach the attachements ....
What is the best practice to do this?

It has to work without Outlook being installed.

Thanks for any comment.

Best regards
Frank Uray
May 12 '06 #1
3 1745
Try this:
http://www.codeproject.com/csharp/despop3client.asp
"Frank Uray" <Fr*******@discussions.microsoft.com> wrote in message
news:24**********************************@microsof t.com...
Hi all

I need to search (Subject) eMails in a specific Mailbox.
After I have found a mail I need to be able to
detach the attachements ....
What is the best practice to do this?

It has to work without Outlook being installed.

Thanks for any comment.

Best regards
Frank Uray

May 12 '06 #2
Hi

Thanks for this good tip !

There is just one more little question:
Did you ever use this?
Do you know how I can find out if the mail message
is unread or not??

Would be happy for a answer.

Best regards
Frank Uray
"Stuart Irving" wrote:
Try this:
http://www.codeproject.com/csharp/despop3client.asp
"Frank Uray" <Fr*******@discussions.microsoft.com> wrote in message
news:24**********************************@microsof t.com...
Hi all

I need to search (Subject) eMails in a specific Mailbox.
After I have found a mail I need to be able to
detach the attachements ....
What is the best practice to do this?

It has to work without Outlook being installed.

Thanks for any comment.

Best regards
Frank Uray


May 12 '06 #3
I used it to poll and clean a mailbox dedicated to specific notification
emails. The code cycles through the messages processing those it recognises
and deleting those it doesn't (spam)

I was (maybe mistakenly) under the impression that the read/unread property
wasn't a part of the Pop3 protocol, if it is I'll be a charred crisp in a
few minutes.

The Pop3 classes I suggested don't allow much apart from message counting,
message content and the ability to delete mails - so it assumes that a
message found in the Inbox is unread. You could read messages and make
copies of any interesting ones (e.g. in a database) then make sure that you
delete the messages at the end of the run - otherwise messages would be
processed over and over.

N.B. Deletes are transactionally processed and committed by the
..CloseConnection() method

"Frank Uray" <Fr*******@discussions.microsoft.com> wrote in message
news:1C**********************************@microsof t.com...
Hi

Thanks for this good tip !

There is just one more little question:
Did you ever use this?
Do you know how I can find out if the mail message
is unread or not??

Would be happy for a answer.

Best regards
Frank Uray
"Stuart Irving" wrote:
Try this:
http://www.codeproject.com/csharp/despop3client.asp
"Frank Uray" <Fr*******@discussions.microsoft.com> wrote in message
news:24**********************************@microsof t.com...
> Hi all
>
> I need to search (Subject) eMails in a specific Mailbox.
> After I have found a mail I need to be able to
> detach the attachements ....
> What is the best practice to do this?
>
> It has to work without Outlook being installed.
>
> Thanks for any comment.
>
> Best regards
> Frank Uray


May 15 '06 #4

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

Similar topics

4
by: Chuck Amadi | last post by:
Has anyone got a simple python script that will parse a linux mbox and create a large file to view . Cheers Chu
6
by: chuck amadi | last post by:
Hi , Im trying to parse a specific users mailbox (testwwws) and output the body of the messages to a file ,that file will then be loaded into a PostGresql DB at some point . I have read the...
0
by: David Stockwell | last post by:
Hi, After looking at http://docs.python.org/lib/module-mailbox.html I am a bit confused. The bottom of the page refers to some shortcut usage for getting a mail box import email import...
1
by: anshul | last post by:
Can somebody tell me about state management in asp.net using Query Strings. I am just unable to understand this. Anshul
5
by: Michael | last post by:
Hello, I've created an ASP web page where users in our organization can create Active Directory computer accounts. The web page is running on a Server 2003 SP1 IIS 6 installation. The...
0
by: arjen1984 | last post by:
I want to create a mailbox-enabled mailbox. First i have used the toturial from microsoft: http://support.microsoft.com/kb/313114 Then my homeMDB string was incorrect. I saw an article , link:...
0
by: jesse.k.rosenthal | last post by:
Dear all, I'm trying to figure out if mailbox will let me get the flags of a Maildir message without running get_message on it, and reading the whole message. It seems like it should work by...
2
by: tinnews | last post by:
I am trying to write a utility to remove empty maildir mailboxes. It sounds like this should be very simple but it's proving really difficult. I'm doing this on a Fedora 7 system with python...
10
by: Mike Miller | last post by:
Hi, Am wanting to send email with php and need to access the global outlook address book. Are there any examples/tutorials on how to do this? M
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.