"amit dey" <vcdev...@hotmail.com> wrote in message news:<OdZiOfWkBHA.1860@tkmsftngp05>...
The NewMail event doesn't pass the actual item that was received.
Some alternatives to consider:
1. Register for the AddItem event against the Inbox folder.
This event does pass the associated item. You can then retrieve a
string representation of the PR_ENTRYID through the item.EntryID
property. PR_STORE_ENTRYID is available via item.Parent.StoreID.
2. Use the Redemption library.
See: http://dimastr.com/redemption. As well as overcoming limitations
imposed by the Outlook security patch, it includes a NewMail event
that also passes the associated item, and provides access to Extended
MAPI properties not available through the Outlook object model.
- Mike
The only more or less unique field is the entry ID. However it will change
if you move the message to another store. If you can open the message with
given entryid/storeid you are sure to have the message, if you can not open
it, you can not be sure if the message does not any more exists or is moved.
To be sure, it is better to create a field containing a guid, which can be
used later in searching.
Thomas Quester
www.outlookfolders.com
"amit dey" <vcdev...@hotmail.com> wrote in message
news:OdZiOfWkBHA.1860@tkmsftngp05...
The "EntryID" will change if the email moves from folder to folder, even
within the same MsgStore. The best ID I've found for tracking emails is
PR_SEARCH_KEY. It is supposedly "globally unique"...and from what I've seen
it seems to be.
Look in MSDN at:
MSDN Home > MSDN Library > Platform SDK: MAPI > MAPI Properties
--AJ
"Thomas Quester" <tque...@msn.com> wrote in message
news:uHmR#v4kBHA.1760@tkmsftngp03...
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Lead Author, Beginning VB 6 Application Development, Wrox Press
Attachment Options
http://www.slovaktech.com/attachmentoptions.htm
Extended Reminders
http://www.slovaktech.com/extendedreminders.htm
"AJ" <a-no-space-here-weber at home dot com> wrote in message
news:uo8a7F5kBHA.568@tkmsftngp07...
Can you elaborate on how you do that? Where are you storing the data, and
how is it formatted?
--AJ
"Ken Slovak - [MVP - Outlook]" <kens...@mvps.org> wrote in message
news:#B2$Wj5kBHA.396@tkmsftngp02...
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Lead Author, Beginning VB 6 Application Development, Wrox Press
Attachment Options
http://www.slovaktech.com/attachmentoptions.htm
Extended Reminders
http://www.slovaktech.com/extendedreminders.htm
"AJ" <a-no-space-here-weber at home dot com> wrote in message
news:#26Nlz5kBHA.2388@tkmsftngp02...