NewMailEx not returning a string of all entry IDs

  • Thread starter Yuhua Li via OfficeKB.com
  • Start date
Y

Yuhua Li via OfficeKB.com

Hi,

According to the NewMailEx description, this event:

Occurs when one or more new items are received in the Inbox. This event
passes a list of entry IDs of all the items received in the Inbox since the
last time the event was fired. The entry IDs are comma-delimited. The
maximum number of entry IDs in the string are limited only by the available
memory on the computer.

Right now, even if i receive 2 New Emails, the string i receive only
contains one entry ID. Can someone shed light on this issue?

Excerpt from my code:

Private Sub m_olOutlook_NewMailEx(ByVal EntryIDCollection As String)
Handles m_olOutlook.NewMailEx


....

intInitial = 1
intLength = Len(EntryIDCollection)
MsgBox("Collection is :" + EntryIDCollection)
intFinal = InStr(intInitial, EntryIDCollection, ",")

....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top