{"id":158,"date":"2019-12-10T19:58:51","date_gmt":"2019-12-10T18:58:51","guid":{"rendered":"https:\/\/www.delixirpro.com\/blog\/?p=158"},"modified":"2020-02-12T14:33:03","modified_gmt":"2020-02-12T13:33:03","slug":"les-dossiers-imap-importes-ne-sont-pas-visibles-ou-naffichent-aucun-contenu","status":"publish","type":"post","link":"https:\/\/www.delixirpro.com\/blog\/2019\/12\/10\/les-dossiers-imap-importes-ne-sont-pas-visibles-ou-naffichent-aucun-contenu\/","title":{"rendered":"Les dossiers IMAP import\u00e9s ne sont pas visibles ou n&rsquo;affichent aucun contenu."},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Ce billet permet de r\u00e9soudre le souci des dossiers IMAP qui, apr\u00e8s importation, n&rsquo;apparaissent pas dans la boite de messagerie install\u00e9e sur une application mobile ou une tablette ou bien que le contenu du dossier est vide.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Le souci vient des dossier qui sont d\u00e9clar\u00e9s en statut \u00ab\u00a0IMAP\u00a0\u00bb et non \u00ab\u00a0Note\u00a0\u00bb.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>T\u00e9l\u00e9chargement de MFCMAPI et MFCMAPI x64<\/strong><\/p>\n\n\n\n<div class=\"wp-block-file\"><a href=\"https:\/\/www.delixirpro.com\/blog\/wp-content\/uploads\/2020\/02\/MFCMAPI.exe_.x64.19.2.19207.938.zip\">MFCMAPI.exe_.x64.19.2.19207.938<\/a><a href=\"https:\/\/www.delixirpro.com\/blog\/wp-content\/uploads\/2020\/02\/MFCMAPI.exe_.x64.19.2.19207.938.zip\" class=\"wp-block-file__button\" download>T\u00e9l\u00e9charger<\/a><\/div>\n\n\n\n<div class=\"wp-block-file\"><a href=\"https:\/\/www.delixirpro.com\/blog\/wp-content\/uploads\/2020\/02\/MFCMAPI.exe_.19.2.19207.938.zip\">MFCMAPI.exe_.19.2.19207.938<\/a><a href=\"https:\/\/www.delixirpro.com\/blog\/wp-content\/uploads\/2020\/02\/MFCMAPI.exe_.19.2.19207.938.zip\" class=\"wp-block-file__button\" download>T\u00e9l\u00e9charger<\/a><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Bonne lecture&#8230;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong> Imported IMAP folders are not visible or don\u2019t show any content <\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When you\u2019ve exported your IMAP mailbox or specific folders to a pst-file which you then later open in Outlook or import into an Exchange or Outlook.com mailbox, you may be shocked to see that these folders don\u2019t contain anything.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Additionally, when you configure this mailbox on a smartphone or tablet as an Exchange ActiveSync account, these folders may not show at all.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Luckily, this can be fixed without any data loss but the process to do so via MFCMAPI is not for the faint of heart or when you have many folder to fix.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Therefor, this guide also contains a script which you can run to apply the fix for you. You can either fix a single folder, a folder and its subfolders or your entire mailbox at once.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"background\">Background info and workaround solution<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This issue happens because the export\/import process maintains the IMAP folder properties which aren\u2019t compatible with a regular pst-archive or Exchange\/Outlook.com account.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">More specific (and technical), the folder class property is set to IPF.Imap instead of IPF.Note. This has various negative side-effects, visual \u201cglitches\u201d and functionality issues such as;<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>You still don\u2019t have Follow Up flags such as Today, Tomorrow, This Week, etc\u2026 for these imported folders.<\/li><li>You\u2019ll see a \u201cFilter applied\u201d message in the bottom left corner of the Status Bar.<\/li><li>When you switch to the View tab and press the Change View button, you\u2019ll see views that are specific for IMAP accounts even though you are now working with a pst-file or Exchange mailbox. Right now, it is probably set to \u201cHide Messages Marked for Deletion\u201d.<\/li><li>The folders are not visible when you connect to your mailbox via Exchange ActiveSync on your smartphone or tablet or the Windows 10 Mail app.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.howto-outlook.com\/pictures\/imap-folder-views.png\" alt=\"Views available to an IMAP folder.\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Looking at the available Views allows you to determine whether a folder is being treated as an IMAP folder.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A quick way to see all your messages again is to set you view to \u201cIMAP Messages\u201d.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This will however not fix the actual issue and will not make the folders visible again on your smartphone or tablet. To actually solve it, you\u2019ll need to use one of the methods below to change the folder class property.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>For future reference:<br><\/strong>Instead of exporting and importing your data from your IMAP account, you could also copy it directly from your IMAP account into a pst-file or an Exchange mailbox. This will copy the contents of the folder without maintaining the IMAP specific properties.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"script\">Method 1: Automated fix with a script<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The script below will fix the incorrect folder class property for you so that it will become a regular mail folder again just like all the others.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After running the script, you\u2019ll immediately see all your emails again, have Follow Up flag support and all other aforementioned issues will be gone. You don\u2019t even need to restart Outlook!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The script allows you to fix a single folder, a folder and its subfolders or your entire mailbox at once. It will automatically recognize folders that don\u2019t need any fixing and won\u2019t make any changes to these either.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Download the file;&nbsp;<a href=\"https:\/\/www.howto-outlook.com\/files\/fiximportedimapfolders.zip\">fiximportedimapfolders.zip<\/a><\/li><li>Open or extract the zip-file, and double click on;&nbsp;<code>FixImportedIMAPFolders.vbs<\/code><\/li><li>Click on Outlook in the Taskbar to see the \u201cSelect Folder\u201d dialog.<\/li><li>Select the folder that you would like to fix and press OK.<ul><li>If you\u2019d like to fix all subfolders that need fixing as well, select the parent folder.<\/li><li>If you\u2019d like to fix all folders within your entire mailbox that need fixing, simply select the mailbox name.<\/li><\/ul><\/li><li>You\u2019ll now get a prompt whether you want to include the subfolders as well. If you don\u2019t see this prompt, click on the script icon in your Taskbar.<br><em>Click on the WScript icon in the Taskbar\u2026<\/em><br><em>\u2026and select your fixing preference.<\/em><\/li><li>After the script is done, you\u2019ll get a notification with how many folders have been fixed.<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">The contents of all the fixed folders should now be visible again and you should no longer have any IMAP view or any of the other aforementioned issues.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you had the folder still selected in Outlook, select a different folder and then go back to the fixed folder so that Outlook can refresh the view and you can see that it is fixed.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">FixImportedIMAPFolders.vbs script contents<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The following code is contained in the&nbsp;<code>FixImportedIMAPFolders.vbs<\/code>&nbsp;file.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Dim i\n\nCall FolderSelect()\n\nPublic Sub FolderSelect()\n  Dim objOutlook\n  Set objOutlook = CreateObject(\"Outlook.Application\")\n\n  Dim F, Folders\n  Set F = objOutlook.Session.PickFolder\n\n  If Not F Is Nothing Then\n    Dim Result\n    Result = MsgBox(\"Do you want to include the subfolders?\", vbYesNo+vbDefaultButton2+vbApplicationModal, \"Include Subfolders\")\n\n    i = 0\n    FixIMAPFolder(F)\n\n    If Result = 6 Then\n      Set Folders = F.Folders\n      LoopFolders Folders\n    End If\n\n    Result = MsgBox(\"Done!\" &amp; vbNewLine &amp; i &amp; \" folder(s) have been fixed.\", vbInfo, \"Fix Imported IMAP Folders\")\n  \n    Set F = Nothing\n    Set Folders = Nothing\n    Set objOutlook = Nothing\n  End If\nEnd Sub\n\nPrivate Sub LoopFolders(Folders)\n  Dim F\n  \n  For Each F In Folders\n    FixIMAPFolder(F)\n    LoopFolders F.Folders\n  Next\nEnd Sub\n\nPrivate Sub FixIMAPFolder(F)\n  Dim oPA, PropName, Value, FolderType\n\n  PropName = \"http:\/\/schemas.microsoft.com\/mapi\/proptag\/0x3613001E\"\n  Value = \"IPF.Note\"\n\n  On Error Resume Next\n  Set oPA = F.PropertyAccessor\n  FolderType = oPA.GetProperty(PropName)\n\n  'MsgBox (F.Name &amp; \" - \" &amp; FolderType)\n\n  If FolderType = \"IPF.Imap\" Then\n    oPA.SetProperty PropName, Value\n    i = i + 1\n  End If\n\n  Set oPA = Nothing\nEnd Sub<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"mfcmapi\">Method 2: Manual fix with MFCMAPI<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To manually fix the folders, you can change the&nbsp;<code>PR_CONTAINER_CLASS<\/code>&nbsp;value of the folder from&nbsp;<code>IPF.Imap<\/code>&nbsp;to&nbsp;<code>IPF.Note<\/code>&nbsp;via MFCMAPI.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is the exact same fix that is being applied by the script featured above.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Warning!<\/strong><br>MFCMAPI is a low-level mailbox editing tool which is designed for expert users and developers so pretty much all safety nets are missing and making a mistake could result in total destruction of your mailbox data. So if this doesn\u2019t like something for you, you may want to use the script method instead.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Download&nbsp;<a href=\"https:\/\/github.com\/stephenegriffin\/mfcmapi\/releases\/latest\" target=\"_blank\" rel=\"noreferrer noopener\">MFCMAPI<\/a>&nbsp;from its official project page on GitHub.<ul><li>When you use a 32-bit version of Outlook, you\u2019ll need the file starting with;<br><code>MFCMAPI.exe<\/code><\/li><li>When you use a 64-bit version of Outlook, you\u2019ll need the file starting with;<br><code>MFCMAPI.exe.x64<\/code><\/li><\/ul><\/li><li>Unzip the downloaded file and from the extracted folder double click on&nbsp;<code>mfcmapi.exe<\/code>.<\/li><li>Dismiss the startup screen.<\/li><li>Logon via; Session-&gt; Logon\u2026<a href=\"https:\/\/www.howto-outlook.com\/pictures\/mfcmapi-logon.png\"><\/a><\/li><li>Select the mail profile which contains the folder you wish to alter.<br>If you\u2019ve never seen this dialog before, just click OK to load your default mail profile.<\/li><li>Double click on the mailbox store containing the folder you wish to alter.<a href=\"https:\/\/www.howto-outlook.com\/pictures\/mfcmapi-select-data-store.png\"><\/a><\/li><li>Expand: Root Container<\/li><li>Depending on your account configuration expand the following folder:<ul><li>IPM_SUBTREE<\/li><li>Top of Outlook data file<\/li><li>Top of Personal Folders<\/li><li>Top of Information Store<\/li><\/ul><\/li><li>Select the folder that you wish to fix.<a href=\"https:\/\/www.howto-outlook.com\/pictures\/mfcmapi-folder-list-imported-imap-folders-pr-container-class.png\"><\/a><\/li><li>Double click on the PR_CONTAINER_CLASS property.<a href=\"https:\/\/www.howto-outlook.com\/pictures\/mfcmapi-property-editor-pr-container-class-ipf-imap.png\"><\/a><\/li><li>Change the IPF.Imap value into IPF.Note.<a href=\"https:\/\/www.howto-outlook.com\/pictures\/mfcmapi-property-editor-pr-container-class-ipf-note.png\"><\/a><\/li><li>Click OK.<\/li><li>Repeat step 9 to 12 for any other folders that you wish to fix.<\/li><li>Close all the open MFCMAPI windows.<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">The contents of all the fixed folders should now be visible again and you should no longer have any IMAP view or any of the other aforementioned issues.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you had the folder still selected in Outlook, select a different folder and then go back to the fixed folder so that Outlook can refresh the view and you can see that it is fixed.<\/p>\n\n\n\n<figure class=\"wp-block-embed-wordpress wp-block-embed is-type-wp-embed is-provider-howto-outlook\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"RXCYc3eSfW\"><a href=\"https:\/\/www.howto-outlook.com\/howto\/fix-imported-imap-folders.htm\">Imported IMAP folders are not visible or don&#8217;t show any content<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Imported IMAP folders are not visible or don&#8217;t show any content&#8221; &#8212; HowTo-Outlook\" src=\"https:\/\/www.howto-outlook.com\/howto\/fix-imported-imap-folders.htm\/embed#?secret=pEMKVJmRDT#?secret=RXCYc3eSfW\" data-secret=\"RXCYc3eSfW\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Ce billet permet de r\u00e9soudre le souci des dossiers IMAP qui, apr\u00e8s importation, n&rsquo;apparaissent pas dans la boite de messagerie install\u00e9e sur une application mobile ou une tablette ou bien que le contenu du&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":161,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[11,10],"class_list":["post-158","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech-tips","tag-exchange","tag-imap"],"_links":{"self":[{"href":"https:\/\/www.delixirpro.com\/blog\/wp-json\/wp\/v2\/posts\/158","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.delixirpro.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.delixirpro.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.delixirpro.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.delixirpro.com\/blog\/wp-json\/wp\/v2\/comments?post=158"}],"version-history":[{"count":3,"href":"https:\/\/www.delixirpro.com\/blog\/wp-json\/wp\/v2\/posts\/158\/revisions"}],"predecessor-version":[{"id":186,"href":"https:\/\/www.delixirpro.com\/blog\/wp-json\/wp\/v2\/posts\/158\/revisions\/186"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.delixirpro.com\/blog\/wp-json\/wp\/v2\/media\/161"}],"wp:attachment":[{"href":"https:\/\/www.delixirpro.com\/blog\/wp-json\/wp\/v2\/media?parent=158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.delixirpro.com\/blog\/wp-json\/wp\/v2\/categories?post=158"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.delixirpro.com\/blog\/wp-json\/wp\/v2\/tags?post=158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}