How do I view an Outlook .msg file?












54














I need to view a .msg file. It is an email from Microsoft Outlook. How can I do this in Ubuntu?










share|improve this question
























  • similar question: askubuntu.com/questions/282691/…
    – DJCrashdummy
    Oct 14 '16 at 12:19










  • At least with Thunderbird(45.8.0)->Open File it displays somewhat readable.
    – math
    Oct 17 '17 at 8:53


















54














I need to view a .msg file. It is an email from Microsoft Outlook. How can I do this in Ubuntu?










share|improve this question
























  • similar question: askubuntu.com/questions/282691/…
    – DJCrashdummy
    Oct 14 '16 at 12:19










  • At least with Thunderbird(45.8.0)->Open File it displays somewhat readable.
    – math
    Oct 17 '17 at 8:53
















54












54








54


20





I need to view a .msg file. It is an email from Microsoft Outlook. How can I do this in Ubuntu?










share|improve this question















I need to view a .msg file. It is an email from Microsoft Outlook. How can I do this in Ubuntu?







file-format microsoft-office






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 9 '14 at 16:15









don.joey

17.2k126594




17.2k126594










asked Feb 5 '11 at 4:30









Eric Johnson

3,17051921




3,17051921












  • similar question: askubuntu.com/questions/282691/…
    – DJCrashdummy
    Oct 14 '16 at 12:19










  • At least with Thunderbird(45.8.0)->Open File it displays somewhat readable.
    – math
    Oct 17 '17 at 8:53




















  • similar question: askubuntu.com/questions/282691/…
    – DJCrashdummy
    Oct 14 '16 at 12:19










  • At least with Thunderbird(45.8.0)->Open File it displays somewhat readable.
    – math
    Oct 17 '17 at 8:53


















similar question: askubuntu.com/questions/282691/…
– DJCrashdummy
Oct 14 '16 at 12:19




similar question: askubuntu.com/questions/282691/…
– DJCrashdummy
Oct 14 '16 at 12:19












At least with Thunderbird(45.8.0)->Open File it displays somewhat readable.
– math
Oct 17 '17 at 8:53






At least with Thunderbird(45.8.0)->Open File it displays somewhat readable.
– math
Oct 17 '17 at 8:53












7 Answers
7






active

oldest

votes


















29














Looks like the best thing to do is to convert them to an eml file using this script:



http://www.matijs.net/software/msgconv/



It's not pretty, it's not gui based, but it'll work.






share|improve this answer

















  • 1




    After installing the script as indicated (cpan -i Email::Outlook::Message) found a quick way to call it: creating a "Nautilus Script" with: #!/bin/bash for arg do msgconvert "$arg" done
    – Pisu
    Sep 30 '14 at 7:28



















41














Building on Martin Owens answer, this is the quick solution:



wget http://www.matijs.net/software/msgconv/msgconvert.pl
sudo apt-get install libemail-outlook-message-perl libemail-localdelivery-perl libemail-sender-perl
perl msgconvert.pl YourMessage.msg





share|improve this answer



















  • 3




    For Ubuntu 14.04 I also needed this package: libemail-sender-perl
    – bmaupin
    Nov 13 '14 at 14:08



















17














Open it with MsgViewer http://sourceforge.net/projects/msgviewer/



wget -O MSGViewer.zip http://sourceforge.net/projects/msgviewer/files/latest/download
unzip MSGViewer.zip
cd MSGViewer-1.9
java -jar MSGViewer.jar


now, just drag'n'drop the msg file to the program window to have its contents displayed.






share|improve this answer























  • MSGViewer is a nice program, but I found that the viewer wouldn't open an attached .PDF file within the .MSG file. It appeared to change the filename to something that it couldn't find.
    – Mr Ed
    Apr 25 '16 at 7:21










  • This works nicely. However I have some problems with the encoding of non ASCI mails (in my case Greek). Do you happen to know if there is any setting for this.
    – Bruni
    Jun 22 '16 at 16:22










  • Worked for me great.
    – h22
    Feb 9 '18 at 7:22










  • This works with Java 8. Java 11, that I tried with first, removed the java activation framework this uses and so no longer works without some extra effort to use the replacement github.com/eclipse-ee4j/jaf
    – jwd630
    Oct 16 '18 at 1:49



















14














I am on Ubuntu 15.10 and matijs'es msgconvert script seems to be available in the repos now. after running:



sudo apt-get install libemail-outlook-message-perl libemail-localdelivery-perl libemail-sender-perl



I can now now run



msgconvert *.msg



to convert the messages entirely with tools from the repos.






share|improve this answer





























    3














    I found after install msgconvert that msgconvert wasn't installed when I ran the command. Rather than faff about trying to debug it, I did this. Done in less than a minute. http://www.zamzar.com/convert/msg-to-pdf/






    share|improve this answer





















    • Great, this did the job for me.
      – asoundmove
      Apr 4 '15 at 3:04






    • 3




      it doesnt handle attachments, so it's pretty fail imo
      – meffect
      Oct 3 '15 at 7:58










    • I converted from .MSG to .EML, and the attachments come through correctly. The .EML files was openable with Thunderbird.
      – Mr Ed
      Apr 25 '16 at 7:22



















    0














    With SeaMonkey program,
    Link please see below:
    http://www.seamonkey-project.org/






    share|improve this answer

















    • 1




      Where do you see that seamonkey is able to view those files? Add a detailed description please.
      – guntbert
      Mar 19 '15 at 14:10










    • Please install this program, after that from "File" menu choose "open file..." and choose your .msg file.
      – Davidgh
      Mar 19 '15 at 14:16



















    0














    You can use ruby-msg ruby gem for that purposes. So:





    1. Install ruby and rubygems:



      # apt-get install rubygems gem



    2. Install the gem:



      # gem install ruby-msg



    3. Then use the "mapitool" utility:



      $ mapitool -i test.msg


      In some cases you can sporadically get the exception:



      /usr/local/share/gems/gems/ruby-msg-1.5.2/lib/mapi/mime.rb:109:in `join': incompatible character encodings: UTF-8 and ASCII-8BIT (Encoding::CompatibilityError)


      So just fix the following file lib/mapi/mime.rb with the following regexp:



      sed 's/part.to_s(opts)/part.to_s(opts).encode("UTF-8", :invalid=>:replace, :undef => :replace, :replace => "")/' -i /usr/local/share/gems/gems/ruby-msg-1.5.2/lib/mapi/mime.rb







    share|improve this answer




















      protected by Community Mar 11 '16 at 13:46



      Thank you for your interest in this question.
      Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



      Would you like to answer one of these unanswered questions instead?














      7 Answers
      7






      active

      oldest

      votes








      7 Answers
      7






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      29














      Looks like the best thing to do is to convert them to an eml file using this script:



      http://www.matijs.net/software/msgconv/



      It's not pretty, it's not gui based, but it'll work.






      share|improve this answer

















      • 1




        After installing the script as indicated (cpan -i Email::Outlook::Message) found a quick way to call it: creating a "Nautilus Script" with: #!/bin/bash for arg do msgconvert "$arg" done
        – Pisu
        Sep 30 '14 at 7:28
















      29














      Looks like the best thing to do is to convert them to an eml file using this script:



      http://www.matijs.net/software/msgconv/



      It's not pretty, it's not gui based, but it'll work.






      share|improve this answer

















      • 1




        After installing the script as indicated (cpan -i Email::Outlook::Message) found a quick way to call it: creating a "Nautilus Script" with: #!/bin/bash for arg do msgconvert "$arg" done
        – Pisu
        Sep 30 '14 at 7:28














      29












      29








      29






      Looks like the best thing to do is to convert them to an eml file using this script:



      http://www.matijs.net/software/msgconv/



      It's not pretty, it's not gui based, but it'll work.






      share|improve this answer












      Looks like the best thing to do is to convert them to an eml file using this script:



      http://www.matijs.net/software/msgconv/



      It's not pretty, it's not gui based, but it'll work.







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Feb 5 '11 at 4:38









      Martin Owens -doctormo-

      17.6k45296




      17.6k45296








      • 1




        After installing the script as indicated (cpan -i Email::Outlook::Message) found a quick way to call it: creating a "Nautilus Script" with: #!/bin/bash for arg do msgconvert "$arg" done
        – Pisu
        Sep 30 '14 at 7:28














      • 1




        After installing the script as indicated (cpan -i Email::Outlook::Message) found a quick way to call it: creating a "Nautilus Script" with: #!/bin/bash for arg do msgconvert "$arg" done
        – Pisu
        Sep 30 '14 at 7:28








      1




      1




      After installing the script as indicated (cpan -i Email::Outlook::Message) found a quick way to call it: creating a "Nautilus Script" with: #!/bin/bash for arg do msgconvert "$arg" done
      – Pisu
      Sep 30 '14 at 7:28




      After installing the script as indicated (cpan -i Email::Outlook::Message) found a quick way to call it: creating a "Nautilus Script" with: #!/bin/bash for arg do msgconvert "$arg" done
      – Pisu
      Sep 30 '14 at 7:28













      41














      Building on Martin Owens answer, this is the quick solution:



      wget http://www.matijs.net/software/msgconv/msgconvert.pl
      sudo apt-get install libemail-outlook-message-perl libemail-localdelivery-perl libemail-sender-perl
      perl msgconvert.pl YourMessage.msg





      share|improve this answer



















      • 3




        For Ubuntu 14.04 I also needed this package: libemail-sender-perl
        – bmaupin
        Nov 13 '14 at 14:08
















      41














      Building on Martin Owens answer, this is the quick solution:



      wget http://www.matijs.net/software/msgconv/msgconvert.pl
      sudo apt-get install libemail-outlook-message-perl libemail-localdelivery-perl libemail-sender-perl
      perl msgconvert.pl YourMessage.msg





      share|improve this answer



















      • 3




        For Ubuntu 14.04 I also needed this package: libemail-sender-perl
        – bmaupin
        Nov 13 '14 at 14:08














      41












      41








      41






      Building on Martin Owens answer, this is the quick solution:



      wget http://www.matijs.net/software/msgconv/msgconvert.pl
      sudo apt-get install libemail-outlook-message-perl libemail-localdelivery-perl libemail-sender-perl
      perl msgconvert.pl YourMessage.msg





      share|improve this answer














      Building on Martin Owens answer, this is the quick solution:



      wget http://www.matijs.net/software/msgconv/msgconvert.pl
      sudo apt-get install libemail-outlook-message-perl libemail-localdelivery-perl libemail-sender-perl
      perl msgconvert.pl YourMessage.msg






      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Dec 2 '14 at 18:45









      Community

      1




      1










      answered Oct 22 '13 at 8:40









      Will Sheppard

      574511




      574511








      • 3




        For Ubuntu 14.04 I also needed this package: libemail-sender-perl
        – bmaupin
        Nov 13 '14 at 14:08














      • 3




        For Ubuntu 14.04 I also needed this package: libemail-sender-perl
        – bmaupin
        Nov 13 '14 at 14:08








      3




      3




      For Ubuntu 14.04 I also needed this package: libemail-sender-perl
      – bmaupin
      Nov 13 '14 at 14:08




      For Ubuntu 14.04 I also needed this package: libemail-sender-perl
      – bmaupin
      Nov 13 '14 at 14:08











      17














      Open it with MsgViewer http://sourceforge.net/projects/msgviewer/



      wget -O MSGViewer.zip http://sourceforge.net/projects/msgviewer/files/latest/download
      unzip MSGViewer.zip
      cd MSGViewer-1.9
      java -jar MSGViewer.jar


      now, just drag'n'drop the msg file to the program window to have its contents displayed.






      share|improve this answer























      • MSGViewer is a nice program, but I found that the viewer wouldn't open an attached .PDF file within the .MSG file. It appeared to change the filename to something that it couldn't find.
        – Mr Ed
        Apr 25 '16 at 7:21










      • This works nicely. However I have some problems with the encoding of non ASCI mails (in my case Greek). Do you happen to know if there is any setting for this.
        – Bruni
        Jun 22 '16 at 16:22










      • Worked for me great.
        – h22
        Feb 9 '18 at 7:22










      • This works with Java 8. Java 11, that I tried with first, removed the java activation framework this uses and so no longer works without some extra effort to use the replacement github.com/eclipse-ee4j/jaf
        – jwd630
        Oct 16 '18 at 1:49
















      17














      Open it with MsgViewer http://sourceforge.net/projects/msgviewer/



      wget -O MSGViewer.zip http://sourceforge.net/projects/msgviewer/files/latest/download
      unzip MSGViewer.zip
      cd MSGViewer-1.9
      java -jar MSGViewer.jar


      now, just drag'n'drop the msg file to the program window to have its contents displayed.






      share|improve this answer























      • MSGViewer is a nice program, but I found that the viewer wouldn't open an attached .PDF file within the .MSG file. It appeared to change the filename to something that it couldn't find.
        – Mr Ed
        Apr 25 '16 at 7:21










      • This works nicely. However I have some problems with the encoding of non ASCI mails (in my case Greek). Do you happen to know if there is any setting for this.
        – Bruni
        Jun 22 '16 at 16:22










      • Worked for me great.
        – h22
        Feb 9 '18 at 7:22










      • This works with Java 8. Java 11, that I tried with first, removed the java activation framework this uses and so no longer works without some extra effort to use the replacement github.com/eclipse-ee4j/jaf
        – jwd630
        Oct 16 '18 at 1:49














      17












      17








      17






      Open it with MsgViewer http://sourceforge.net/projects/msgviewer/



      wget -O MSGViewer.zip http://sourceforge.net/projects/msgviewer/files/latest/download
      unzip MSGViewer.zip
      cd MSGViewer-1.9
      java -jar MSGViewer.jar


      now, just drag'n'drop the msg file to the program window to have its contents displayed.






      share|improve this answer














      Open it with MsgViewer http://sourceforge.net/projects/msgviewer/



      wget -O MSGViewer.zip http://sourceforge.net/projects/msgviewer/files/latest/download
      unzip MSGViewer.zip
      cd MSGViewer-1.9
      java -jar MSGViewer.jar


      now, just drag'n'drop the msg file to the program window to have its contents displayed.







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Aug 10 '18 at 13:11









      Stuart Axon

      1781211




      1781211










      answered Jul 14 '15 at 13:14









      Kamil Roman

      27623




      27623












      • MSGViewer is a nice program, but I found that the viewer wouldn't open an attached .PDF file within the .MSG file. It appeared to change the filename to something that it couldn't find.
        – Mr Ed
        Apr 25 '16 at 7:21










      • This works nicely. However I have some problems with the encoding of non ASCI mails (in my case Greek). Do you happen to know if there is any setting for this.
        – Bruni
        Jun 22 '16 at 16:22










      • Worked for me great.
        – h22
        Feb 9 '18 at 7:22










      • This works with Java 8. Java 11, that I tried with first, removed the java activation framework this uses and so no longer works without some extra effort to use the replacement github.com/eclipse-ee4j/jaf
        – jwd630
        Oct 16 '18 at 1:49


















      • MSGViewer is a nice program, but I found that the viewer wouldn't open an attached .PDF file within the .MSG file. It appeared to change the filename to something that it couldn't find.
        – Mr Ed
        Apr 25 '16 at 7:21










      • This works nicely. However I have some problems with the encoding of non ASCI mails (in my case Greek). Do you happen to know if there is any setting for this.
        – Bruni
        Jun 22 '16 at 16:22










      • Worked for me great.
        – h22
        Feb 9 '18 at 7:22










      • This works with Java 8. Java 11, that I tried with first, removed the java activation framework this uses and so no longer works without some extra effort to use the replacement github.com/eclipse-ee4j/jaf
        – jwd630
        Oct 16 '18 at 1:49
















      MSGViewer is a nice program, but I found that the viewer wouldn't open an attached .PDF file within the .MSG file. It appeared to change the filename to something that it couldn't find.
      – Mr Ed
      Apr 25 '16 at 7:21




      MSGViewer is a nice program, but I found that the viewer wouldn't open an attached .PDF file within the .MSG file. It appeared to change the filename to something that it couldn't find.
      – Mr Ed
      Apr 25 '16 at 7:21












      This works nicely. However I have some problems with the encoding of non ASCI mails (in my case Greek). Do you happen to know if there is any setting for this.
      – Bruni
      Jun 22 '16 at 16:22




      This works nicely. However I have some problems with the encoding of non ASCI mails (in my case Greek). Do you happen to know if there is any setting for this.
      – Bruni
      Jun 22 '16 at 16:22












      Worked for me great.
      – h22
      Feb 9 '18 at 7:22




      Worked for me great.
      – h22
      Feb 9 '18 at 7:22












      This works with Java 8. Java 11, that I tried with first, removed the java activation framework this uses and so no longer works without some extra effort to use the replacement github.com/eclipse-ee4j/jaf
      – jwd630
      Oct 16 '18 at 1:49




      This works with Java 8. Java 11, that I tried with first, removed the java activation framework this uses and so no longer works without some extra effort to use the replacement github.com/eclipse-ee4j/jaf
      – jwd630
      Oct 16 '18 at 1:49











      14














      I am on Ubuntu 15.10 and matijs'es msgconvert script seems to be available in the repos now. after running:



      sudo apt-get install libemail-outlook-message-perl libemail-localdelivery-perl libemail-sender-perl



      I can now now run



      msgconvert *.msg



      to convert the messages entirely with tools from the repos.






      share|improve this answer


























        14














        I am on Ubuntu 15.10 and matijs'es msgconvert script seems to be available in the repos now. after running:



        sudo apt-get install libemail-outlook-message-perl libemail-localdelivery-perl libemail-sender-perl



        I can now now run



        msgconvert *.msg



        to convert the messages entirely with tools from the repos.






        share|improve this answer
























          14












          14








          14






          I am on Ubuntu 15.10 and matijs'es msgconvert script seems to be available in the repos now. after running:



          sudo apt-get install libemail-outlook-message-perl libemail-localdelivery-perl libemail-sender-perl



          I can now now run



          msgconvert *.msg



          to convert the messages entirely with tools from the repos.






          share|improve this answer












          I am on Ubuntu 15.10 and matijs'es msgconvert script seems to be available in the repos now. after running:



          sudo apt-get install libemail-outlook-message-perl libemail-localdelivery-perl libemail-sender-perl



          I can now now run



          msgconvert *.msg



          to convert the messages entirely with tools from the repos.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 21 '16 at 21:02









          mnagel

          445516




          445516























              3














              I found after install msgconvert that msgconvert wasn't installed when I ran the command. Rather than faff about trying to debug it, I did this. Done in less than a minute. http://www.zamzar.com/convert/msg-to-pdf/






              share|improve this answer





















              • Great, this did the job for me.
                – asoundmove
                Apr 4 '15 at 3:04






              • 3




                it doesnt handle attachments, so it's pretty fail imo
                – meffect
                Oct 3 '15 at 7:58










              • I converted from .MSG to .EML, and the attachments come through correctly. The .EML files was openable with Thunderbird.
                – Mr Ed
                Apr 25 '16 at 7:22
















              3














              I found after install msgconvert that msgconvert wasn't installed when I ran the command. Rather than faff about trying to debug it, I did this. Done in less than a minute. http://www.zamzar.com/convert/msg-to-pdf/






              share|improve this answer





















              • Great, this did the job for me.
                – asoundmove
                Apr 4 '15 at 3:04






              • 3




                it doesnt handle attachments, so it's pretty fail imo
                – meffect
                Oct 3 '15 at 7:58










              • I converted from .MSG to .EML, and the attachments come through correctly. The .EML files was openable with Thunderbird.
                – Mr Ed
                Apr 25 '16 at 7:22














              3












              3








              3






              I found after install msgconvert that msgconvert wasn't installed when I ran the command. Rather than faff about trying to debug it, I did this. Done in less than a minute. http://www.zamzar.com/convert/msg-to-pdf/






              share|improve this answer












              I found after install msgconvert that msgconvert wasn't installed when I ran the command. Rather than faff about trying to debug it, I did this. Done in less than a minute. http://www.zamzar.com/convert/msg-to-pdf/







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Mar 25 '15 at 12:20









              dez93_2000

              5381816




              5381816












              • Great, this did the job for me.
                – asoundmove
                Apr 4 '15 at 3:04






              • 3




                it doesnt handle attachments, so it's pretty fail imo
                – meffect
                Oct 3 '15 at 7:58










              • I converted from .MSG to .EML, and the attachments come through correctly. The .EML files was openable with Thunderbird.
                – Mr Ed
                Apr 25 '16 at 7:22


















              • Great, this did the job for me.
                – asoundmove
                Apr 4 '15 at 3:04






              • 3




                it doesnt handle attachments, so it's pretty fail imo
                – meffect
                Oct 3 '15 at 7:58










              • I converted from .MSG to .EML, and the attachments come through correctly. The .EML files was openable with Thunderbird.
                – Mr Ed
                Apr 25 '16 at 7:22
















              Great, this did the job for me.
              – asoundmove
              Apr 4 '15 at 3:04




              Great, this did the job for me.
              – asoundmove
              Apr 4 '15 at 3:04




              3




              3




              it doesnt handle attachments, so it's pretty fail imo
              – meffect
              Oct 3 '15 at 7:58




              it doesnt handle attachments, so it's pretty fail imo
              – meffect
              Oct 3 '15 at 7:58












              I converted from .MSG to .EML, and the attachments come through correctly. The .EML files was openable with Thunderbird.
              – Mr Ed
              Apr 25 '16 at 7:22




              I converted from .MSG to .EML, and the attachments come through correctly. The .EML files was openable with Thunderbird.
              – Mr Ed
              Apr 25 '16 at 7:22











              0














              With SeaMonkey program,
              Link please see below:
              http://www.seamonkey-project.org/






              share|improve this answer

















              • 1




                Where do you see that seamonkey is able to view those files? Add a detailed description please.
                – guntbert
                Mar 19 '15 at 14:10










              • Please install this program, after that from "File" menu choose "open file..." and choose your .msg file.
                – Davidgh
                Mar 19 '15 at 14:16
















              0














              With SeaMonkey program,
              Link please see below:
              http://www.seamonkey-project.org/






              share|improve this answer

















              • 1




                Where do you see that seamonkey is able to view those files? Add a detailed description please.
                – guntbert
                Mar 19 '15 at 14:10










              • Please install this program, after that from "File" menu choose "open file..." and choose your .msg file.
                – Davidgh
                Mar 19 '15 at 14:16














              0












              0








              0






              With SeaMonkey program,
              Link please see below:
              http://www.seamonkey-project.org/






              share|improve this answer












              With SeaMonkey program,
              Link please see below:
              http://www.seamonkey-project.org/







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Mar 19 '15 at 13:59









              Davidgh

              11




              11








              • 1




                Where do you see that seamonkey is able to view those files? Add a detailed description please.
                – guntbert
                Mar 19 '15 at 14:10










              • Please install this program, after that from "File" menu choose "open file..." and choose your .msg file.
                – Davidgh
                Mar 19 '15 at 14:16














              • 1




                Where do you see that seamonkey is able to view those files? Add a detailed description please.
                – guntbert
                Mar 19 '15 at 14:10










              • Please install this program, after that from "File" menu choose "open file..." and choose your .msg file.
                – Davidgh
                Mar 19 '15 at 14:16








              1




              1




              Where do you see that seamonkey is able to view those files? Add a detailed description please.
              – guntbert
              Mar 19 '15 at 14:10




              Where do you see that seamonkey is able to view those files? Add a detailed description please.
              – guntbert
              Mar 19 '15 at 14:10












              Please install this program, after that from "File" menu choose "open file..." and choose your .msg file.
              – Davidgh
              Mar 19 '15 at 14:16




              Please install this program, after that from "File" menu choose "open file..." and choose your .msg file.
              – Davidgh
              Mar 19 '15 at 14:16











              0














              You can use ruby-msg ruby gem for that purposes. So:





              1. Install ruby and rubygems:



                # apt-get install rubygems gem



              2. Install the gem:



                # gem install ruby-msg



              3. Then use the "mapitool" utility:



                $ mapitool -i test.msg


                In some cases you can sporadically get the exception:



                /usr/local/share/gems/gems/ruby-msg-1.5.2/lib/mapi/mime.rb:109:in `join': incompatible character encodings: UTF-8 and ASCII-8BIT (Encoding::CompatibilityError)


                So just fix the following file lib/mapi/mime.rb with the following regexp:



                sed 's/part.to_s(opts)/part.to_s(opts).encode("UTF-8", :invalid=>:replace, :undef => :replace, :replace => "")/' -i /usr/local/share/gems/gems/ruby-msg-1.5.2/lib/mapi/mime.rb







              share|improve this answer


























                0














                You can use ruby-msg ruby gem for that purposes. So:





                1. Install ruby and rubygems:



                  # apt-get install rubygems gem



                2. Install the gem:



                  # gem install ruby-msg



                3. Then use the "mapitool" utility:



                  $ mapitool -i test.msg


                  In some cases you can sporadically get the exception:



                  /usr/local/share/gems/gems/ruby-msg-1.5.2/lib/mapi/mime.rb:109:in `join': incompatible character encodings: UTF-8 and ASCII-8BIT (Encoding::CompatibilityError)


                  So just fix the following file lib/mapi/mime.rb with the following regexp:



                  sed 's/part.to_s(opts)/part.to_s(opts).encode("UTF-8", :invalid=>:replace, :undef => :replace, :replace => "")/' -i /usr/local/share/gems/gems/ruby-msg-1.5.2/lib/mapi/mime.rb







                share|improve this answer
























                  0












                  0








                  0






                  You can use ruby-msg ruby gem for that purposes. So:





                  1. Install ruby and rubygems:



                    # apt-get install rubygems gem



                  2. Install the gem:



                    # gem install ruby-msg



                  3. Then use the "mapitool" utility:



                    $ mapitool -i test.msg


                    In some cases you can sporadically get the exception:



                    /usr/local/share/gems/gems/ruby-msg-1.5.2/lib/mapi/mime.rb:109:in `join': incompatible character encodings: UTF-8 and ASCII-8BIT (Encoding::CompatibilityError)


                    So just fix the following file lib/mapi/mime.rb with the following regexp:



                    sed 's/part.to_s(opts)/part.to_s(opts).encode("UTF-8", :invalid=>:replace, :undef => :replace, :replace => "")/' -i /usr/local/share/gems/gems/ruby-msg-1.5.2/lib/mapi/mime.rb







                  share|improve this answer












                  You can use ruby-msg ruby gem for that purposes. So:





                  1. Install ruby and rubygems:



                    # apt-get install rubygems gem



                  2. Install the gem:



                    # gem install ruby-msg



                  3. Then use the "mapitool" utility:



                    $ mapitool -i test.msg


                    In some cases you can sporadically get the exception:



                    /usr/local/share/gems/gems/ruby-msg-1.5.2/lib/mapi/mime.rb:109:in `join': incompatible character encodings: UTF-8 and ASCII-8BIT (Encoding::CompatibilityError)


                    So just fix the following file lib/mapi/mime.rb with the following regexp:



                    sed 's/part.to_s(opts)/part.to_s(opts).encode("UTF-8", :invalid=>:replace, :undef => :replace, :replace => "")/' -i /usr/local/share/gems/gems/ruby-msg-1.5.2/lib/mapi/mime.rb








                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Dec 19 '18 at 12:40









                  Малъ Скрылевъ

                  224213




                  224213

















                      protected by Community Mar 11 '16 at 13:46



                      Thank you for your interest in this question.
                      Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



                      Would you like to answer one of these unanswered questions instead?



                      Popular posts from this blog

                      flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                      Mangá

                      Eduardo VII do Reino Unido