plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

a.h (741B)


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