*** Variables ***
${CONFIG} ${TESTDIR}/configs/maps.conf
${MESSAGE} ${TESTDIR}/messages/spam_message.eml
+${UTF_MESSAGE} ${TESTDIR}/messages/utf.eml
${RSPAMD_SCOPE} Suite
*** Test Cases ***
MAP - MULSYM SYMBOL + SCORE
${result} = Scan Message With Rspamc ${MESSAGE} --rcpt user5@example.com
Check Rspamc ${result} SYM1 (-10.0
+
+MAP - UTF
+ ${result} = Scan Message With Rspamc ${UTF_MESSAGE}
+ Check Rspamc ${result} HEADER_MAP
+
+MAP - UTF MISS
+ ${result} = Scan Message With Rspamc ${MESSAGE}
+ Check Rspamc ${result} HEADER_MAP inverse=1 rc_nocheck=1
\ No newline at end of file
--- /dev/null
+To: =?UTF-8?B?0JLQsNGB0LjRgdGD0LDQu9C40Lkg0JXQstC70LDQvNC/0LjQtdCy0LjRhw==?=
+ <xxx@example.com>
+From: ZZZ <yy@example.com>
+Subject: Hello
+Message-ID: <f13bcdad-273b-9a44-6209-cb1631c01dca@example.com>
+Date: Sun, 31 Jul 2016 11:40:08 +0100
+User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0)
+ Gecko/20100101 Thunderbird/45.2.0
+MIME-Version: 1.0
+Content-Type: text/plain; charset=utf-8
+Content-Transfer-Encoding: 7bit
+
+
+--
+ZZZ