aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/upas/nfs/a.h
blob: bca2c96268ec22f8ef8318ea15b4dae3011fc1dc (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
43
44
45
46
47
48
49
#include <u.h>
#include <libc.h>
#include <bio.h>
#include <auth.h>
#include <thread.h>
#include <fcall.h>
#include <plumb.h>
#include <9p.h>
#include <ctype.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*, ...);

enum
{
	NoEncoding,
	QuotedPrintable,
	QuotedPrintableU,
	Base64
};

char*	decode(int, char*, int*);
char*	tcs(char*, char*);
char*	unrfc2047(char*);

extern Imap *imap;

#undef isnumber
#define isnumber	upas_isnumber

#define esmprint smprint
#define emalloc(n) mallocz(n, 1)
#define erealloc realloc
#define estrdup strdup

#pragma varargck type "$" Sx*
#pragma varargck type "Z" char*