Scroll to navigation

MSGCONVERT(1p) User Contributed Perl Documentation MSGCONVERT(1p)


msgconvert - Convert Outlook .msg files to mbox format


msgconvert [options] <file.msg>...

msgconvert --outfile <outfile> <file.msg>

    --mbox <file>      deliver messages to mbox file <file>
    --outfile <oufile> write message to <outfile> or - for STDOUT
    --verbose          be verbose
    --help             help message


    Deliver to the given mbox file instead of creating individual .eml
    Writes the message into the outfile instead of individual .eml files. For
    STDOUT "-" can be used as outfile. This option cannot be used together with
    multiple <file.msg> instances.
    Print information about skipped parts of the .msg file.
    Print a brief help message.


This program will convert the messages contained in the Microsoft Outlook files <file.msg>... to message/rfc822 files with extension .eml. Alternatively, if the --mbox option is present, all messages will be put in the given mbox file. This program will complain about unrecognized OLE parts in the input files on stderr.


The program will not check whether output files already exist. Also, if you feed it "foo.MSG" and "foo.msg", you'll end up with one "foo.eml", containing one of the messages.

Not all data that's in the .MSG file is converted. There simply are some parts whose meaning escapes me. One of these must contain the date the message was sent, for example. Formatting of text messages will also be lost. YMMV.


Matijs van Zuijlen, ""


Copyright 2002--2020 by Matijs van Zuijlen

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

2022-01-28 perl v5.32.1