message-size.c revision 3ed5b60132508928e82d685d901ad3e6f95b0df0
/* Copyright (C) 2002 Timo Sirainen */
#include "lib.h"
#include "istream.h"
#include "message-parser.h"
#include "message-size.h"
{
const unsigned char *msg;
missing_cr_count = 0; startpos = 0;
if (msg[i] != '\n')
continue;
/* missing CR */
}
/* no headers at all */
break;
}
/* \n\n or \n\r\n - end of headers */
break;
}
}
if (i < size) {
/* end of header */
startpos = i+1;
break;
}
/* leave the last two characters, they may be \r\n */
}
}
{
const unsigned char *msg;
int cr;
cr = 0;
missing_cr_count = 0; startpos = 0;
while (max_virtual_size != 0 &&
cr = 0;
if (msg[i] == '\n') {
/* missing CR */
if (max_virtual_size == 0) {
cr = 2;
break;
}
}
/* increase after making sure we didn't break
at virtual \r */
}
}
cr = 1;
/* leave the last character, it may be \r */
startpos = 1;
}
}
const struct message_size *src)
{
}