00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef _MSFUNCS_H_
00024 #define _MSFUNCS_H_
00025
00026 #include <time.h>
00027 #include "../../str.h"
00028
00029 #define CT_TYPE 1
00030 #define CT_CHARSET 2
00031 #define CT_MSGR 4
00032
00033 #ifdef MSILO_TAG
00034 #undef MSILO_TAG
00035 #endif
00036 #define MSILO_TAG "msilo-HI4U-Ah0X-bZ98-"
00037
00038 typedef struct _content_type
00039 {
00040 str type;
00041 str charset;
00042 str msgr;
00043 } content_type_t;
00044
00046 int m_apo_escape(char*, int, char*, int);
00047
00049 int m_extract_content_type(char*, int, content_type_t*, int);
00050
00052 int m_build_headers(str *buf, str ctype, str contact, time_t date, str extra);
00053
00055 int m_build_body(str *body, time_t date, str msg, time_t sdate);
00056
00057 int ms_extract_time(str *time_str, int *time_val);
00058
00059 #endif
00060