isync

mailbox synchronization program
git clone https://git.code.sf.net/p/isync/isync
Log | Files | Refs | README | LICENSE

commit 4d8575100d208129bc5d45e3968262415602ac04
parent 8844ff30632221490728c89a88572a86caa6a9aa
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date:   Sat, 12 Apr 2014 19:02:06 +0200

don't forget to reset message counts when skipping scan

amends b6949c64d2.

CCMAIL: 744259@bugs.debian.org

Diffstat:
Msrc/drv_maildir.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/drv_maildir.c b/src/drv_maildir.c @@ -1030,8 +1030,10 @@ maildir_load( store_t *gctx, int minuid, int maxuid, int newuid, int *excs, int ctx->excs = nfrealloc( excs, nexcs * sizeof(int) ); ctx->nexcs = nexcs; - if (ctx->fresh) + if (ctx->fresh) { + ctx->gen.count = ctx->gen.recent = 0; goto dontscan; + } if (maildir_scan( ctx, &msglist ) != DRV_OK) { cb( DRV_BOX_BAD, aux );