1 #define MAXMAILS (1 << 14)
2 #define MAXHDRS (1 << 6)
3 #define MAXPATHLEN (1 << 12)
11 char *hdrs
[MAXHDRS
+ 1];
25 struct mail mails
[MAXMAILS
];
26 char path
[MAXPATHLEN
];
33 struct mbox
*mbox_alloc(char *filename
);
34 void mbox_free(struct mbox
*mbox
);
35 int mbox_inc(struct mbox
*mbox
);
36 int mbox_write(struct mbox
*mbox
);
38 int mail_head(struct mail
*mail
, char *dst
, int len
, char **hdrs
, int n
);
39 char *mail_hdr(struct mail
*mail
, char *hdr
);
40 char *mail_read(struct mail
*mail
, char *s
);
41 void mail_write(struct mail
*mail
, int fd
);
42 int hdr_len(char *hdr
);