📄 mime.h
字号:
#ifndef __MIME_H__
#define __MIME_H__
#ifdef __cplusplus
extern "C" {
#endif
#undef MIN
#undef MAX
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "parse.h"
#include "mailbox.h"
struct mime_part {
char type[64];
char subtype[64];
char parameter[128];
char encoding[64];
int attachment;
unsigned int pos;
int len;
};
char* eml_mime_encode_base64 (char *, int *,int);
char* eml_mime_decode_base64 (char *, int *);
char *eml_mime_decode_quoted_printable (char *message, int *length);
char* encode_uu (char *);
char* decode_uu (char *);
int eml_mime_detect (char *message);
char *eml_mime_get_part (char *message, int *len, struct mime_part *tmp);
int eml_mime_parse_content_type (char *content_type, char *type, char *subtype, char *parameter);
int eml_mime_get_parameter_value (char *parameter, char *in_name, char *out);
char *eml_mime_get_boundary(void);
int eml_mime_insert_part(char **message, int index, char *boundary, char *file);
#ifdef __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -