summary refs log tree commit diff
path: root/blaze822.h
blob: 15de6f5b59fabb3b47f6ffeb069f3e05cb6846d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdint.h>

struct message;

struct message *blaze822(char *file);
void blaze822_free(struct message *mesg);
char *blaze822_hdr_(struct message *mesg, const char *hdr, size_t len);
#define blaze822_hdr(mesg, hdr) blaze822_hdr_(mesg, "\0" hdr ":", 2+strlen((hdr)))

int blaze822_loop(int, char **, void (*)(char *));

time_t blaze822_date(char *);
char *blaze822_addr(char *, char **, char **);
int decode_rfc2047 (char *, char *, size_t);