Is there a way to identify which folder an Outlook e-mail message is in,
once the
message is identified in a search? (I can find the message, but I would
like to know
the folder it's in.)
I don't think it's easy to do programmatically because although the XML
includes a URL
to get the cached version of an e-mail it does not work to add format=xml to
that URL
to get an XML structured version of the cache entry.
If you are a human then click on the blue link to view the cache, click on
"View in Outlook,"
and then from Outlook do ALT-ENTER (or select File / Properties). The
containing folder name
is listed as the "Location." There does not seem to be a way though to find
out the
full path to an e-mail. For example a location of "Deleted Items" could be
in one of
half a dozen PST files for me.
Going back to programmatic (and I assume that's what you want if you asked
on GDS developers)
you could parse the HTML result for the cached message to look for "View In
Outlook" and
then extract the <a> link. There's a field in there called ID which may be
usable with
Outlook.
Marc