quoted-printable.c revision 2e37d45867d081db150ab78dad303b9077aea24f
/* Copyright (c) 2002-2011 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')
{
char hexbuf[3];
next = 0;
continue;
/* drop trailing whitespace */
pos--;
pos--;
continue;
}
/* '=' */
break;
/* =\n -> skip both */
src_pos++;
next += 2;
continue;
}
break;
/* =\r\n -> skip both */
src_pos += 2;
next += 3;
continue;
}
/* =<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 */
}
}
}