-int imap_create_mailbox (IMAP_DATA* idata, char* mailbox);
-int imap_rename_mailbox (IMAP_DATA* idata, IMAP_MBOX* mx, const char* newname);
-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);
-void imap_expunge_mailbox (IMAP_DATA* idata);
-int imap_reconnect (CONTEXT* ctx);
-void imap_logout (IMAP_DATA* idata);
+int imap_create_mailbox (IMAP_DATA * idata, char *mailbox);
+int imap_rename_mailbox (IMAP_DATA * idata, IMAP_MBOX * mx,
+ const char *newname);
+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);
+void imap_expunge_mailbox (IMAP_DATA * idata);
+int imap_reconnect (CONTEXT * ctx);
+void imap_logout (IMAP_DATA * idata);
+int imap_sync_message (IMAP_DATA*, HEADER*, BUFFER*, int*);