From 608be97a394100c9af90f404ea0fe51b0f378eac Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Fri, 18 Nov 2016 23:18:12 -0700 Subject: * Remove limit of encoded words in the c-client library, since any limit makes a search eventually fail for a long enough encoded word. --- imap/src/c-client/utf8aux.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'imap/src') diff --git a/imap/src/c-client/utf8aux.c b/imap/src/c-client/utf8aux.c index 5241b9e1..746ea47e 100644 --- a/imap/src/c-client/utf8aux.c +++ b/imap/src/c-client/utf8aux.c @@ -103,7 +103,6 @@ void utf8_searchpgm (SEARCHPGM *pgm,char *charset) */ #define MINENCWORD 9 -#define MAXENCWORD 75 /* This resizing algorithm is stupid, but hopefully it should never be triggered * except for a pathological header. The main concern is that we don't get a @@ -129,8 +128,7 @@ long utf8_mime2text (SIZEDTEXT *src,SIZEDTEXT *dst,long flags) if (((se - s) > MINENCWORD) && (*s == '=') && (s[1] == '?') && (cs = (char *) mime2_token (s+2,se,(unsigned char **) &ce)) && (e = mime2_token ((unsigned char *) ce+1,se,&ee)) && - (te = mime2_text (t = e+2,se)) && (ee == e + 1) && - ((te - s) < MAXENCWORD)) { + (te = mime2_text (t = e+2,se)) && (ee == e + 1)){ if (mime2_decode (e,t,te,&txt)) { *ce = '\0'; /* temporarily tie off charset */ if ((ls = strchr (cs,'*')) != NULL) *ls = '\0'; -- cgit v1.2.3-70-g09d2