blob: 3c81deb0b91eb9b1bcbe286cedcc555af02016bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#include <u.h>
#include <libc.h>
#include <bio.h>
#include <auth.h>
#include <thread.h>
#include <fcall.h>
#include <plumb.h>
#include <9p.h>
enum
{
STACK = 8192
};
#include "box.h"
#include "sx.h"
#include "imap.h"
#include "fs.h"
void mailthreadinit(void);
void mailthread(void (*fn)(void*), void*);
void warn(char*, ...);
#define esmprint smprint
#define emalloc(n) mallocz(n, 1)
#define erealloc realloc
#define estrdup strdup
enum
{
NoEncoding,
QuotedPrintable,
QuotedPrintableU,
Base64,
};
char* decode(int, char*, int*);
char* tcs(char*, char*);
char* unrfc2047(char*);
extern Imap *imap;
|