{"id":314,"date":"2014-07-29T02:44:39","date_gmt":"2014-07-29T02:44:39","guid":{"rendered":"http:\/\/www.itcrumbs.com\/?p=314"},"modified":"2019-02-07T04:39:44","modified_gmt":"2019-02-07T04:39:44","slug":"exchange-2010-mailboxes-inherit-imap-folder-views-and-attributes-if-imported-from-a-pst-dump-of-an-imap-account","status":"publish","type":"post","link":"http:\/\/www.itcrumbs.com\/?p=314","title":{"rendered":"Exchange 2010 mailboxes inherit IMAP folder views and attributes if imported from a PST dump of an IMAP account"},"content":{"rendered":"<h3><a title=\"http:\/\/mellositmusings.com\/2012\/08\/29\/exchange-2010-mailboxes-inherit-imap-folder-views-and-attributes-if-imported-from-a-pst-dump-of-an-imap-account\/\" href=\"http:\/\/mellositmusings.com\/2012\/08\/29\/exchange-2010-mailboxes-inherit-imap-folder-views-and-attributes-if-imported-from-a-pst-dump-of-an-imap-account\/\">http:\/\/mellositmusings.com\/2012\/08\/29\/exchange-2010-mailboxes-inherit-imap-folder-views-and-attributes-if-imported-from-a-pst-dump-of-an-imap-account\/<\/a><\/h3>\n<h3><a href=\"http:\/\/mellositmusings.com\/2012\/08\/29\/exchange-2010-mailboxes-inherit-imap-folder-views-and-attributes-if-imported-from-a-pst-dump-of-an-imap-account\/\">Exchange 2010 mailboxes inherit IMAP folder views and attributes if imported from a PST dump of an IMAP account<\/a><\/h3>\n<p>Posted on August 29th, 2012<\/p>\n<p>I recently had to migrate 9 IMAP accounts from GoDaddy to our Exchange 2010 server. Since GoDaddy does not offer export services and it was only 9 accounts we decided to use a handful of Outlook profiles to connect to the GoDaddy IMAP accounts and pull down a full copy of the mailboxes. The exact process we used is as follows:<\/p>\n<ol>\n<li>Use Outlook to connect to the IMAP accounts in question and pull down a full copy of the mailbox. You may run into issues accessing multiple large IMAP accounts from 1 Outlook profile. In my experience 5-10 accounts per profile should be ok.\n<ol>\n<li>By default Outlook will only pull down the headers of IMAP messages, so you will need to instruct Outlook to do a full sync <\/li>\n<li>This is done under the<em> Send\/Receive Ribbon<\/em> Tab -&gt;<em> Send &amp; Receive<\/em> Section -&gt; <em>Send\/Receive Groups<\/em> -&gt; <em>Define Send\/Receive Groups\u2026<\/em>\n<ol>\n<li><a href=\"http:\/\/mellositmusings.com\/wp-content\/uploads\/2012\/08\/Clipboard01.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"Clipboard01\" alt=\"\" src=\"http:\/\/mellositmusings.com\/wp-content\/uploads\/2012\/08\/Clipboard01-300x254.jpg\" width=\"300\" height=\"254\" \/><\/a> <\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<ol>\n<li>In the <em>Send\/Receive Group<\/em>s window, highlight <em>All Accounts<\/em> and &lt;click&gt; the <em>Edit\u2026<\/em>button\n<ol>\n<li><a href=\"http:\/\/mellositmusings.com\/wp-content\/uploads\/2012\/08\/Clipboard012.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"Clipboard01\" alt=\"\" src=\"http:\/\/mellositmusings.com\/wp-content\/uploads\/2012\/08\/Clipboard012-263x300.jpg\" width=\"263\" height=\"300\" \/><\/a> <\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<ol>\n<li>Under the <em>Accounts <\/em>section make sure to highlight the IMAP account in question, and in the section labeled <em>Account Options<\/em> &lt;select&gt; one folder\u2019s check box. Then &lt;select&gt; the radio button for <em>Download complete item including attachments<\/em>. Finally &lt;left click&gt; on the same folder and you should see an option to select and apply the same item to all folders with in this IMAP account. Repeat for each IMAP account\n<ol>\n<li><a href=\"http:\/\/mellositmusings.com\/wp-content\/uploads\/2012\/08\/Clipboard02.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"Clipboard02\" alt=\"\" src=\"http:\/\/mellositmusings.com\/wp-content\/uploads\/2012\/08\/Clipboard02-300x251.jpg\" width=\"300\" height=\"251\" \/><\/a> <\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<ol>\n<li>Now perform a send\/receive and wait for the all the messages to come down <\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<ol>\n<li>Since Outlook creates a PST file for each synced IMAP account (<em>C:\\Users\\ACCOUNT\\AppData\\Local\\Microsoft\\Outlook<\/em>) they can be used to directly import the mailbox into an Exchange account <\/li>\n<li>On my Exchange server I created 3 empty accounts (the reaming 6 became distribution groups) and used the following PowerShell command to import each PST into the corresponding empty exchange account\n<ol>\n<li>\n<pre>New-MailboxImportRequest \u2013Mailbox USERNAME \u2013FilePath <a href=\"file:\/\/network\/PATH\/OF\/IMAP.PST\">\\\\NETWORK\\PATH\\OF\\IMAP.PST<\/a><\/pre>\n<\/li>\n<\/ol>\n<ol>\n<li>You also create a script to pull them all in at once, here\u2019s an example of one way to do it if the PST file names match the user name\n<ol>\n<li>\n<pre>Dir <a href=\"file:\/\/network\/PATH\/OF\/*.PST%20%7C%20%25\">\\\\NETWORK\\PATH\\OF\\*.PST | %<\/a>{New-MailboxImportRequest \u2013Name ImportOfPst \u2013BatchName ImportPstFiles \u2013Mailbox $_.BaseName \u2013FilePath $_.FullName}<\/pre>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p>In our case these imported mailboxes belonged to a small consulting company that was purchased by my company. The users getting these email boxes already had accounts on our Exchange 2010 server and these imported accounts would be used to continue any business correspondences still associated with the old company.<\/p>\n<p>So we gave the user\u2019s <strong>send as<\/strong> and <strong>full access<\/strong> to their imported accounts and let auto-map do its magic. The issue we ran into was that while they could see the imported mailbox all new emails did not show up even though the unread count was increasing. When we checked via <em>EWS<\/em>, <em>Active Sync<\/em>, and <em>Outlook Web Access<\/em> the new items were visible.<\/p>\n<p>After some poking around we noticed that while the folders and mail items were imported into an Exchange mail box, they retained the folder views associated with an IMAP account. The default view&#160; of an IMAP account is to <em>Hide Messages Marked for Deletion<\/em>, but what it actually does is filter all the messages with the IMAP status of <em>Unmarked<\/em>.<\/p>\n<p><a href=\"http:\/\/mellositmusings.com\/wp-content\/uploads\/2012\/08\/Clipboard07.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"Clipboard07\" alt=\"\" src=\"http:\/\/mellositmusings.com\/wp-content\/uploads\/2012\/08\/Clipboard07-300x92.jpg\" width=\"300\" height=\"92\" \/><\/a><\/p>\n<p>The idea is to hide any IMAP messages marked for deletion that haven\u2019t synced up with the IMAP server. Since Exchange messages do not have this field they would not show up with this filter applied. If the view is changed to <em>IMAP Messages<\/em>, which applies no filter, then all the messages show up. You can even apply this view to all the other mail folders. But a more elegant solution would be to remove the views all together, especially if you have hundreds of mailboxes having the same issue.<\/p>\n<p><a href=\"http:\/\/mellositmusings.com\/wp-content\/uploads\/2012\/08\/Clipboard04.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"Clipboard04\" alt=\"\" src=\"http:\/\/mellositmusings.com\/wp-content\/uploads\/2012\/08\/Clipboard04-300x200.jpg\" width=\"300\" height=\"200\" \/><\/a><\/p>\n<p>There are two ways I found to do this, one is a manual process that can only correct 1 folder at a time. The other is intended to correct mailboxes by the batch, but can also be applied to 1 mailbox<\/p>\n<h4>First method (Manually change each folder in a mailbox)<\/h4>\n<p>Using <a href=\"http:\/\/mfcmapi.codeplex.com\/\">MFCMAPI<\/a> you can change each email folder attribute from an IMAP designation (IPF.Imap) to an Exchange designation (IPF.note). MFCMAPI requires you to have access to the mailbox in question and a mail profile setup to access it (you can create one on the 1st run of the program). So you can either run the application from the user\u2019s profile or a profile with access to the account:<\/p>\n<ol>\n<li>Start the program and login to your mail profile by going to <em>Session<\/em> -&gt; <em>Logon<\/em> and select the profile that has access to the mailbox you need to edit. Once connected highlight that mailbox, &lt;left click&gt; and select <em>Open Store<\/em>from the drop down menu\n<ol>\n<li><a href=\"http:\/\/mellositmusings.com\/wp-content\/uploads\/2012\/08\/Clipboard061.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"Clipboard06\" alt=\"\" src=\"http:\/\/mellositmusings.com\/wp-content\/uploads\/2012\/08\/Clipboard061-300x220.jpg\" width=\"300\" height=\"220\" \/><\/a> <\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<ol>\n<li>Once in the store navigate to the Top of the Information store. Depending on if this is mailbox is the default for the profile or added to it (via the <em>Full Access<\/em>permission) the folder tree is slightly different\n<ol>\n<li><strong>Default for profile<\/strong> : <em>IPM_SUBTREE<\/em>\n<ol>\n<li><a href=\"http:\/\/mellositmusings.com\/wp-content\/uploads\/2012\/08\/Clipboard051.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"Clipboard05\" alt=\"\" src=\"http:\/\/mellositmusings.com\/wp-content\/uploads\/2012\/08\/Clipboard051-300x152.jpg\" width=\"300\" height=\"152\" \/><\/a> <\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<ol>\n<li><strong>Secondary<\/strong> : <em>Root Container<\/em> -&gt; <em>Top of Information Store<\/em>\n<ol>\n<li><a href=\"http:\/\/mellositmusings.com\/wp-content\/uploads\/2012\/08\/Clipboard041.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"Clipboard04\" alt=\"\" src=\"http:\/\/mellositmusings.com\/wp-content\/uploads\/2012\/08\/Clipboard041-300x164.jpg\" width=\"300\" height=\"164\" \/><\/a> <\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<ol>\n<li>Now highlight the mail folder in question and look for the Property named <strong>PR_CONTAINER_CLASS, PR_CONTAINER_CLASS_A, ptagContainerClass<\/strong> and &lt;right click&gt; and select <em>Edit Property\u2026<\/em> from the drop down menu <\/li>\n<\/ol>\n<ol>\n<li>From here you can edit the ANSI entry, which you\u2019ll want to change from IPF.Imap to IPF.Note. Then &lt;click&gt; the <em>OK<\/em>button\n<ol>\n<li><a href=\"http:\/\/mellositmusings.com\/wp-content\/uploads\/2012\/08\/Clipboard033.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"Clipboard03\" alt=\"\" src=\"http:\/\/mellositmusings.com\/wp-content\/uploads\/2012\/08\/Clipboard033-300x232.jpg\" width=\"300\" height=\"232\" \/><\/a> <\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<ol>\n<li>Repeat for all the mail folders in the container and exit the program when you are done. <\/li>\n<\/ol>\n<h4>Second method (\u201cFind and Replace\u201d batch method)<\/h4>\n<p>You\u2019ll need a program from Microsoft called <a href=\"http:\/\/gallery.technet.microsoft.com\/Exchange-2010-SP1-ExFolders-e6bfd405\">EXFolders<\/a>, which you will install and run from the Exchange server (see the readme instructions included in the download). The instructions on using this program have been re-purposed form the following <a href=\"http:\/\/social.technet.microsoft.com\/Forums\/sv-SE\/exchangesvrdevelopment\/thread\/825afa31-cc63-49b6-a909-5fafd7c205c7\">TechNet<\/a> post answer provided by <a href=\"http:\/\/social.technet.microsoft.com\/profile\/kevinrk\/?ws=usercard-mini\">Kevinrk<\/a>:<\/p>\n<ol>\n<li>Run EXFolders directly from the Exchange Bin folder <\/li>\n<\/ol>\n<ol>\n<li>Go to <em>File<\/em> -&gt; <em>Connect<\/em>and fill the following fields:\n<ol>\n<li><strong>Type<\/strong> : <em>Mailboxes<\/em> <\/li>\n<\/ol>\n<ol>\n<li><strong>Connect by<\/strong> : <em>Database<\/em> <\/li>\n<li><strong>Global Catalog Server<\/strong> : Select your GC <\/li>\n<li><strong>Databases<\/strong> : Select the Mailbox Database you want to work on <\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<ol>\n<li>Now select either the entire Mailbox Database or an individual mailbox you want to correct and select <em>Tools<\/em> -&gt; <em>Custom Bulk Operation<\/em>. <\/li>\n<\/ol>\n<ol>\n<li>In the window labeled <em>Custom Bulk Operation<\/em> look for the section labeled <em>Overall Filter<\/em> and enter in the following string to make sure that only the mail folder container class is changed : <\/li>\n<\/ol>\n<ul>\n<ul>\n<li>\n<pre>(&amp;(0x361300iE=IPF.Imap))<\/pre>\n<\/li>\n<\/ul>\n<\/ul>\n<ol>\n<li>Under the section labeled <em>Operations<\/em> &lt;click&gt; the <em>Add<\/em> button and then select <em>Other folder properties<\/em> in the <em>Operation Type<\/em>window\n<ol>\n<li><a href=\"http:\/\/mellositmusings.com\/wp-content\/uploads\/2012\/08\/Clipboard021.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"Clipboard02\" alt=\"\" src=\"http:\/\/mellositmusings.com\/wp-content\/uploads\/2012\/08\/Clipboard021-300x214.jpg\" width=\"300\" height=\"214\" \/><\/a> <\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<ol>\n<li>In the Folder properties operation window set the following options\n<ol>\n<li><strong>Action<\/strong> : <em>Modify<\/em> <\/li>\n<\/ol>\n<ol>\n<li><strong>Property<\/strong> : <em>PR_CONTAINER_CLASS : 0x3613001E<\/em> <\/li>\n<\/ol>\n<ol>\n<li><strong>Value<\/strong> : <em>IPF.Note<\/em> <\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<ol>\n<li>Once those options are set the<em> Add<\/em> button and then the<em> OK<\/em>button\n<ol>\n<li><a href=\"http:\/\/mellositmusings.com\/wp-content\/uploads\/2012\/08\/Clipboard013.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"Clipboard01\" alt=\"\" src=\"http:\/\/mellositmusings.com\/wp-content\/uploads\/2012\/08\/Clipboard013-280x300.jpg\" width=\"280\" height=\"300\" \/><\/a> <\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<ol>\n<li>When you\u2019re back to the <em>Custom Bulk Operation<\/em> window &lt;click&gt; <em>OK<\/em> to run the bulk operation. From here Exfolders will walk through the mailbox container(s) and change each instance of the PR_CONTAINER_CLASS from IPF.Imap to IPF.note <\/li>\n<\/ol>\n<h4>What\u2019s next?<\/h4>\n<p>For either method you should have the user restart Outlook to make sure the changes take place. In some cases the IMAP views persisted and I had to reset the user\u2019s views in Outlook (outlook.exe \/cleanviews).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>http:\/\/mellositmusings.com\/2012\/08\/29\/exchange-2010-mailboxes-inherit-imap-folder-views-and-attributes-if-imported-from-a-pst-dump-of-an-imap-account\/ Exchange 2010 mailboxes inherit IMAP folder views and attributes if imported from a PST dump of an IMAP account Posted on August 29th, 2012 I recently had to migrate 9 IMAP accounts from GoDaddy to our Exchange 2010 server. Since GoDaddy does not offer export services and it was only 9 accounts we decided [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-314","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.itcrumbs.com\/index.php?rest_route=\/wp\/v2\/posts\/314","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.itcrumbs.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.itcrumbs.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.itcrumbs.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/www.itcrumbs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=314"}],"version-history":[{"count":1,"href":"http:\/\/www.itcrumbs.com\/index.php?rest_route=\/wp\/v2\/posts\/314\/revisions"}],"predecessor-version":[{"id":315,"href":"http:\/\/www.itcrumbs.com\/index.php?rest_route=\/wp\/v2\/posts\/314\/revisions\/315"}],"wp:attachment":[{"href":"http:\/\/www.itcrumbs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=314"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.itcrumbs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=314"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.itcrumbs.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=314"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}