-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbm.h
61 lines (51 loc) · 1.42 KB
/
bm.h
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
50
51
52
53
54
55
56
57
58
59
60
61
#ifndef _KA9Q_BM_H
#define _KA9Q_BM_H
/* bm.h -- definitions for bmutil.c that aren't included elsewhere */
#include "service/smtp/smtp.h"
#include "mailbox.h"
/* Header types */
#define NOHEADER -1
#define APPROVED 0
#define FROM 1
#define TO 2
#define DATE 3
#define MSGID 4
#define SUBJECT 5
#define RECEIVED 6
#define SENDER 7
#define REPLYTO 8
#define STATUS 9
#define BBSTYPE 10
#define XFORWARD 11
#define CC 12
#define RRECEIPT 13
#define APPARTO 14
#define ERRORSTO 15
#define ORGANIZATION 17
#define UNKNOWN 18
/* number of columns and lines on a standard display, e.g. vt100 */
#define MAXCOL 80
#define MAXLIN 24
/* message status */
#define BM_DELETE 1
#define BM_READ 2
#define BM_FORWARDED 4
#define BM_NLET 200 /* default size of letter array */
#define SLINELEN 64
#define LINELEN 256
extern unsigned Maxlet; /* max messages */
extern char *kfgets();
extern char *Hdrs[];
void scanmail(struct mbx *m);
int msgtofile(struct mbx *m,int msg,kFILE *tfile,int noheader);
int dolistnotes(int argc,char *argv[],void *p);
int isarea(char *name);
int dodelmsg(int argc,char *argv[],void *p);
int doreadmsg(int argc,char *argv[],void *p);
int doreadnext(int argc,char *argv[],void *p);
int mbx_reply(int argc,char *argv[],struct mbx *m,struct list **cclist,char **rhdr);
int closenotes(struct mbx *m);
long isnewprivmail(struct mbx *m);
int htype(char *s);
char *getaddress(char *string,int cont);
#endif /* _KA9Q_BM_H */