]> source.dussan.org Git - rspamd.git/commitdiff
Increase limit for DATE_IN_FUTURE to 2hr.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 6 Dec 2014 19:33:45 +0000 (19:33 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 6 Dec 2014 19:33:45 +0000 (19:33 +0000)
Suggested by: @citrin

conf/lua/rspamd.lua

index 87fac1dc1533cd5fbfaac386241c1d70150e4bf1..1b06fdc1a22e47c0256835a34ea777b29e2bad07 100644 (file)
@@ -46,7 +46,7 @@ rspamd_config.DATE_IN_FUTURE = function(task)
                local dm = task:get_date{format = 'message'}
                local dt = task:get_date{format = 'connect'}
                -- An hour
-               if dm - dt > 3600 then
+               if dm - dt > 7200 then
                        return true
                end
        end