#define _IMAP_PRIVATE_H 1
#include <lib-sys/mutt_socket.h>
-#include <lib-ui/curses.h>
+#include <lib-ui/lib-ui.h>
#include "imap.h"
/* IMAP command structure */
typedef struct {
- char seq[SEQLEN + 1];
- char *buf;
- unsigned int blen;
int state;
+ char seq[SEQLEN + 1];
+ buffer_t buf;
} IMAP_COMMAND;
typedef struct {
CONNECTION *conn;
unsigned char state;
unsigned char status;
+ unsigned char isnew;
/* let me explain capstr: SASL needs the capability string (not bits).
* we have 3 options:
* 1. rerun CAPABILITY inside SASL function.
unsigned int seqno;
time_t lastread; /* last time we read a command for the server */
/* who knows, one day we may run multiple commands in parallel */
+
IMAP_COMMAND cmd;
/* The following data is all specific to the currently SELECTED mbox */