By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,766 Members | 1,584 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,766 IT Pros & Developers. It's quick & easy.

Query Mailbox in C# (.NET 2.0)

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.