msg.cpp File Reference

#include "define.h"
#include "msg.h"
#include <gsf/gsf-utils.h>
#include <gsf/gsf-input-stdio.h>
#include <gsf/gsf-infile.h>
#include <gsf/gsf-infile-stdio.h>
#include <gsf/gsf-output-stdio.h>
#include <gsf/gsf-outfile.h>
#include <gsf/gsf-outfile-msole.h>
#include <list>
#include <vector>
#include <string>
Include dependency graph for msg.cpp:

Go to the source code of this file.

Data Structures

struct  property

Typedefs

typedef list< propertyproperty_list

Functions

static void convert_8bit (pst_string &str, const char *charset)
 Convert str to an 8 bit charset if it is utf8, null strings are preserved.
static void empty_property (GsfOutfile *out, uint32_t tag)
static void string_property (GsfOutfile *out, property_list &prop, uint32_t tag, const char *contents, size_t size)
static void string_property (GsfOutfile *out, property_list &prop, uint32_t tag, FILE *fp)
static void string_property (GsfOutfile *out, property_list &prop, uint32_t tag, const char *charset, pst_string &contents)
static void strin0_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 string &contents)
static void string_property (GsfOutfile *out, property_list &prop, uint32_t tag, pst_binary &contents)
static void write_properties (GsfOutfile *out, property_list &prop, const guint8 *header, size_t hlen)
static void int_property (property_list &prop_list, uint32_t tag, uint32_t flags, uint32_t value)
static void i64_property (property_list &prop_list, uint32_t tag, uint32_t flags, FILETIME *value)
static void nzi_property (property_list &prop_list, uint32_t tag, uint32_t flags, uint32_t value)
void write_msg_email (char *fname, pst_item *item, pst_file *pst)

Typedef Documentation

typedef list<property> property_list

Definition at line 27 of file msg.cpp.


Function Documentation

static void convert_8bit ( pst_string str,
const char *  charset 
) [static]

Convert str to an 8 bit charset if it is utf8, null strings are preserved.

Parameters:
str reference to the mapi string of interest
charset pointer to the 8 bit charset to use

Definition at line 36 of file msg.cpp.

References pst_varbuf::b, DEBUG_ENT, DEBUG_HEXDUMPC, DEBUG_INFO, DEBUG_RET, pst_varbuf::dlen, pst_string::is_utf8, pst_vb_utf8to8bit(), pst_vballoc(), pst_vbgrow(), and pst_string::str.

Referenced by strin0_property(), and string_property().

Here is the call graph for this function:

static void empty_property ( GsfOutfile *  out,
uint32_t  tag 
) [static]

Definition at line 63 of file msg.cpp.

Referenced by write_msg_email().

static void i64_property ( property_list prop_list,
uint32_t  tag,
uint32_t  flags,
FILETIME value 
) [static]

Definition at line 181 of file msg.cpp.

References FILETIME::dwHighDateTime, and FILETIME::dwLowDateTime.

Referenced by write_msg_email().

static void int_property ( property_list prop_list,
uint32_t  tag,
uint32_t  flags,
uint32_t  value 
) [static]

Definition at line 170 of file msg.cpp.

Referenced by nzi_property(), and write_msg_email().

static void nzi_property ( property_list prop_list,
uint32_t  tag,
uint32_t  flags,
uint32_t  value 
) [static]

Definition at line 194 of file msg.cpp.

References int_property().

Referenced by write_msg_email().

Here is the call graph for this function:

static void strin0_property ( GsfOutfile *  out,
property_list prop,
uint32_t  tag,
const char *  charset,
pst_string contents 
) [static]

Definition at line 136 of file msg.cpp.

References convert_8bit(), pst_string::str, and string_property().

Referenced by write_msg_email().

Here is the call graph for this function:

static void string_property ( GsfOutfile *  out,
property_list prop,
uint32_t  tag,
pst_binary contents 
) [static]

Definition at line 151 of file msg.cpp.

References pst_binary::data, pst_binary::size, and string_property().

Here is the call graph for this function:

static void string_property ( GsfOutfile *  out,
property_list prop,
uint32_t  tag,
const string &  contents 
) [static]

Definition at line 145 of file msg.cpp.

References string_property().

Here is the call graph for this function:

static void string_property ( GsfOutfile *  out,
property_list prop,
uint32_t  tag,
const char *  charset,
pst_string contents 
) [static]

Definition at line 127 of file msg.cpp.

References convert_8bit(), pst_string::str, and string_property().

Here is the call graph for this function:

static void string_property ( GsfOutfile *  out,
property_list prop,
uint32_t  tag,
FILE *  fp 
) [static]

Definition at line 99 of file msg.cpp.

static void string_property ( GsfOutfile *  out,
property_list prop,
uint32_t  tag,
const char *  contents,
size_t  size 
) [static]

Definition at line 73 of file msg.cpp.

Referenced by strin0_property(), string_property(), and write_msg_email().

void write_msg_email ( char *  fname,
pst_item item,
pst_file pst 
)

Definition at line 199 of file msg.cpp.

References pst_item_contact::address1, pst_item_contact::address1_transport, pst_item::ascii_type, pst_item::attach, pst_item_email::bcc_address, pst_item::body, pst_item_email::cc_address, pst_item::contact, pst_item_email::conversation_index, pst_binary::data, pst_item_attach::data, DEBUG_ENT, DEBUG_INFO, DEBUG_RET, pst_item_email::delete_after_submit, pst_item_email::delivery_report, pst_item::email, empty_property(), pst_item::file_as, pst_item_attach::filename1, pst_item_attach::filename2, pst_item::flags, pst_item_email::header, pst_item_email::htmlbody, i64_property(), pst_item_attach::i_id, pst_item_email::importance, pst_item_email::in_reply_to, int_property(), pst_item_email::messageid, pst_item_attach::method, pst_item_attach::mimetype, pst_item_attach::next, nzi_property(), pst_item_email::original_bcc, pst_item_email::original_cc, pst_item_email::original_sensitivity, pst_item_email::original_to, pst_item_email::outlook_normalized_subject, pst_item_email::outlook_received_name1, pst_item_email::outlook_recipient, pst_item_email::outlook_recipient2, pst_item_email::outlook_recipient_name, pst_item_email::outlook_search_key, pst_item_email::outlook_sender, pst_item_email::outlook_sender2, pst_item_email::outlook_sender_name, pst_item_email::outlook_sender_name2, pst_item_attach::position, pst_item_email::priority, pst_item_email::processed_subject, PST_ATTACH_EMBEDDED, pst_attach_to_file(), pst_default_charset(), pst_item_email::read_receipt, pst_item_email::recip2_access, pst_item_email::recip2_address, pst_item_email::recip_access, pst_item_email::recip_address, pst_item::record_key, pst_item_email::reply_requested, pst_item_email::reply_to, pst_item_email::return_path_address, pst_item_email::sender2_access, pst_item_email::sender2_address, pst_item_email::sender_access, pst_item_email::sender_address, pst_item_email::sensitivity, pst_item_email::sent_date, pst_item_email::sentto_address, pst_item_attach::sequence, pst_string::str, strin0_property(), string_property(), pst_item::subject, and write_properties().

Referenced by process().

Here is the call graph for this function:

static void write_properties ( GsfOutfile *  out,
property_list prop,
const guint8 *  header,
size_t  hlen 
) [static]

Definition at line 157 of file msg.cpp.

Referenced by write_msg_email().


Generated on 6 Jul 2016 for 'LibPst' by  doxygen 1.6.1