Link to home
Start Free TrialLog in
Avatar of jlalande

asked on

IMAP email profile settings location

I am trying to programatically determine if the current user has an email account configured.

I have found that the registry key HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
Messaging Subsystem\Profiles contains the list of email profiles *if* the profile has an Exchange email account configured.

However, if the profile only contains an IMAP account, the registry entry HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
Messaging Subsystem doesn't even exist. I can't find anything in the registry related to the details in the IMAP settings.

Where does Windows store this information?
Avatar of Davis McCarn
Davis McCarn
Flag of United States of America image

We need to know what the e-mail client is? (Outlook 2003, 2007, 2010, etc.)
Avatar of jlalande


OK, any and all of those. The product I am working on supports all of those versions. If you know 2013 as well, that would be a bonus.

Thank you!
I tried using procmon from to monitor the registry/files/network requests. I set the filter to operation=outlook.exe, path contains "map" and result=SUCCESS. I then started outlook and saw this prior to access of my imap server. I have multiple profiles and that seems to be the /0000005, 6 etc. The other long id number before the profile index is always the same on my system.


HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Outlook\9375CFF0413111d3B88A00104B2A6676\00000006\IMAP Server

Open in new window

This may provide you information you are looking for to determine if there are any imap profiles.

User generated imageGary Davis
I tried the same steps with procmon and didn't get any event. As mentioned, the key
HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem

Open in new window

doesn't exist after creating an imap email account on a PC where no accounts currently exist.

Perhaps I should provide a bit of context...

The application that I am working on integrates with Outlook, however I am trying to make sure that it doesn't attempt to integrate if there are no existing email profiles. On a typical PC, I could just check
HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\

Open in new window

to see if any exist. But I have encountered a case where a user has only set up an imap account where that key does not exist. The same issue exists with pop3.

Thank you for your detailed examination and information.
Avatar of Gary Davis
Gary Davis
Flag of United States of America image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you Gary!

I found that the key HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Outlook\Profiles is populated with several subkeys when there is an imap profile and no subkeys after deleting the imap profile.

Your tips helped me discover this.