commit 6577bf3e6113962f464745c8d955f0194f773a8b
parent 1847a4e12df75e2cbc246b9e7b9e6008be5f1b00
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date: Sat, 27 Jul 2013 20:17:07 +0200
warn if we cannot find some messages by TUID
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/sync.c b/src/sync.c
@@ -221,6 +221,7 @@ match_tuids( sync_vars_t *svars, int t )
sync_rec_t *srec;
message_t *tmsg, *ntmsg = 0;
const char *diag;
+ int num_lost = 0;
for (srec = svars->srecs; srec; srec = srec->next) {
if (srec->status & S_DEAD)
@@ -247,6 +248,7 @@ match_tuids( sync_vars_t *svars, int t )
Fprintf( svars->jfp, "& %d %d\n", srec->uid[M], srec->uid[S] );
srec->flags = 0;
srec->tuid[0] = 0;
+ num_lost++;
continue;
mfound:
debug( " -> new UID %d %s\n", tmsg->uid, diag );
@@ -257,6 +259,8 @@ match_tuids( sync_vars_t *svars, int t )
srec->tuid[0] = 0;
}
}
+ if (num_lost)
+ warn( "Warning: lost track of %d %sed message(s)\n", num_lost, str_hl[t] );
}