quoted-printable.c revision 2f67f2fbb4b145ce7ba39ef9f15932aeadeb1747
/* Copyright (c) 2002-2012 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "buffer.h"
#include "hex-binary.h"
#include "quoted-printable.h"
#define QP_IS_TRAILING_SPACE(c) \
((c) == ' ' || (c) == '\t')
static int
{
for (i++; i < size; i++) {
continue;
if (src[i] != '\n')
return 0;
*src_pos = i;
return 1;
}
return -1;
}
{
char hexbuf[3];
int ret;
next = 0;
continue;
/* drop trailing whitespace */
pos--;
pos--;
continue;
}
/* '=' */
/* =[whitespace][\r]\n */
continue;
}
if (ret < 0) {
/* unknown yet if this is end of line */
break;
}
break;
/* =<hex> */
src_pos += 2;
} else {
/* non-hex data, show as-is */
}
}
/* add everything but trailing spaces */
src_pos--;
src_pos--;
}
}
{
char hexbuf[3];
next = 0;
continue;
next++;
continue;
}
break;
/* =<hex> */
src_pos += 2;
} else {
/* non-hex data, show as-is */
}
}
}