commit 83adb9a39ba36660a6643799550e3e3f61436100 Author: Oswald Buddenhagen <o...@users.sf.net> Date: Wed Jul 22 14:18:14 2020 +0200
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 _______________________________________________ isync-devel mailing list isync-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/isync-devel