#ifndef _IMAP_PRIVATE_H
#define _IMAP_PRIVATE_H 1
-#include <inttypes.h>
-
+#include <lib-sys/mutt_socket.h>
#include <lib-ui/curses.h>
#include "imap.h"
-#include <lib-sys/mutt_socket.h>
/* -- symbols -- */
#define IMAP_PORT 143
/* -- data structures -- */
typedef struct {
- unsigned int uid;
+ int uid;
char *path;
} IMAP_CACHE;
/* 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 {
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 */
unsigned int newMailCount;
IMAP_CACHE cache[IMAP_CACHE_LEN];
#ifdef USE_HCACHE
- unsigned long uid_validity;
+ long uid_validity;
#endif
/* all folder flags - system flags AND keywords */