From: Art Cancro Date: Fri, 27 Oct 2023 17:57:43 +0000 (-0900) Subject: removed an unused function X-Git-Tag: v997~107 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=a4d74d94d85c1a0618bef8eb1c5c3302046a4c1d removed an unused function --- diff --git a/libcitadel/lib/decode.c b/libcitadel/lib/decode.c index b2a93a9a5..58e54b95a 100644 --- a/libcitadel/lib/decode.c +++ b/libcitadel/lib/decode.c @@ -19,23 +19,6 @@ #include "libcitadel.h" -// This is the non-define version in case it is needed for debugging -#if 0 -inline void FindNextEnd (char *bptr, char *end) { - /* Find the next ?Q? */ - end = strchr(bptr + 2, '?'); - if (end == NULL) return NULL; - if (((*(end + 1) == 'B') || (*(end + 1) == 'Q')) && - (*(end + 2) == '?')) { - /* skip on to the end of the cluster, the next ?= */ - end = strstr(end + 3, "?="); - } - else - /* sort of half valid encoding, try to find an end. */ - end = strstr(bptr, "?="); -} -#endif - #define FindNextEnd(bptr, end) { \ end = strchr(bptr + 2, '?'); \ if (end != NULL) { \ @@ -45,6 +28,7 @@ inline void FindNextEnd (char *bptr, char *end) { } \ } + // Handle subjects with RFC2047 encoding such as: // =?koi8-r?B?78bP0s3Mxc7JxSDXz9rE1dvO2c3JINvB0sHNySDP?= void utf8ify_rfc822_string(char *buf) {