{"id":2249,"date":"2015-04-18T08:38:07","date_gmt":"2015-04-18T06:38:07","guid":{"rendered":"http:\/\/www.blue-bears.com\/blog\/?p=2249"},"modified":"2016-12-09T10:33:48","modified_gmt":"2016-12-09T09:33:48","slug":"convertir-fichiers-outlook-pst-sous-linuxdebianthunderbird","status":"publish","type":"post","link":"http:\/\/www.blue-bears.com\/blog\/?p=2249","title":{"rendered":"Convertir Fichiers Outlook .PST sous Linux\/Debian\/Thunderbird Readpst"},"content":{"rendered":"<p>J&rsquo;ai des mails sur un PC Windows vieillissant, il date d&rsquo;une \u00e9poque ou le standard mail \u00e9tait POP (vs IMAP aujourd&rsquo;hui). Les mails sont dans un (gros : 1.1G) fichier .PST (Microsoft Outlook) sur le disque dur. Je souhaite basculer les mails de ce fichier .PST sur un serveur Linux\/Debian pour les retrouver sur mes clients Mail IMAP.<br \/>\nLa conversion sera faite avec l&rsquo;utilitaire Linux <span style=\"text-decoration: underline;\"><strong>readpst<\/strong><\/span><!--more--><\/p>\n<ul>\n<li>\n<h1>Recherche WEB liens utiles :<\/h1>\n<ul>\n<li><a href=\"http:\/\/www.five-ten-sg.com\/libpst\/rn01re01.html\" target=\"_blank\">Manuel ReadPST.<\/a><\/li>\n<li><a href=\"http:\/\/korben.info\/importer-pst-dans-thunderbird-pour-linux.html\" target=\"_blank\">Un bon article avec un scrip<\/a>t Bash de transfo + install (mais je pr\u00e9f\u00e8re g\u00e9rer cela \u00e0 la main)<\/li>\n<li><\/li>\n<\/ul>\n<\/li>\n<li>\n<h1>\u00a0utiliser readpst sous linux<\/h1>\n<\/li>\n<li>Copie du fichier PST du PC vers le serveur (dans un r\u00e9pertoire Temp pour bidouillage)\n<ul>\n<li>1.1GB \u00e0 800Kbs =&gt; 1.1*8\/800 = 3 heures !!<\/li>\n<li>!!! Beaucoup de probl\u00e8mes de time-out<\/li>\n<li>=&gt; l&rsquo;upload via l&rsquo;interface de webmin d\u00e9connecte au bout de 2 heures !\n<ul>\n<li>Soit via Gestionnaire de fichier<\/li>\n<li>Soit via l&rsquo;interface Upload\/Download (T\u00e9l\u00e9charger\/T\u00e9l\u00e9verser)<\/li>\n<\/ul>\n<\/li>\n<li>=&gt; Ftp sous DOS\n<ul>\n<li>C:\\&gt;ftp [adresse IP]<\/li>\n<li>ftp&gt;\n<ul>\n<li>PWD : o\u00f9 je suis<\/li>\n<li>DIR ou bien LS: liste arbo Distante<\/li>\n<li>CD [repertoire] : change rep distant<\/li>\n<li>..\/ remonte 1 niveau de r\u00e9pertoire<\/li>\n<li>!DIR : liste arbo locale<\/li>\n<li>LCD : change rep local<\/li>\n<li>GET [file]: recevoir fichier [file]<\/li>\n<li>PUT [file] : envoyer fichier [file]<\/li>\n<li>QUIT<\/li>\n<\/ul>\n<\/li>\n<li>M\u00eame probl\u00e8me de time-out<\/li>\n<\/ul>\n<\/li>\n<li>=&gt; FileZila\n<ul>\n<li>M\u00eame probl\u00e8me de time-out mais avec un peu plus de d\u00e9tail sur l&rsquo;origine de l&rsquo;interruption. R\u00e9ponse :<\/li>\n<li><code><span style=\"color: #008000;\">421 No transfer timeout (600 seconds): closing control connection<\/span><br \/>\n<span style=\"color: #ff0000;\">Erreur : Connexion interrompue par le serveur<\/span><br \/>\n<span style=\"color: #ff0000;\">Erreur : \u00c9chec du transfert du fichier<\/span><\/code><\/li>\n<li>il semble qu&rsquo;en l&rsquo;absence de \u00ab\u00a0nouveau\u00a0\u00bb transfert dans les 600 secondes la connexion se ferme m\u00eame si un transfert est encore en cours.<\/li>\n<li>=&gt; Revue des directives de ProFTPD (serveur FTP)\n<ul>\n<li>passage en revue des directives, 2 d&rsquo;entre-elles ont 600 secondes de valeur.<\/li>\n<li>Test de diff\u00e9rentes valeurs pour les directives.<\/li>\n<li>Le log de FileZilla semble montrer que la directive qui coince est:<\/li>\n<li>\u00ab\u00a0TimeoutNoTransfer\u00a0\u00bb du ficher de configuration \u00ab\u00a0proftpd.conf\u00a0\u00bb<\/li>\n<\/ul>\n<\/li>\n<li>Echec : \u00e0 768MB (2:00)<br \/>\n<span style=\"color: #ff0000;\">Erreur :\u00a0\u00a0 \u00a0D\u00e9connect\u00e9 du serveur : ECONNABORTED &#8211; Connexion annul\u00e9e<\/span><br \/>\n<span style=\"color: #ff0000;\"> Erreur :\u00a0\u00a0 \u00a0\u00c9chec du transfert du fichier<\/span><\/li>\n<li>=&gt; Passe en mode ACTIF (jusque l\u00e0 en PASSIF)<\/li>\n<li>Finalement active la directive : reprise de t\u00e9l\u00e9chargement sur le serveur ProFTPD.<\/li>\n<li>OK avec reprise<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<h1>Les Options : <a href=\"http:\/\/manpages.ubuntu.com\/manpages\/hardy\/man1\/readpst.1.html\" target=\"_blank\">from Ubuntu<\/a><\/h1>\n<ul>\n<li>\n<h4 id=\"contenttoc2\"><b>DESCRIPTION<\/b><\/h4>\n<pre>       This manual page documents briefly the <b>readpst<\/b> command.\r\n\r\n       <b>readpst<\/b> is a program that can read an Outlook  PST  (Personal  Folders)\r\n       file  and  convert it into an mbox file, a format suitable for KMail, a\r\n       recursive mbox structure, or seperate emails.\r\n\r\n<\/pre>\n<h4 id=\"contenttoc3\"><b>OPTIONS<\/b><\/h4>\n<pre>       A summary of options is included below.\r\n\r\n       <b>-b<\/b>     Do not save the attachments for the  RTF  format  of  the  email\r\n              body.\r\n\r\n       <b>-c[lv]<\/b> Set the Contact output mode. Use <b>-cv<\/b> for vcard format or <b>-cl<\/b> for\r\n              an email list.\r\n\r\n       <b>-d<\/b>     Specify name of debug log file. Defaults to  \"readpst.log\".  The\r\n              log  file  isn\u00b4t  an ascii file, it is a binary file readable by\r\n              <b>readpstlog<\/b>.\r\n\r\n       <b>-h<\/b>     Show summary of options and exit.\r\n\r\n       <b>-k<\/b>     Changes the output format to KMail.\r\n\r\n       <b>-o<\/b>     Specifies the  output  directory.  The  directory  must  already\r\n              exist,  and  is entered after the PST file is opened, but before\r\n              any processing of files commences.\r\n\r\n       <b>-q<\/b>     Changes to silent mode. No feedback is printed  to  the  screen,\r\n              except for error messages.\r\n\r\n       <b>-r<\/b>     Changes the output format to Recursive. This will create folders\r\n              as named in the PST file, and will put  all  emails  in  a  file\r\n              called   \"mbox\"   inside  each  folder.  These  files  are  then\r\n              compatible with all mbox-compatible email clients.\r\n\r\n       <b>-S<\/b>     Output messages into seperate files. This will create folders as\r\n              named  in the PST file, and will put each email in its own file.\r\n              These files  will  be  numbered  from  000000000  increasing  in\r\n              intervals  of  1  (ie  000000000,  000000001,  0000000002).  Any\r\n              attachments are saved alongside each email as 000000000-attach0,\r\n              or with the name of the attachment if one is present.\r\n\r\n       <b>-V<\/b>     Show version of program and exit.\r\n\r\n       <b>-w<\/b>     Overwrite  any previous output files. <b>Beware<\/b>: When used with the\r\n              -S switch, this will remove all files  from  the  target  folder\r\n              before  writing.  This  is  to  keep  the  count  of  emails and\r\n              attachments correct.\r\n\r\n<\/pre>\n<h4 id=\"contenttoc4\"><b>SEE<\/b> <b>ALSO<\/b><\/h4>\n<pre>       <b><a href=\"http:\/\/manpages.ubuntu.com\/manpages\/hardy\/man1\/readpstlog.1.html\">readpstlog<\/a><\/b>(1)\r\n\r\n<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<h1>Conversion<\/h1>\n<ul>\n<li>Option -r pour g\u00e9n\u00e9rer l&rsquo;arborescence des r\u00e9pertoires.\n<ul>\n<li><code>readpst -r OUTLOOK.PST<\/code><\/li>\n<li>L&rsquo;option -S permet de sauvegarder INDIVIDUELLEMENT chaque mail ET ses pi\u00e8ces jointes.<\/li>\n<li>L&rsquo;option -w met \u00e0 jour =&gt; \u00e9crase et remplace<\/li>\n<li>L&rsquo;option -CV transforme les contacts en VCcard<\/li>\n<li>-o permet de sp\u00e9cifier le r\u00e9pertoire cible<\/li>\n<\/ul>\n<\/li>\n<li><span style=\"color: #ff0000;\">ERROR: Unknown block constant &#8211; 0X47E6 for id 0x2a1acf2<br \/>\nUnknown constant [0x4a98] at start of id2 values [offset 0x81f640].<\/span><br \/>\n<span style=\"color: #ff0000;\">xMalloc: Out Of memory [req: -1216949276]<\/span><\/li>\n<li>Idem sans l&rsquo;option -r<\/li>\n<li>Idem avec l&rsquo;option -S<\/li>\n<li><a href=\"http:\/\/kb.mozillazine.org\/Import_.pst_files\">Solution conversion Outlook =&gt; Thunderbird<\/a> de Mozilla<\/li>\n<li>Passer par un poste avec Outlook, v\u00e9rifier l&rsquo;int\u00e9grit\u00e9 du .PST, exporter de Outlook vers un autre format (.EML ?)<\/li>\n<li>22\/04\/2015 : Fichier .PST corrig\u00e9, r\u00e9-t\u00e9l\u00e9charg\u00e9 &#8230;.readpst :\u00a0 re en \u00e9chec &#8230;.Fu&#8230;.KKKK!!!!!!!!!!<\/li>\n<li>28\/04\/2015 : faire une conversion pr\u00e9alable =&gt; nettoyage ?\n<ul>\n<li>Sous Outlook =&gt; Fichiers =&gt; Import &amp; Export =&gt; Export File =&gt; Format .pst =&gt; Choisir un r\u00e9pertoire d&rsquo;archivage (racine ?)\u00a0 =&gt; Export<\/li>\n<li>readpst fonctionne !!!! -r en format mbox \/\/ -S en fichiers individuels<\/li>\n<li>EUREKA !!!!<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>J&rsquo;ai des mails sur un PC Windows vieillissant, il date d&rsquo;une \u00e9poque ou le standard mail \u00e9tait POP (vs IMAP aujourd&rsquo;hui). Les [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-2249","post","type-post","status-publish","format-standard","hentry","category-informatique"],"_links":{"self":[{"href":"http:\/\/www.blue-bears.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2249","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.blue-bears.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.blue-bears.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.blue-bears.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.blue-bears.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2249"}],"version-history":[{"count":17,"href":"http:\/\/www.blue-bears.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2249\/revisions"}],"predecessor-version":[{"id":2283,"href":"http:\/\/www.blue-bears.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2249\/revisions\/2283"}],"wp:attachment":[{"href":"http:\/\/www.blue-bears.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.blue-bears.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2249"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.blue-bears.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}