Skipped 21 existing revision(s) on branch 'async'.
commit 080664619ed17bd9093e22a93ac21f5839b93561
Author: Oswald Buddenhagen <[email protected]>
Date: Sun Nov 14 23:16:32 2010 +0100
insert "separator comments" between driver entry points
... and fix one comment
src/drv_imap.c | 38 +++++++++++++++++++++++++++++++++++++-
1 files changed, 37 insertions(+), 1 deletions(-)
diff --git a/src/drv_imap.c b/src/drv_imap.c
index d8acc4f..d23c7f2 100644
--- a/src/drv_imap.c
+++ b/src/drv_imap.c
@@ -141,7 +141,7 @@ struct imap_cmd {
void *aux;
char *data;
int data_len;
- int uid; /* to identify fetch responses */
+ int uid; /* to identify fetch & search responses */
unsigned
create:1, /* create the mailbox if we get an error ...
*/
trycreate:1; /* ... but only if this is true or the
server says so. */
@@ -1124,6 +1124,8 @@ get_cmd_result( imap_store_t *ctx, struct imap_cmd *tcmd )
/* not reached */
}
+/******************* imap_cancel_store *******************/
+
static void
imap_cancel_store( store_t *gctx )
{
@@ -1145,6 +1147,8 @@ imap_cancel_store( store_t *gctx )
static store_t *unowned;
+/******************* imap_disown_store *******************/
+
static void
imap_disown_store( store_t *gctx )
{
@@ -1154,6 +1158,8 @@ imap_disown_store( store_t *gctx )
unowned = gctx;
}
+/******************* imap_own_store *******************/
+
static store_t *
imap_own_store( store_conf_t *conf )
{
@@ -1167,6 +1173,8 @@ imap_own_store( store_conf_t *conf )
return 0;
}
+/******************* imap_cleanup *******************/
+
static void
imap_cleanup( void )
{
@@ -1179,6 +1187,8 @@ imap_cleanup( void )
}
}
+/******************* imap_open_store *******************/
+
#ifdef HAVE_LIBSSL
static int
start_tls( imap_store_t *ctx )
@@ -1519,6 +1529,8 @@ imap_open_store( store_conf_t *conf,
cb( 0, aux );
}
+/******************* imap_prepare_paths *******************/
+
static void
imap_prepare_paths( store_t *gctx )
{
@@ -1526,12 +1538,16 @@ imap_prepare_paths( store_t *gctx )
gctx->msgs = 0;
}
+/******************* imap_prepare_opts *******************/
+
static void
imap_prepare_opts( store_t *gctx, int opts )
{
gctx->opts = opts;
}
+/******************* imap_select *******************/
+
static int
imap_select( store_t *gctx, int minuid, int maxuid, int *excs, int nexcs,
int (*cb)( int sts, void *aux ), void *aux )
@@ -1592,6 +1608,8 @@ imap_select( store_t *gctx, int minuid, int maxuid, int
*excs, int nexcs,
return cb( ret, aux );
}
+/******************* imap_fetch_msg *******************/
+
static int
imap_fetch_msg( store_t *ctx, message_t *msg, msg_data_t *data,
int (*cb)( int sts, void *aux ), void *aux )
@@ -1603,6 +1621,8 @@ imap_fetch_msg( store_t *ctx, message_t *msg, msg_data_t
*data,
msg->uid, (msg->status & M_FLAGS) ? "" : "FLAGS
" ), aux );
}
+/******************* imap_set_flags *******************/
+
static int
imap_make_flags( int flags, char *buf )
{
@@ -1653,6 +1673,8 @@ imap_set_flags( store_t *gctx, message_t *msg, int uid,
int add, int del,
return cb( ret, aux );
}
+/******************* imap_close *******************/
+
static int
imap_close( store_t *ctx,
int (*cb)( int sts, void *aux ), void *aux )
@@ -1660,6 +1682,8 @@ imap_close( store_t *ctx,
return cb( imap_exec_b( (imap_store_t *)ctx, 0, "CLOSE" ), aux );
}
+/******************* imap_trash_msg *******************/
+
static int
imap_trash_msg( store_t *gctx, message_t *msg,
int (*cb)( int sts, void *aux ), void *aux )
@@ -1671,6 +1695,8 @@ imap_trash_msg( store_t *gctx, message_t *msg,
msg->uid, ctx->prefix, gctx->conf->trash ), aux
);
}
+/******************* imap_store_msg *******************/
+
static int
imap_store_msg( store_t *gctx, msg_data_t *data, int to_trash,
int (*cb)( int sts, int uid, void *aux ), void *aux )
@@ -1719,6 +1745,8 @@ imap_store_msg( store_t *gctx, msg_data_t *data, int
to_trash,
return cb( DRV_OK, uid, aux );
}
+/******************* imap_find_msg *******************/
+
static int
imap_find_msg( store_t *gctx, const char *tuid,
int (*cb)( int sts, int uid, void *aux ), void *aux )
@@ -1736,6 +1764,8 @@ imap_find_msg( store_t *gctx, const char *tuid,
return cb( uid <= 0 ? DRV_MSG_BAD : DRV_OK, uid, aux );
}
+/******************* imap_list *******************/
+
static void
imap_list( store_t *gctx,
void (*cb)( int sts, void *aux ), void *aux )
@@ -1748,6 +1778,8 @@ imap_list( store_t *gctx,
cb( ret, aux );
}
+/******************* imap_cancel *******************/
+
static void
imap_cancel( store_t *gctx,
void (*cb)( int sts, void *aux ), void *aux )
@@ -1756,12 +1788,16 @@ imap_cancel( store_t *gctx,
cb( DRV_OK, aux );
}
+/******************* imap_commit *******************/
+
static void
imap_commit( store_t *gctx )
{
(void)gctx;
}
+/******************* imap_parse_store *******************/
+
imap_server_conf_t *servers, **serverapp = &servers;
static int
------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel