소스 검색

- workaround imap server bug: lock files are no mailboxes

Oswald Buddenhagen 22 년 전
부모
커밋
39446bbef9
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/imap.c

+ 2 - 0
src/imap.c

@@ -505,6 +505,8 @@ imap_exec (imap_t * imap, const char *fmt, ...)
 		if (memcmp (arg, global.folder, l))
 		    goto next;
 		arg += l;
+		if (!memcmp (arg + strlen (arg) - 5, ".lock", 5))
+		    goto next;
 		for (box = boxes; box; box = box->next)
 		    if (!strcmp (box->box, arg))
 			goto next;