login about faq


Is there any way to download only the new e-mails and not the whole list again and again like Outlook is doing for example?

Thank you, Elad.

asked Mar 12 '13 at 10:34

eladroz's gravatar image


retagged Mar 12 '13 at 16:55

jpbro's gravatar image

jpbro ♦

Thank you very much for your reply but I am using POP3 and not IMAP...

Is this even possible on POP3?

Thank you, Elad.

(Mar 12 '13 at 17:47) eladroz

Not sure what OS you are targeting, but have you been to http://www.example-code.com/? Has a lot of examples.


answered Mar 12 '13 at 12:29

mark's gravatar image


Thank you for trying to help... I followed the example and could not find any information about this.


answered Mar 12 '13 at 13:15

eladroz's gravatar image


"the example"? their is over 40 examples, which ones have you already tried?

(Mar 12 '13 at 16:51) blaze4218

perhaps a combination then.

Determine the Number of Unseen Email Messages


Fetch Single Email by UID or Sequence Number

but, selecting the language that you are using. As you have yet to disclose...

In the first example listed there is a line

Set messageSet = imap.Search("UNSEEN",fetchUids)

which appears to return all "unseen" Uid's. (a little background on the search method) And then you should be able to supply that list to the second example.


answered Mar 12 '13 at 16:47

blaze4218's gravatar image


even better, I think this covers the whole topic :) http://www.example-code.com/vbscript/imap_search.asp

(Mar 12 '13 at 17:14) blaze4218

Sorry for not being clear before but I am using POP3 and those examples are for IMAP.

Is there any way to do this in POP3?

Thank you, Elad.

(Mar 12 '13 at 17:51) eladroz

I'm trying to help friend, but with vague objectives you only get vague conclusions. One more piece of the puzzle gets you one more shot in the dark.

I've only worked with imap so far so the following is because I went to http://www.example-code.com/vbscript/pop3.asp and after reviewing the options I read Download POP3 Email using UIDLs. Now as I understand it- the basic mechanics of imap and pop3 require fairly different approaches. On a pop3 server the server has no way of determining which emails you have already read if you used a different client... But I'll assume you're intent is to only concern yourself with the emails you have already downloaded with your application (we can't tell if another application downloaded them, unless we can talk to that application...) With this in mind our goal becomes simply recording the UILD's that we download with

    Set email = mailman.FetchEmail(uidl)

which we can stick in an arbitrary table in our db, and the next time we call

Set sa = mailman.GetUidls()

we just skip the emails that we know are already read (by this application...)

I hope that was helpful to your process; if not, please provide a more descriptive request that details your expectations/requirements/prog lang/etc...

As I wrap this up, I took one last look and found the following which explains it much better than I could Reading Unread POP3 Email it's not a perfect solution- but pop3 is far from perfect...


answered Mar 12 '13 at 22:48

blaze4218's gravatar image


Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Mar 12 '13 at 10:34

Seen: 3,009 times

Last updated: Mar 12 '13 at 22:48

powered by OSQA