commit 5a056f615fdd08111687d6b388fa3f3698be1c22 Author: Oswald Buddenhagen <o...@kde.org> Date: Sat Feb 6 10:32:10 2010 +0100
some more error reporting relating malformed messages src/sync.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/sync.c b/src/sync.c index db1caec..b1c4a46 100644 --- a/src/sync.c +++ b/src/sync.c @@ -253,6 +253,8 @@ msg_fetched( int sts, void *aux ) } } /* invalid message */ + warn( "Warning: message %d from %s has incomplete header.\n", + vars->msg->uid, str_ms[1-t] ); free( fmap ); return vars->cb( SYNC_NOGOOD, 0, vars ); } @@ -333,6 +335,10 @@ msg_stored( int sts, int uid, void *aux ) return vars->cb( SYNC_OK, uid, vars ); case DRV_CANCELED: return vars->cb( SYNC_CANCELED, 0, vars ); + case DRV_MSG_BAD: + warn( "Warning: %s refuses to store message %d from %s.\n", + str_ms[t], vars->msg->uid, str_ms[1-t] ); + return vars->cb( SYNC_NOGOOD, 0, vars ); case DRV_STORE_BAD: return vars->cb( SYNC_BAD(t), 0, vars ); default: ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ isync-devel mailing list isync-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/isync-devel