{"id":676,"date":"2009-11-09T22:42:31","date_gmt":"2009-11-09T20:42:31","guid":{"rendered":"https:\/\/www.peppercrew.nl\/?p=676"},"modified":"2011-05-18T20:48:58","modified_gmt":"2011-05-18T19:48:58","slug":"configure-instant-mail-once-and-keep-the-name","status":"publish","type":"post","link":"https:\/\/ingmarverheij.com\/en\/configure-instant-mail-once-and-keep-the-name\/","title":{"rendered":"Configure &#8220;Instant Mail&#8221; once (and keep the name!)"},"content":{"rendered":"<p>Instant Mail is a feature of RES PowerFuse to configure a mail profile based on a template. This feature is more than welcome after the work-around Microsoft gave us with the PRF files. Instant Mail has been around since the early versions of PowerFuse and was known as Instant MAPI (because a mail profile is actually a MAPI profile) but with the release of PowerFuse 2010 they will rename it to &#8216;Mail templates&#8217;.<\/p>\n<p><strong>Renaming happens everywhere<\/strong><br \/>\nAs you might have noticed renaming happens everywhere. Citrix, for instance, is known for it&#8217;s many different product names which change sooner then the season. They even made a <a href=\"https:\/\/community.citrix.com\/display\/cdn\/Citrix+Definitions\">special site<\/a> about the different names, acronyms and terminology! But that&#8217;s a bit off-topic.<\/p>\n<p><strong>Once upon a time there was an Instant Mail profile<\/strong><br \/>\nRecently I ran into a situation where a Instant Mail profile was configured with the additional option &#8216;Once&#8217;. This option is set so that the profile is set once (duh!) and that changes afterwards are saved. These changes might include opening additional mailboxes or setting a signature.<br \/>\nThis all works fine and I have been using it in many deployments.<br \/>\n<!--more--><br \/>\n<strong>Renaming the profile<\/strong><br \/>\nHowever, somethings strange happend when a customer changes the name of the Instant Mail profile. After the profile has renamed all users lost there settings in Outlook.<br \/>\nThe expectation of both the client as RES was that the GUID was changed (I guess RES expected the user create a new profile&#8230;). This would mess up the system of the &#8216;once&#8217; feature because they rely on a file with the GUID in the filename.<\/p>\n<p>After some research this wasn&#8217;t the case. After renaming the Mail Profile the GUID remained the same, as expected, and the &#8216;.once&#8217; file was still valid. However, after launching Microsoft Outlook, with the Instant Mail profile attached, a new mail profile was created and the old one remains in the profile.<\/p>\n<p>In the registry this would look like this:<br \/>\n<code>Key : HKEY_CURRENT_USERSoftwareMicrosoftWindows NTCurrentVersionWindows Messaging SubsystemProfilesDefault User Profile<br \/>\nType : REG_SZ<br \/>\nValue : \"New Name\"<\/code><\/p>\n<p><code>Key : HKEY_CURRENT_USERSoftwareMicrosoftWindows NTCurrentVersionWindows Messaging SubsystemProfilesOld Name*<br \/>\nType : Key<br \/>\nValue : *<\/p>\n<p>Key : HKEY_CURRENT_USERSoftwareMicrosoftWindows NTCurrentVersionWindows Messaging SubsystemProfilesNew Name<br \/>\nType : Key<br \/>\nValue : *<\/p>\n<p><\/code><br \/>\nSo what PowerFuse does in the background, is first checking whether the mail profile actually exists and then checking if the &#8216;.once&#8217; file is present. Altough this is a valid choice (it would prevent an inconsistent behaviour after deleting a \/ or corrupt profile), it creates a new and unexpected behaviour.<\/p>\n<p>The solution to this challenge, if you really want to rename an Instant Mail profile, is to create a custom script that renames the correct registry values (The subkey in the Windows Messaging Subsystem &#8211; profile) before Instant Mail is launched.<br \/>\nThis can be achieved by creating a logon script, which is run for each user, of by creating a script which is run once for all users.<\/p>\n<p><strong>Advice<\/strong><br \/>\nMy advice would be to keep the name (does a user see the name of a MAPI profile?) . So during the design fase try to create a good name which doesn&#8217;t change after the company renames, merges or whatever. And if you really have to change the name, be carefull and think about the consequences (and this article).<\/p>\n<p>Ingmar Verheij<\/p>","protected":false},"excerpt":{"rendered":"<p>Instant Mail is a feature of RES PowerFuse to configure a mail profile based on a template. This feature is more than welcome after the work-around Microsoft gave us with the PRF files. Instant Mail has been around since the early versions of PowerFuse and was known as Instant MAPI (because a mail profile is [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-container-style":"default","site-container-layout":"default","site-sidebar-layout":"default","disable-article-header":"default","disable-site-header":"default","disable-site-footer":"default","disable-content-area-spacing":"default","footnotes":""},"categories":[291],"tags":[667,110,111,112,113,114,38,115,116,39],"class_list":["post-676","post","type-post","status-publish","format-standard","hentry","category-workpace-manager","tag-citrix","tag-instant-mail","tag-instant-mapi","tag-mail-template","tag-messaging-subsystem","tag-outlook-profile","tag-powerfuse","tag-profile","tag-rename","tag-res"],"_links":{"self":[{"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/posts\/676","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/comments?post=676"}],"version-history":[{"count":2,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/posts\/676\/revisions"}],"predecessor-version":[{"id":2316,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/posts\/676\/revisions\/2316"}],"wp:attachment":[{"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/media?parent=676"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/categories?post=676"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/tags?post=676"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}