isync

mailbox synchronization program
git clone https://git.code.sf.net/p/isync/isync
Log | Files | Refs | README | LICENSE

commit 2f0fbcd3068da05056107a88f58c92d75bb213c6
parent 03b3b566f1b108066294cc73dff8bf1a06b3ae91
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date:   Wed, 11 Dec 2013 14:30:38 +0100

don't use UID EXPUNGE unless trashing

a simple CLOSE is way more efficient, so use it if no adverse effects
can come from it.

Diffstat:
Msrc/drv_imap.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/drv_imap.c b/src/drv_imap.c @@ -2009,7 +2009,7 @@ imap_close( store_t *gctx, { imap_store_t *ctx = (imap_store_t *)gctx; - if (CAP(UIDPLUS)) { + if (ctx->gen.conf->trash && CAP(UIDPLUS)) { struct imap_cmd_refcounted_state *sts = imap_refcounted_new_state( cb, aux ); message_t *msg, *fmsg, *nmsg; int bl;