소스 검색

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.
Oswald Buddenhagen 11 년 전
부모
커밋
2f0fbcd306
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/drv_imap.c

+ 1 - 1
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;