message-part-data.h revision 6407243c0b7340dd7b53b96bcb8e6b0e1acdb104
#ifndef MESSAGE_PART_DATA_H
#define MESSAGE_PART_DATA_H
#include "message-part.h"
#define MESSAGE_PART_DEFAULT_CHARSET "us-ascii"
struct message_header_line;
struct message_part_param {
const char *name;
const char *value;
};
struct message_part_envelope {
const char *in_reply_to, *message_id;
};
struct message_part_data {
const char *content_type, *content_subtype;
const struct message_part_param *content_type_params;
unsigned int content_type_params_count;
const char *content_transfer_encoding;
const char *content_id;
const char *content_description;
const char *content_disposition;
const struct message_part_param *content_disposition_params;
unsigned int content_disposition_params_count;
const char *content_md5;
const char *const *content_language;
const char *content_location;
struct message_part_envelope *envelope;
};
extern const char *message_part_envelope_headers[];
/*
*
*/
chaset "us-ascii" and content-tranfer-encoding "7bit" */
/* Returns TRUE if this message part has a filename. The filename is
returned in filename_r. */
const char **filename_r);
/*
* Header parsing
*/
/* Update envelope data based from given header field */
struct message_part_envelope **_data,
struct message_header_line *hdr);
/* Parse a single header. Note that this modifies part->context. */
struct message_part *part,
struct message_header_line *hdr);
#endif