diff options
author | Brendan Cully <brendan@kublai.com> | 2005-12-19 17:07:59 +0000 |
---|---|---|
committer | Brendan Cully <brendan@kublai.com> | 2005-12-19 17:07:59 +0000 |
commit | a259c5dfc7d11f75f92a0df83adce90273b0b1c6 (patch) | |
tree | cf91c0694673ce755fe5db8db6f22e12da6a157f /imap/imap_private.h | |
parent | 470b4ca950e1c63874c7b173efd96a03c5e1b1e2 (diff) |
Replace imap_parse_list_response with a proper untagged response handler.
Diffstat (limited to 'imap/imap_private.h')
-rw-r--r-- | imap/imap_private.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/imap/imap_private.h b/imap/imap_private.h index 71aab69c..35311424 100644 --- a/imap/imap_private.h +++ b/imap/imap_private.h @@ -162,6 +162,16 @@ typedef struct unsigned int unseen; } IMAP_STATUS; +typedef struct +{ + char* name; + + char delim; + /* if we end up storing a lot of these we could turn this into a bitfield */ + unsigned char noselect; + unsigned char noinferiors; +} IMAP_LIST; + /* IMAP command structure */ typedef struct { @@ -229,8 +239,6 @@ void imap_mboxcache_free (IMAP_DATA* idata); int imap_make_msg_set (IMAP_DATA* idata, BUFFER* buf, int flag, int changed); int imap_open_connection (IMAP_DATA* idata); IMAP_DATA* imap_conn_find (const ACCOUNT* account, int flags); -int imap_parse_list_response(IMAP_DATA* idata, char** name, int* noselect, - int* noinferiors, char* delim); int imap_read_literal (FILE* fp, IMAP_DATA* idata, long bytes, progress_t*); void imap_expunge_mailbox (IMAP_DATA* idata); void imap_logout (IMAP_DATA* idata); |