7 void imap_cleanup_function(void);
8 void imap_greeting(void);
9 void imap_command_loop(void);
10 int imap_grabroom(char *returned_roomname, char *foldername);
17 int selected; /* set to 1 if in the SELECTED state */
18 int readonly; /* mailbox is open read only */
19 int num_msgs; /* Number of messages being mapped */
25 * values of 'authstate'
29 imap_as_expecting_username,
30 imap_as_expecting_password
33 /* Flags for the above struct. Note that some of these are for internal use,
34 * and are not to be reported to IMAP clients.
36 #define IMAP_ANSWERED 1
37 #define IMAP_FLAGGED 2
38 #define IMAP_DELETED 4
42 #define IMAP_MASK_SETABLE 0x1f
43 #define IMAP_MASK_SYSTEM 0xe0
45 #define IMAP_SELECTED 32 /* internal */
48 #define IMAP ((struct citimap *)CtdlGetUserData(SYM_IMAP))