message-size.c revision 89a126810703c666309310d0f3189e9834d70b5b
/* Copyright (c) 2002-2007 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "istream.h"
#include "message-parser.h"
#include "message-size.h"
bool *has_nuls)
{
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 */
}
}
bool *has_nuls)
{
const unsigned char *msg;
bool last_cr;
return;
if (msg[0] == '\n')
do {
for (i = 1; i < size; i++) {
if (msg[i] > '\n')
continue;
if (msg[i] == '\n') {
/* missing CR */
}
/* increase after making sure we didn't break
at virtual \r */
} else if (msg[i] == '\0') {
}
}
/* leave the last character, it may be \r */
body->physical_size++;
}
const struct message_size *src)
{
}