#ifndef MAIL_H #define MAIL_H #include <time.h> #include "db.h" extern time_t next_mail_clear; struct mail_struct { OBJ *from; time_t date; time_t rdate; int flags; char *message; /* NULL if unused entry */ struct mail_struct *next; }; typedef struct mail_struct MAIL; /* The following are flags for the mdb_struct */ #define MF_READ 0x1 #define MF_NEW 0x2 #define MF_MAILLIST 0x4 #define MF_PROTECTED 0x8 struct mlist_struct { char *name; OBJ **members; time_t last_post; struct mlist_struct *next; }; typedef struct mlist_struct MLIST; #endif /* MAIL_H */