From 83adb9a39ba36660a6643799550e3e3f61436100 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Wed, 22 Jul 2020 14:18:14 +0200 Subject: [PATCH] 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. --- src/drv_maildir.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/drv_maildir.c b/src/drv_maildir.c index 8d2d2a9..3c987a5 100644 --- a/src/drv_maildir.c +++ b/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