From 3dcb393de2b3a5202e96a61f997febfdf6e9d667 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Sat, 9 Nov 2013 11:42:09 +0100 Subject: [PATCH] set srec->msg[] when finding messages by tuid otherwise we would propagate phantom deletions. this affected only sync runs after an interruption while storing messages, so it went (mostly?) unnoticed. --- src/sync.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sync.c b/src/sync.c index 8a07551..05cc4b8 100644 --- a/src/sync.c +++ b/src/sync.c @@ -255,6 +255,7 @@ match_tuids( sync_vars_t *svars, int t ) debug( " -> new UID %d %s\n", tmsg->uid, diag ); Fprintf( svars->jfp, "%c %d %d %d\n", "<>"[t], srec->uid[M], srec->uid[S], tmsg->uid ); tmsg->srec = srec; + srec->msg[t] = tmsg; ntmsg = tmsg->next; srec->uid[t] = tmsg->uid; srec->tuid[0] = 0;