#define DEBUG 1
#define FATAL 2
#define HOLD 3
void* emalloc(ulong n);
void* erealloc(void *v, ulong n);
char* estrdup(char *s);
int error(int level, char *format, ... );
int printm(Message *m,int t);
int printmsg(Message *m,int t);
int printbox(Mailbox *b);
Mailbox* newbox(char *f);
Mailbox* blookup(Mailbox *list, char *name);
Mailbox* btofront(Mailbox *list, Mailbox *new);
Mailbox* btoend(Mailbox *list, Mailbox *new);
Message* newmsg(vlong start);
Message* mtofront(Message *list, Message *new);
Message* mtoend(Message *list, Message *new);
Message* mlookup(Message *list, int id);
Message* ptofront(Message *list, Message *new);
Message* ptoend(Message *list, Message *new);
Message* plookup(Message *list, int id);
void freemime(Mime *m);
void freem(Message *m);
void freemlist(Message *list);
void freeplist(Message *list);
Message* delm(Message *list, int id);
Message* delp(Message *list, int id);
|