diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-03-05 22:20:47 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-03-05 22:20:47 +0000 |
commit | eb1765564f4b0668b21f1b93a14f7eede3fcd517 (patch) | |
tree | 7191e24840576b9c592bb5fba3c98b489feb0f75 /rules | |
parent | d84f6846de6ed096d035fe45f48d4c890c05cc7f (diff) | |
download | rspamd-eb1765564f4b0668b21f1b93a14f7eede3fcd517.tar.gz rspamd-eb1765564f4b0668b21f1b93a14f7eede3fcd517.zip |
[Minor] Use utf8 length for subject
Diffstat (limited to 'rules')
-rw-r--r-- | rules/misc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/misc.lua b/rules/misc.lua index e7d047b3f..f3476ee81 100644 --- a/rules/misc.lua +++ b/rules/misc.lua @@ -127,7 +127,7 @@ rspamd_config.SUBJ_ALL_CAPS = { rspamd_config.LONG_SUBJ = { callback = function(task) local sbj = task:get_header('Subject') - if sbj and string.len(sbj) > 200 then + if sbj and util.strlen_utf8(sbj) > 150 then return true end return false |