commit ca72383fe947d70950ddfe110d033a158ac9a183 Author: Oswald Buddenhagen <o...@users.sf.net> Date: Thu Jul 16 13:08:29 2020 +0200
don't forget to skip dead messages on far side during expiration this is mostly theoretical, as at this point no updates to the message list can have actually happened. but it's future-proof and consistent with the near-side loop. src/sync.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sync.c b/src/sync.c index fc7cec6..c67ba12 100644 --- a/src/sync.c +++ b/src/sync.c @@ -1671,6 +1671,8 @@ box_loaded( int sts, message_t *msgs, int total_msgs, int recent_msgs, void *aux } } for (tmsg = svars->msgs[F]; tmsg; tmsg = tmsg->next) { + if (tmsg->status & M_DEAD) + continue; if ((srec = tmsg->srec) && (srec->status & S_PENDING) && !(tmsg->flags & F_DELETED)) alive++; } @@ -1705,6 +1707,8 @@ box_loaded( int sts, message_t *msgs, int total_msgs, int recent_msgs, void *aux } } for (tmsg = svars->msgs[F]; tmsg; tmsg = tmsg->next) { + if (tmsg->status & M_DEAD) + continue; if ((srec = tmsg->srec) && (srec->status & S_PENDING)) { nflags = tmsg->flags; if (!(nflags & F_DELETED)) { _______________________________________________ isync-devel mailing list isync-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/isync-devel