* die crispin die
[citadel.git] / citadel / serv_imap.h
1 /* $Id$ 
2  */
3
4 extern long SYM_IMAP;
5
6
7 void imap_cleanup_function(void);
8 void imap_greeting(void);
9 void imap_command_loop(void);
10
11
12 struct citimap {
13         int selected;           /* set to 1 if in the SELECTED state */
14         int readonly;           /* mailbox is open read only */
15         int num_msgs;           /* Number of messages being mapped */
16         long *msgids;
17         unsigned int *flags;
18 };
19
20 /* Flags for the above struct.  Note that some of these are for internal use,
21  * and are not to be reported to IMAP clients.
22  */
23 #define IMAP_ANSWERED   1
24 #define IMAP_FLAGGED    2
25 #define IMAP_DELETED    4
26 #define IMAP_DRAFT      8
27 #define IMAP_SEEN       16
28 #define IMAP_FETCHED    32      /* internal */
29
30
31 #define IMAP ((struct citimap *)CtdlGetUserData(SYM_IMAP))