1 #define MAXMAILS (1 << 16)
2 #define MAXHDRS (1 << 6)
3 #define MAXPATHLEN (1 << 12)
11 char *hdrs
[MAXHDRS
+ 1];
23 struct mail mails
[MAXMAILS
];
24 char path
[MAXPATHLEN
];
31 struct mbox
*mbox_alloc(char *filename
);
32 void mbox_free(struct mbox
*mbox
);
33 int mbox_inc(struct mbox
*mbox
);
34 int mbox_write(struct mbox
*mbox
);
36 int mail_head(struct mail
*mail
, char *dst
, int len
, char **hdrs
, int n
);
37 char *mail_hdr(struct mail
*mail
, char *hdr
);
38 char *mail_read(struct mail
*mail
, char *s
, char *e
);
39 void mail_write(struct mail
*mail
, int fd
);
40 int hdr_len(char *hdr
);