Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Capturing Time Using MsMapi
Message
 
To
01/08/2001 16:06:50
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00537334
Message ID:
00538723
Views:
9
I don't know what you're getting at here. The ReadMail method will return the number of items found within the filter specification. You then negotiate the messages using GetFirstMessage(), GetNextMessage(). It should allow you to access all of the messages, not just the first one.

Maybe you need to make a note of the time the last ReadMail was issued and use that as part of the filter the next time you issue Readmail.

Let me know if I read your message incorrectly and I will see what I can do to help (maybe you could intercept the mail using the NewMail event - not available via MAPI).

>Hey Nigel,
>
>Is there any way I can prevent the readmail method from reading all new mail. We are planning on users from different locations to email us their data. Now using your msmapi class, if site A and Site B send their data around the same time, even with a filter on the subject, it will only read and extract teh first one that fall in subject filter. the system will never see any unopened items after the first pass cause it reads and continues to read all new mssgs. Any ideas around this? I'm having this on a scheduled task. That why I neeed for it to leave the remaining unopened emails outside of the subject filter alone....what do you think?
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Reply
Map
View

Click here to load this message in the networking platform