summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libmime/mime_headers.c1
-rw-r--r--test/lua/unit/rfc2047.lua2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/libmime/mime_headers.c b/src/libmime/mime_headers.c
index 7cfe3112c..f2f2c2270 100644
--- a/src/libmime/mime_headers.c
+++ b/src/libmime/mime_headers.c
@@ -388,6 +388,7 @@ rspamd_mime_header_decode (rspamd_mempool_t *pool, const gchar *in,
else {
g_string_append_len (out, c, 2);
c = p + 1;
+ state = parse_normal;
}
p ++;
break;
diff --git a/test/lua/unit/rfc2047.lua b/test/lua/unit/rfc2047.lua
index 9ddab000c..80c90437c 100644
--- a/test/lua/unit/rfc2047.lua
+++ b/test/lua/unit/rfc2047.lua
@@ -41,6 +41,8 @@ context("RFC2047 decoding", function()
=?windows-1251?Q?=E0=EA=F2=E5=F0=E8=E7=EE=E2=E0=F2=FC=F1?=
=?windows-1251?Q?=FF_=E7=EE=F0=EA=E8=EC_=E7=F0=E5=ED=E8?=
=?windows-1251?Q?=E5=EC?=]], "Вы сможете характеризоваться зорким зрением"},
+ {'v=1; a=rsa-sha256; c=relaxed/relaxed; d=yoni.za.org; s=testdkim1;',
+ 'v=1; a=rsa-sha256; c=relaxed/relaxed; d=yoni.za.org; s=testdkim1;'},
}
local pool = ffi.C.rspamd_mempool_new(4096, "lua")