From: Vsevolod Stakhov Date: Sun, 8 May 2016 16:13:00 +0000 (+0100) Subject: [Minor] Use shorter keys for replies module X-Git-Tag: 1.3.0~518 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=050df245425cc369f73f69182393a57a213d95d3;p=thirdparty%2Frspamd.git [Minor] Use shorter keys for replies module --- diff --git a/src/plugins/lua/replies.lua b/src/plugins/lua/replies.lua index dca2b08663..70228f0dc8 100644 --- a/src/plugins/lua/replies.lua +++ b/src/plugins/lua/replies.lua @@ -37,7 +37,7 @@ local hash = require 'rspamd_cryptobox_hash' local function make_key(goop) local h = hash.create() h:update(goop) - local key = h:base32() + local key = h:base32():sub(1, 20) key = settings['key_prefix'] .. key return key end