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.
This commit is contained in:
parent
3814f19661
commit
3dcb393de2
|
@ -255,6 +255,7 @@ match_tuids( sync_vars_t *svars, int t )
|
||||||
debug( " -> new UID %d %s\n", tmsg->uid, diag );
|
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 );
|
Fprintf( svars->jfp, "%c %d %d %d\n", "<>"[t], srec->uid[M], srec->uid[S], tmsg->uid );
|
||||||
tmsg->srec = srec;
|
tmsg->srec = srec;
|
||||||
|
srec->msg[t] = tmsg;
|
||||||
ntmsg = tmsg->next;
|
ntmsg = tmsg->next;
|
||||||
srec->uid[t] = tmsg->uid;
|
srec->uid[t] = tmsg->uid;
|
||||||
srec->tuid[0] = 0;
|
srec->tuid[0] = 0;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user