CVS commit by ossi:
no/empty mailbox name means INBOX
M +6 -2 main.c 1.62
--- isync/src/main.c #1.61:1.62
@@ -485,4 +485,6 @@ static void done_sync_dyn( int sts, void
static void done_sync( int sts, void *aux );
+#define nz(a,b) ((a)?(a):(b))
+
static void
sync_chans( main_vars_t *mvars, int ent )
@@ -579,4 +581,6 @@ sync_chans( main_vars_t *mvars, int ent
if (mvars->boxlist) {
if ((mvars->names[S] = strsep( &mvars->boxp, ",\n" ))) {
+ if (!*mvars->names[S])
+ mvars->names[S] = 0;
if (!mvars->list) {
mvars->names[M] = mvars->names[S];
@@ -584,5 +588,5 @@ sync_chans( main_vars_t *mvars, int ent
goto syncw;
}
- puts( mvars->names[S] );
+ puts( nz( mvars->names[S], "INBOX" ) );
goto syncmlx;
}
@@ -625,5 +629,5 @@ sync_chans( main_vars_t *mvars, int ent
goto syncml;
} else
- printf( "%s <=> %s\n", mvars->chan->boxes[M],
mvars->chan->boxes[S] );
+ printf( "%s <=> %s\n", nz(
mvars->chan->boxes[M], "INBOX" ), nz( mvars->chan->boxes[S], "INBOX" ) );
}
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel