Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 842319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T05:56:28+00:00 2026-05-15T05:56:28+00:00

I have used an open source code from CodeProject to read email from incoming

  • 0

I have used an open source code from CodeProject to read email from incoming mail server(POP Server). The code can be found at following location: http://www.codeproject.com/KB/IP/Pop3MimeClient.aspx

So far it works fine; I can read emails.

My objective of using this code was to retrieve emails from a POP server and process them.

My problem is:
If I use Gmail’s pop server “pop.gmail.com” and run the appplication, I get only those emails that I have not retrieved since the last time I ran the application. But if I use my client’s POP server every time I run the application I get all the emails in the pop server.

For example:
If I use Gmail POP server: pop.gmail.com
I have three emails in the pop server.
I haven’t run the application. I am running the application for the first time.
Application reads the email; this time I will get all three emails.
I run the application second time; my application will not read any emails this time because I have already read the 3 existing ones. This is fine; this is what I want.

Now I send an email to pop.gmail.com.
I run the application again for the third time; this time I will only get the email that has just arrived, that is the fourth one. This is good behaviour; this is what I want.

But if I use my client’s POP server:
No matter how many times I run the application, it reads all the emails in the mail box.

This will create a problem for me, because I am thinking of building a window service that will read emails from pop server and process them. This service will run continuously. I will process emails in the POP server then sleep for let’s say 1 minute and the process the emails again. If the application downloaded from CodeProject reads all the emails all the time, my clients mailbox can have like thousands for email in this mail box, so this would not be feasible for me.

Are there some settings that are to be made at my client’s POP server that will allow my application to retrieve only those emails that I have not read since last time I ran the service?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T05:56:29+00:00Added an answer on May 15, 2026 at 5:56 am

    Do not use Gmail’s implementation of POP or IMAP as canonical; both of these protocols behave differently with Gmail accounts than with virtually any other server.

    To answer your question, you have two approaches that you can take:

    1. Keep track of the message ID’s of the messages that you’ve seen and ignore them on subsequent connections (this will leave the messages on the server for another client to download).
    2. Issue the DELE command after downloading a message, which will remove it from the server.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 426k
  • Answers 426k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You may checkout protobuf-net or simply serialize it yourself which… May 15, 2026 at 12:39 pm
  • Editorial Team
    Editorial Team added an answer It doesn't have to return a unique value. It just… May 15, 2026 at 12:39 pm
  • Editorial Team
    Editorial Team added an answer Use javax.swing.Timer, not java.util.Timer... or use Trident. May 15, 2026 at 12:39 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.