Ver código fonte

actually implement maildir_get_uidnext()

the assumption was that this wouldn't be needed, as maildir_store_msg()
reliably delivers a UID. however, if we crash right before the callback
can record that UID, we'd still use OPEN_FIND in the next run, which
requires the saved next UID.
Oswald Buddenhagen 5 anos atrás
pai
commit
83adb9a39b
1 arquivos alterados com 4 adições e 2 exclusões
  1. 4 2
      src/drv_maildir.c

+ 4 - 2
src/drv_maildir.c

@@ -1325,9 +1325,11 @@ maildir_open_box( store_t *gctx,
 }
 
 static int
-maildir_get_uidnext( store_t *gctx ATTR_UNUSED )
+maildir_get_uidnext( store_t *gctx )
 {
-	return 0;
+	maildir_store_t *ctx = (maildir_store_t *)gctx;
+
+	return ctx->nuid;
 }
 
 static xint