0

Is there any way for parsing the Outlook .msg files in PHP? My requirement is to parse an .msg file and convert each conversation(message) in it to separate files(Preferably .eml files).

Mahesh
  • 603
  • 1
  • 10
  • 22
  • According to http://forums.phpfreaks.com/topic/163537-parse-an-outlook-email/ the .msg file is binary. Good luck. – aynber Aug 02 '13 at 19:33
  • Finally used the perl script at http://www.matijs.net/software/msgconv and it worked perfect by converting all the messages in a conversation in an msg file to plain text – Mahesh Sep 29 '13 at 20:00

1 Answers1

3

Well, .msg files are "COM stuctured storage OLE2 compound documents", which probably means that it will be difficult to open it in PHP.

PHP does have a Windows COM extension, but I do not know if it can be used.

Sverri M. Olsen
  • 13,055
  • 3
  • 36
  • 52