Ticket #334: outlook_msg.patch
File outlook_msg.patch, 1.1 KB (added by , 16 years ago) |
---|
-
.cc
old new 388 388 cout << "\"" << cmd << "\" failed - skipping\n"; 389 389 return; 390 390 } 391 } else if (mimetype == "application/vnd.ms-outlook") { 392 string cmd = "msg2txt.pl " + shell_protect(file) + " | strings"; 393 try { 394 dump = stdout_to_string(cmd); 395 } catch (ReadError) { 396 cout << "\"" << cmd << "\" failed - skipping\n"; 397 return; 398 } 391 399 } else if (mimetype == "application/vnd.ms-works") { 392 400 // wps2text produces UTF-8 output from the sample files I've tested. 393 401 string cmd = "wps2text " + shell_protect(file); … … 797 805 mime_map["xlt"] = "application/vnd.ms-excel"; // Excel template 798 806 mime_map["ppt"] = "application/vnd.ms-powerpoint"; 799 807 mime_map["pps"] = "application/vnd.ms-powerpoint"; // Powerpoint slideshow 808 mime_map["msg"] = "application/vnd.ms-outlook"; //Outlook .msg 800 809 // Perl: 801 810 mime_map["pl"] = "text/x-perl"; 802 811 mime_map["pm"] = "text/x-perl";