A new email has no EntryID property. It's null string (or in managed code is
String.IsNullOrEmpty()).
You can tell if an item was replied to or forwarded only by looking at the
PR_LAST_VERB_EXECUTED property, not exposed in the Outlook object model.
EXCHIVERB_REPLYTOSENDER (102) is the value if the item was last replied to.
EXCHIVERB_REPLYTOALL (103) is the value if the ReplyAll action was taken,
EXCHIVERB_FORWARD (104) is the value for a message that was forwarded.
To access that property, a PT_LONG (32 bit long) you have to use Outlook
2007's PropertyAccessor with the DASL property tag of
"
http://schemas.microsoft.com/mapi/proptag/0x10810003" (not an URL), or you
have to use a different API such as CDO 1.21 (no managed code) or Extended
MAPI (C++ or Delphi only), or a COM wrapper for MAPI such as Redemption
(
www.dimastr.com/redemption). For those API's you can use the property tag
0x10810003 (&H10810003 for Basic type languages).
That only applies to the last action taken on the item, and isn't there in
the reply or forward item that's opened as a result of the action.
For those items there is no good way to tell, other than using the Subject
line. That can be altered by the user, and it's language dependent where RE
is used in English but AW is used in German for example.