2016-07-13 13:01:09 +00:00
|
|
|
struct message {
|
|
|
|
char *msg;
|
|
|
|
char *end;
|
|
|
|
char *body;
|
|
|
|
char *bodyend;
|
2016-07-13 13:52:39 +00:00
|
|
|
char *bodychunk;
|
2016-08-06 17:27:02 +00:00
|
|
|
char *orig_header;
|
2016-07-13 13:01:09 +00:00
|
|
|
};
|
2016-07-13 13:52:39 +00:00
|
|
|
|
2016-07-13 13:56:50 +00:00
|
|
|
// WSP = SP / HTAB
|
2016-07-13 13:52:39 +00:00
|
|
|
#define iswsp(c) (((c) == ' ' || (c) == '\t'))
|
2016-07-13 13:56:50 +00:00
|
|
|
|
2016-07-13 14:00:20 +00:00
|
|
|
#define isfws(c) (((unsigned char)(c) == ' ' || (unsigned char)(c) == '\t' || (unsigned char)(c) == '\n' || (unsigned char)(c) == '\r'))
|
|
|
|
|
2016-07-13 13:56:50 +00:00
|
|
|
// ASCII lowercase without alpha check (wrong for "@[\]^_")
|
|
|
|
#define lc(c) ((c) | 0x20)
|
2016-07-26 16:10:39 +00:00
|
|
|
|
|
|
|
void *mymemmem(const void *h0, size_t k, const void *n0, size_t l);
|