unscrew lf=>crlf conversion and tuid insertion

This commit is contained in:
Oswald Buddenhagen 2006-03-21 17:50:57 +00:00
parent 16eaf903db
commit bdcc285403

View File

@ -239,7 +239,7 @@ copy_msg( store_t *ctx[], int t, message_t *tmsg, const char *tuid, int *uid )
if (scr > tcr) if (scr > tcr)
crd = -1; crd = -1;
else if (scr < tcr) else if (scr < tcr)
crd = 1; cra = 1;
extra = 0, i = 0; extra = 0, i = 0;
if (tuid) { if (tuid) {
extra += 8 + TUIDL + 1 + tcr; extra += 8 + TUIDL + 1 + tcr;
@ -251,8 +251,8 @@ copy_msg( store_t *ctx[], int t, message_t *tmsg, const char *tuid, int *uid )
extra += crd; extra += crd;
else if (c == '\n') { else if (c == '\n') {
extra += cra; extra += cra;
if (i - 2 + !scr == start) { if (i - 1 - scr == start) {
sbreak = ebreak = i - 2 + !scr; // precalc this! sbreak = ebreak = i - 1 - scr;
goto oke; goto oke;
} }
if (!memcmp( fmap + start, "X-TUID: ", 8 )) { if (!memcmp( fmap + start, "X-TUID: ", 8 )) {