6
6
#include "message-size.h"
8
8
int message_get_header_size(struct istream *input, struct message_size *hdr,
11
11
const unsigned char *msg;
12
12
size_t i, size, startpos, missing_cr_count;
15
15
memset(hdr, 0, sizeof(struct message_size));
19
18
missing_cr_count = 0; startpos = 0;
20
19
while (i_stream_read_data(input, &msg, &size, startpos) > 0) {
21
20
for (i = startpos; i < size; i++) {