How to get the path from an outlook.Inspector

Status
Not open for further replies.
B

blackjazz

When I open a outlook message in the windows explorer, my office plug-in will

be started with outlook application. I register my event handler for

Outlook.Application.Inspectors.NewInspector. And try to get the full path of

the message file in the handler function. I want to know where this message

file comes.

But I have no idea about how to get the full path. Does anyone meet the same

problem?
 
K

Ken Slovak - [MVP - Outlook]

Once the item is opened in Outlook there's nothing in the object model that

would tell you where it originally was stored as a file.

"blackjazz" <blackjazz> wrote in message

news:61D09A9A-A30F-45AF-A13C-38F71BBEA348@microsoft.com...
> When I open a outlook message in the windows explorer, my office plug-in
> will
> be started with outlook application. I register my event handler for
> Outlook.Application.Inspectors.NewInspector. And try to get the full path
> of
> the message file in the handler function. I want to know where this
> message
> file comes.
> But I have no idea about how to get the full path. Does anyone meet the
> same
> problem?
 
B

blackjazz

Thanks! So I have to get the full path of a message file through other ways.
wrote:


> Once the item is opened in Outlook there's nothing in the object model that
> would tell you where it originally was stored as a file.

> >

>

> "blackjazz" <blackjazz> wrote in message
> news:61D09A9A-A30F-45AF-A13C-38F71BBEA348@microsoft.com...
> > When I open a outlook message in the windows explorer, my office plug-in
> > will
> > be started with outlook application. I register my event handler for
> > Outlook.Application.Inspectors.NewInspector. And try to get the full path
> > of
> > the message file in the handler function. I want to know where this
> > message
> > file comes.
> > But I have no idea about how to get the full path. Does anyone meet the
> > same
> > problem?


> .
>
 
B

blackjazz

So if I want to locate the message file which is from local disk. How?

Thanks!
wrote:


> Once the item is opened in Outlook there's nothing in the object model that
> would tell you where it originally was stored as a file.

> >

>

> "blackjazz" <blackjazz> wrote in message
> news:61D09A9A-A30F-45AF-A13C-38F71BBEA348@microsoft.com...
> > When I open a outlook message in the windows explorer, my office plug-in
> > will
> > be started with outlook application. I register my event handler for
> > Outlook.Application.Inspectors.NewInspector. And try to get the full path
> > of
> > the message file in the handler function. I want to know where this
> > message
> > file comes.
> > But I have no idea about how to get the full path. Does anyone meet the
> > same
> > problem?


> .
>
 
K

Ken Slovak - [MVP - Outlook]

That depends on what language and development platform you are using. If you

have no idea where the file was stored you will need to recursively search

everywhere in the file system. That sort of code is completely out of scope

for an Outlook group. Try asking in an appropriate language or platform

group and make sure to provide enough information so someone can answer you.

"blackjazz" <blackjazz> wrote in message

news:B9EAD8A2-215B-4F4B-8CCE-7CCC8AD675A8@microsoft.com...
> So if I want to locate the message file which is from local disk. How?
> Thanks!
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
A Outlook VBA - moving mail item to public folder using variable within path Using Outlook 6
D RE: How do you change the default insert file path in outlook? Using Outlook 11
A How to change mail path in outlook Outlook VBA and Custom Forms 7
N error when copying outlook data "can not copy: the path too deep" Using Outlook 6
B BCC issues after changing root folder path for gmail Using Outlook 1
R VBA | Chosing path to save file Outlook VBA and Custom Forms 1
G [Help] Converting array to destination folder path Outlook VBA and Custom Forms 1
Frédéric Save E mail using different path. Outlook VBA and Custom Forms 24
H "Advanced find: column for full folder path? Using Outlook 1
C Force account selection - no reg path nor can create one Using Outlook 9
T Contacting <Server Name and Path> for Information When Adding Attachments Using Outlook 0
Z how to change the path of all my .PST files? Using Outlook 1
K Get folder path where an account stores messages Outlook VBA and Custom Forms 5
A Eseutil File Dump fails in the path to the file is too long... Exchange Server Administration 2
A path of documents can't be found BCM (Business Contact Manager) 1
S Script w/relative path that sends absolute path to a folder to theclipboard? Outlook VBA and Custom Forms 3
N Can't create NEW GROUP and add/remove a member from existing Group in Outlook Using Outlook 1
P Outlook tasks keeps changing (updating) dates that I type Using Outlook 2
M I cant send emails via Outlook in my W10 PC. Using Outlook 3
A Outlook Reminders not populating for certain events Using Outlook 2
O Moving "tasks" to inbox in Outlook 2016 Using Outlook 1
S HTML Code Embedded in String Within Open Outlook Email Preventing Replace(Application.ActiveInspector.CurrentItem.HTMLBody From Working Outlook VBA and Custom Forms 4
e_a_g_l_e_p_i Can emails from Gmail be deleted when they are downloaded to Outlook 2010 Using Outlook 1
cbufacchi Outlook 365 Populate custom Outlook Appoint form Outlook VBA and Custom Forms 2
Z Remove GMAIL IMAP account from Outlook 2016 Using Outlook 2
D Wrong email address in Outlook 2003 "From" tab in new outgoing emails Using Outlook 4
B Outlook 365 Populate Outlook Task UDFs from a UDF text string Outlook VBA and Custom Forms 2
witzker Outlook 2019 Pls. add a Prefix for OUTLOOK 2019 here Using Outlook 1
H Outlook 2019 intermittent search results Using Outlook 0
hstein POP3 latest Outlook Using Outlook 0
V Outlook 2003 and Windows 11 Using Outlook 4
J How to import many msg into different public folders in Outlook Outlook VBA and Custom Forms 7
I Outlook for Mac 2019 using on desktop and laptop IMAP on both need help with folders Using Outlook 1
A Reminder duplication Outlook and Outlook.com Using Outlook.com accounts in Outlook 5
F Moving Outlook to new PC Using Outlook 0
mll persistently customise columns in outlook advanced search Using Outlook 3
Ken Pascoe Outlook Categories Quick List Using Outlook 0
M All fonts in Outlook emails display with exaggerated character spacing Using Outlook 3
talla Can't open Outlook Item. Using Outlook 0
C Can't Locate an Unread Message in my Outlook view pane Using Outlook 0
C Outlook 2007 Removing then adding account restores junk email processing Using Outlook 0
P Importing other e-mail accounts into Outlook Using Outlook 1
J Read Outlook Form fields Outlook VBA and Custom Forms 3
B Inconsistent handling of message read/unread status by Outlook Using Outlook 3
R Rogue Outlook Rule ? Using Outlook 2
S vba outlook search string with special characters Outlook VBA and Custom Forms 1
F Wishlist Outlook suddenly began synchronizing deleted items every time I delete a single email. Using Outlook 2
U Outlook 2019 VBA run-time error 424 Outlook VBA and Custom Forms 2
K Outlook 2019 Randomly Disconnecting from Gmail Servers Using Outlook 8
P Outlook calendar and contacts sync problem-outlook disconnects Using Outlook.com accounts in Outlook 2

Similar threads

Top