commit 17c9cc11407ace9e84cf1135aad3d4bf8eb2b6d7 Author: Oswald Buddenhagen <o...@users.sf.net> Date: Wed Aug 21 10:38:15 2024 +0200
improve reporting of failure to open previously present mailbox tell explicitly that the box cannot be opened _any more_, so it's clear that Delete, rather than Create, would apply. fwiw, it would be preferable to actually differentiate between absent mailboxes and ones that fail to open for other reasons. but unfortunately, IMAP doesn't report the difference (gmail has a non-standard [NONEXISTENT] response code, though). src/sync.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sync.c b/src/sync.c index fa74d88..405d98f 100644 --- a/src/sync.c +++ b/src/sync.c @@ -440,12 +440,12 @@ box_confirmed2( sync_vars_t *svars, int t ) } if (svars->existing) { if (!(svars->chan->ops[t^1] & OP_REMOVE)) { - error( "Error: channel %s: %s box %s cannot be opened.\n", + error( "Error: channel %s: %s box %s cannot be opened anymore.\n", svars->chan->name, str_fn[t], svars->orig_name[t] ); goto bail; } if (svars->drv[t^1]->confirm_box_empty( svars->ctx[t^1] ) != DRV_OK) { - warn( "Warning: channel %s: %s box %s cannot be opened and %s box %s is not empty.\n", + warn( "Warning: channel %s: %s box %s cannot be opened anymore, and %s box %s is not empty.\n", svars->chan->name, str_fn[t], svars->orig_name[t], str_fn[t^1], svars->orig_name[t^1] ); goto done; } _______________________________________________ isync-devel mailing list isync-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/isync-devel