aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-03-05 18:43:05 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-03-05 18:43:51 +0000
commit0b9aa31ee28799b4f3cd339729d92bc181241c6f (patch)
treeaca3f9929e80dd573eb292df5464c02609f8e2e0
parent6fef8f68cd30beb859461504b66ad2ea26ebe364 (diff)
downloadrspamd-0b9aa31ee28799b4f3cd339729d92bc181241c6f.tar.gz
rspamd-0b9aa31ee28799b4f3cd339729d92bc181241c6f.zip
[Fix] Do more heuristical detection for missing CTE
Issue: #1480
-rw-r--r--src/libmime/mime_parser.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libmime/mime_parser.c b/src/libmime/mime_parser.c
index b445144e7..c6c80e3f0 100644
--- a/src/libmime/mime_parser.c
+++ b/src/libmime/mime_parser.c
@@ -169,7 +169,9 @@ rspamd_mime_part_get_cte_heuristic (struct rspamd_task *task,
while (p < end) {
if (*p == '\r' || *p == '\n') {
- break;
+ if (!b64_chars || n8bit || nspaces) {
+ break;
+ }
}
else if (*p == ' ') {
nspaces ++;