summaryrefslogtreecommitdiff
path: root/imap/src/c-client
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2016-11-18 23:18:12 -0700
committerEduardo Chappa <chappa@washington.edu>2016-11-18 23:18:12 -0700
commit608be97a394100c9af90f404ea0fe51b0f378eac (patch)
treef54340fe9c1e8d1239e7ca997d0b8c953aa9fc09 /imap/src/c-client
parent23a4eb6e84eaf355f4b4b2f6e6e308fb10a14b7d (diff)
downloadalpine-608be97a394100c9af90f404ea0fe51b0f378eac.tar.xz
* Remove limit of encoded words in the c-client library, since any
limit makes a search eventually fail for a long enough encoded word.
Diffstat (limited to 'imap/src/c-client')
-rw-r--r--imap/src/c-client/utf8aux.c4
1 files changed, 1 insertions, 3 deletions
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';