Browse Source

add CR after TUID during LF => CRLF conversion

wip/maildir-uid-dupes-test
Oswald Buddenhagen 14 years ago
parent
commit
296ac0364c
  1. 4
      src/sync.c

4
src/sync.c

@ -253,7 +253,7 @@ msg_fetched( int sts, void *aux )
free( fmap );
return vars->cb( SYNC_NOGOOD, 0, vars );
oke:
extra += 8 + TUIDL + 1 + (tcr && hcrs);
extra += 8 + TUIDL + 1 + (tcr && (!scr || hcrs));
}
if (tcr != scr) {
for (; i < len; i++) {
@ -294,7 +294,7 @@ msg_fetched( int sts, void *aux )
buf += 8;
memcpy( buf, vars->srec->tuid, TUIDL );
buf += TUIDL;
if (tcr && hcrs)
if (tcr && (!scr || hcrs))
*buf++ = '\r';
*buf++ = '\n';
i = ebreak;

Loading…
Cancel
Save