comparison 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
comparison
equal deleted inserted replaced
309:4fd5197aacc2 310:a6df6ffc3ff5
112 p.tag = tag; 112 p.tag = tag;
113 p.flags = 0x6; // make all the properties writable 113 p.flags = 0x6; // make all the properties writable
114 p.length = size; 114 p.length = size;
115 p.reserved = 0; 115 p.reserved = 0;
116 prop.push_back(p); 116 prop.push_back(p);
117 }
118
119
120 static void string_property(GsfOutfile *out, property_list &prop, uint32_t tag, const char* charset, FILETIME *contents);
121 static void string_property(GsfOutfile *out, property_list &prop, uint32_t tag, const char* charset, FILETIME *contents) {
122 if (contents) {
123 string_property(out, prop, tag, (char *)contents, sizeof(FILETIME));
124 }
117 } 125 }
118 126
119 127
120 static void string_property(GsfOutfile *out, property_list &prop, uint32_t tag, const char* charset, pst_string &contents); 128 static void string_property(GsfOutfile *out, property_list &prop, uint32_t tag, const char* charset, pst_string &contents);
121 static void string_property(GsfOutfile *out, property_list &prop, uint32_t tag, const char* charset, pst_string &contents) { 129 static void string_property(GsfOutfile *out, property_list &prop, uint32_t tag, const char* charset, pst_string &contents) {
233 nzi_property(prop_list, 0x0E01000B, 0x6, email.delete_after_submit); 241 nzi_property(prop_list, 0x0E01000B, 0x6, email.delete_after_submit);
234 int_property(prop_list, 0x0E070003, 0x6, item->flags); 242 int_property(prop_list, 0x0E070003, 0x6, item->flags);
235 GsfOutfile *out = GSF_OUTFILE (output); 243 GsfOutfile *out = GSF_OUTFILE (output);
236 string_property(out, prop_list, 0x001A001E, item->ascii_type); 244 string_property(out, prop_list, 0x001A001E, item->ascii_type);
237 string_property(out, prop_list, 0x0037001E, body_charset, item->subject); 245 string_property(out, prop_list, 0x0037001E, body_charset, item->subject);
246 string_property(out, prop_list, 0x00390040, email.sent_date);
238 strin0_property(out, prop_list, 0x003B0102, body_charset, email.outlook_sender); 247 strin0_property(out, prop_list, 0x003B0102, body_charset, email.outlook_sender);
239 string_property(out, prop_list, 0x003D001E, string("")); 248 string_property(out, prop_list, 0x003D001E, string(""));
240 string_property(out, prop_list, 0x0040001E, body_charset, email.outlook_received_name1); 249 string_property(out, prop_list, 0x0040001E, body_charset, email.outlook_received_name1);
241 string_property(out, prop_list, 0x0042001E, body_charset, email.outlook_sender_name); 250 string_property(out, prop_list, 0x0042001E, body_charset, email.outlook_sender_name);
242 string_property(out, prop_list, 0x0044001E, body_charset, email.outlook_recipient_name); 251 string_property(out, prop_list, 0x0044001E, body_charset, email.outlook_recipient_name);