5 void imap_cleanup_function(void);
6 void imap_greeting(void);
7 void imap_command_loop(void);
8 int imap_grabroom(char *returned_roomname, char *foldername);
9 void imap_free_transmitted_message(void);
16 int selected; /* set to 1 if in the SELECTED state */
17 int readonly; /* mailbox is open read only */
18 int num_msgs; /* Number of messages being mapped */
21 char *transmitted_message; /* for APPEND command... */
22 size_t transmitted_length;
26 * values of 'authstate'
30 imap_as_expecting_username,
31 imap_as_expecting_password
34 /* Flags for the above struct. Note that some of these are for internal use,
35 * and are not to be reported to IMAP clients.
37 #define IMAP_ANSWERED 1
38 #define IMAP_FLAGGED 2
39 #define IMAP_DELETED 4
43 #define IMAP_MASK_SETABLE 0x1f
44 #define IMAP_MASK_SYSTEM 0xe0
46 #define IMAP_SELECTED 32 /* internal */
49 #define IMAP ((struct citimap *)CtdlGetUserData(SYM_IMAP))
52 * When loading arrays of message ID's into memory, increase the buffer to
53 * hold this many additional messages instead of calling realloc() each time.
55 #define REALLOC_INCREMENT 100