diff src/msg.cpp @ 310:a6df6ffc3ff5

add sent_date to .msg output format
author Carl Byington <carl@five-ten-sg.com>
date Thu, 06 May 2010 13:17:52 -0700
parents 4fd5197aacc2
children 0c42a22f88fc
line wrap: on
line diff
--- a/src/msg.cpp	Mon Dec 14 22:19:50 2009 -0800
+++ b/src/msg.cpp	Thu May 06 13:17:52 2010 -0700
@@ -117,6 +117,14 @@
 }
 
 
+static void string_property(GsfOutfile *out, property_list &prop, uint32_t tag, const char* charset, FILETIME *contents);
+static void string_property(GsfOutfile *out, property_list &prop, uint32_t tag, const char* charset, FILETIME *contents) {
+    if (contents) {
+        string_property(out, prop, tag, (char *)contents, sizeof(FILETIME));
+    }
+}
+
+
 static void string_property(GsfOutfile *out, property_list &prop, uint32_t tag, const char* charset, pst_string &contents);
 static void string_property(GsfOutfile *out, property_list &prop, uint32_t tag, const char* charset, pst_string &contents) {
     if (contents.str) {
@@ -235,6 +243,7 @@
     GsfOutfile *out = GSF_OUTFILE (output);
     string_property(out, prop_list, 0x001A001E, item->ascii_type);
     string_property(out, prop_list, 0x0037001E, body_charset, item->subject);
+    string_property(out, prop_list, 0x00390040,               email.sent_date);
     strin0_property(out, prop_list, 0x003B0102, body_charset, email.outlook_sender);
     string_property(out, prop_list, 0x003D001E, string(""));
     string_property(out, prop_list, 0x0040001E, body_charset, email.outlook_received_name1);