NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
PHP 49% JavaScript 35% HTML 9% CSS 4% Shell 2% Python 1% Lua 0% Perl 0% Ruby 0% SCSS 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git

Trace

data/Dockerfiles/rspamd/sa_trivial_convert.lua

Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.

sa_trivial_convert.lua on main
Author Date Commit Line Code
andryyy over 6 years ago 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
1
local fun = require "fun"
Open commit View diff
1 local fun = require "fun"
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
2
local rspamd_logger = require "rspamd_logger"
Open commit View diff
2 local rspamd_logger = require "rspamd_logger"
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
3
local util = require "rspamd_util"
Open commit View diff
3 local util = require "rspamd_util"
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
4
local lua_util = require "lua_util"
Open commit View diff
4 local lua_util = require "lua_util"
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
5
local rspamd_regexp = require "rspamd_regexp"
Open commit View diff
5 local rspamd_regexp = require "rspamd_regexp"
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
6
local ucl = require "ucl"
Open commit View diff
6 local ucl = require "ucl"
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
7
Open commit View diff
7
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
8
local complicated = {}
Open commit View diff
8 local complicated = {}
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
9
local rules = {}
Open commit View diff
9 local rules = {}
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
10
local scores = {}
Open commit View diff
10 local scores = {}
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
11
Open commit View diff
11
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
12
local function words_to_re(words, start)
Open commit View diff
12 local function words_to_re(words, start)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
13
  return table.concat(fun.totable(fun.drop_n(start, words)), " ");
Open commit View diff
13 return table.concat(fun.totable(fun.drop_n(start, words)), " ");
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
14
end
Open commit View diff
14 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
15
Open commit View diff
15
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
16
local function split(str, delim)
Open commit View diff
16 local function split(str, delim)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
17
  local result = {}
Open commit View diff
17 local result = {}
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
18
Open commit View diff
18
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
19
  if not delim then
Open commit View diff
19 if not delim then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
20
    delim = '[^%s]+'
Open commit View diff
20 delim = '[^%s]+'
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
21
  end
Open commit View diff
21 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
22
Open commit View diff
22
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
23
  for token in string.gmatch(str, delim) do
Open commit View diff
23 for token in string.gmatch(str, delim) do
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
24
    table.insert(result, token)
Open commit View diff
24 table.insert(result, token)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
25
  end
Open commit View diff
25 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
26
Open commit View diff
26
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
27
  return result
Open commit View diff
27 return result
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
28
end
Open commit View diff
28 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
29
Open commit View diff
29
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
30
local function handle_header_def(hline, cur_rule)
Open commit View diff
30 local function handle_header_def(hline, cur_rule)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
31
  --Now check for modifiers inside header's name
Open commit View diff
31 --Now check for modifiers inside header's name
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
32
  local hdrs = split(hline, '[^|]+')
Open commit View diff
32 local hdrs = split(hline, '[^|]+')
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
33
  local hdr_params = {}
Open commit View diff
33 local hdr_params = {}
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
34
  local cur_param = {}
Open commit View diff
34 local cur_param = {}
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
35
  -- Check if an re is an ordinary re
Open commit View diff
35 -- Check if an re is an ordinary re
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
36
  local ordinary = true
Open commit View diff
36 local ordinary = true
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
37
Open commit View diff
37
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
38
  for _,h in ipairs(hdrs) do
Open commit View diff
38 for _,h in ipairs(hdrs) do
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
39
    if h == 'ALL' or h == 'ALL:raw' then
Open commit View diff
39 if h == 'ALL' or h == 'ALL:raw' then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
40
      ordinary = false
Open commit View diff
40 ordinary = false
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
41
    else
Open commit View diff
41 else
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
42
      local args = split(h, '[^:]+')
Open commit View diff
42 local args = split(h, '[^:]+')
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
43
      cur_param['strong'] = false
Open commit View diff
43 cur_param['strong'] = false
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
44
      cur_param['raw'] = false
Open commit View diff
44 cur_param['raw'] = false
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
45
      cur_param['header'] = args[1]
Open commit View diff
45 cur_param['header'] = args[1]
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
46
Open commit View diff
46
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
47
      if args[2] then
Open commit View diff
47 if args[2] then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
48
        -- We have some ops that are required for the header, so it's not ordinary
Open commit View diff
48 -- We have some ops that are required for the header, so it's not ordinary
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
49
        ordinary = false
Open commit View diff
49 ordinary = false
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
50
      end
Open commit View diff
50 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
51
Open commit View diff
51
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
52
      fun.each(function(func)
Open commit View diff
52 fun.each(function(func)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
53
          if func == 'addr' then
Open commit View diff
53 if func == 'addr' then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
54
            cur_param['function'] = function(str)
Open commit View diff
54 cur_param['function'] = function(str)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
55
              local addr_parsed = util.parse_addr(str)
Open commit View diff
55 local addr_parsed = util.parse_addr(str)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
56
              local ret = {}
Open commit View diff
56 local ret = {}
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
57
              if addr_parsed then
Open commit View diff
57 if addr_parsed then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
58
                for _,elt in ipairs(addr_parsed) do
Open commit View diff
58 for _,elt in ipairs(addr_parsed) do
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
59
                  if elt['addr'] then
Open commit View diff
59 if elt['addr'] then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
60
                    table.insert(ret, elt['addr'])
Open commit View diff
60 table.insert(ret, elt['addr'])
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
61
                  end
Open commit View diff
61 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
62
                end
Open commit View diff
62 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
63
              end
Open commit View diff
63 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
64
Open commit View diff
64
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
65
              return ret
Open commit View diff
65 return ret
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
66
            end
Open commit View diff
66 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
67
          elseif func == 'name' then
Open commit View diff
67 elseif func == 'name' then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
68
            cur_param['function'] = function(str)
Open commit View diff
68 cur_param['function'] = function(str)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
69
              local addr_parsed = util.parse_addr(str)
Open commit View diff
69 local addr_parsed = util.parse_addr(str)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
70
              local ret = {}
Open commit View diff
70 local ret = {}
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
71
              if addr_parsed then
Open commit View diff
71 if addr_parsed then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
72
                for _,elt in ipairs(addr_parsed) do
Open commit View diff
72 for _,elt in ipairs(addr_parsed) do
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
73
                  if elt['name'] then
Open commit View diff
73 if elt['name'] then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
74
                    table.insert(ret, elt['name'])
Open commit View diff
74 table.insert(ret, elt['name'])
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
75
                  end
Open commit View diff
75 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
76
                end
Open commit View diff
76 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
77
              end
Open commit View diff
77 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
78
Open commit View diff
78
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
79
              return ret
Open commit View diff
79 return ret
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
80
            end
Open commit View diff
80 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
81
          elseif func == 'raw' then
Open commit View diff
81 elseif func == 'raw' then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
82
            cur_param['raw'] = true
Open commit View diff
82 cur_param['raw'] = true
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
83
          elseif func == 'case' then
Open commit View diff
83 elseif func == 'case' then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
84
            cur_param['strong'] = true
Open commit View diff
84 cur_param['strong'] = true
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
85
          else
Open commit View diff
85 else
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
86
            rspamd_logger.warnx(rspamd_config, 'Function %1 is not supported in %2',
Open commit View diff
86 rspamd_logger.warnx(rspamd_config, 'Function %1 is not supported in %2',
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
87
              func, cur_rule['symbol'])
Open commit View diff
87 func, cur_rule['symbol'])
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
88
          end
Open commit View diff
88 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
89
        end, fun.tail(args))
Open commit View diff
89 end, fun.tail(args))
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
90
Open commit View diff
90
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
91
        -- Some header rules require splitting to check of multiple headers
Open commit View diff
91 -- Some header rules require splitting to check of multiple headers
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
92
        if cur_param['header'] == 'MESSAGEID' then
Open commit View diff
92 if cur_param['header'] == 'MESSAGEID' then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
93
          -- Special case for spamassassin
Open commit View diff
93 -- Special case for spamassassin
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
94
          ordinary = false
Open commit View diff
94 ordinary = false
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
95
        elseif cur_param['header'] == 'ToCc' then
Open commit View diff
95 elseif cur_param['header'] == 'ToCc' then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
96
          ordinary = false
Open commit View diff
96 ordinary = false
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
97
        else
Open commit View diff
97 else
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
98
          table.insert(hdr_params, cur_param)
Open commit View diff
98 table.insert(hdr_params, cur_param)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
99
        end
Open commit View diff
99 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
100
    end
Open commit View diff
100 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
101
Open commit View diff
101
andryyy over 6 years ago b63cad1

[Compose] Update Rspamd image

Full commit hash
b63cad1dd52b6c584d695d5ae01b22fec9aa49bf
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
102
    cur_rule['ordinary'] = ordinary and (not (#hdr_params > 1))
Open commit View diff
102 cur_rule['ordinary'] = ordinary and (not (#hdr_params > 1))
andryyy over 6 years ago 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
103
    cur_rule['header'] = hdr_params
Open commit View diff
103 cur_rule['header'] = hdr_params
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
104
  end
Open commit View diff
104 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
105
end
Open commit View diff
105 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
106
Open commit View diff
106
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
107
local function process_sa_conf(f)
Open commit View diff
107 local function process_sa_conf(f)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
108
  local cur_rule = {}
Open commit View diff
108 local cur_rule = {}
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
109
  local valid_rule = false
Open commit View diff
109 local valid_rule = false
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
110
Open commit View diff
110
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
111
  local function insert_cur_rule()
Open commit View diff
111 local function insert_cur_rule()
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
112
   if not rules[cur_rule.type] then
Open commit View diff
112 if not rules[cur_rule.type] then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
113
     rules[cur_rule.type] = {}
Open commit View diff
113 rules[cur_rule.type] = {}
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
114
   end
Open commit View diff
114 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
115
Open commit View diff
115
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
116
   local target = rules[cur_rule.type]
Open commit View diff
116 local target = rules[cur_rule.type]
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
117
Open commit View diff
117
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
118
   if cur_rule.type == 'header' then
Open commit View diff
118 if cur_rule.type == 'header' then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
119
     if not cur_rule.header[1].header then
Open commit View diff
119 if not cur_rule.header[1].header then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
120
      rspamd_logger.errx(rspamd_config, 'bad rule definition: %1', cur_rule)
Open commit View diff
120 rspamd_logger.errx(rspamd_config, 'bad rule definition: %1', cur_rule)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
121
      return
Open commit View diff
121 return
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
122
     end
Open commit View diff
122 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
123
     if not target[cur_rule.header[1].header] then
Open commit View diff
123 if not target[cur_rule.header[1].header] then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
124
       target[cur_rule.header[1].header] = {}
Open commit View diff
124 target[cur_rule.header[1].header] = {}
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
125
     end
Open commit View diff
125 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
126
     target = target[cur_rule.header[1].header]
Open commit View diff
126 target = target[cur_rule.header[1].header]
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
127
   end
Open commit View diff
127 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
128
Open commit View diff
128
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
129
   if not cur_rule['symbol'] then
Open commit View diff
129 if not cur_rule['symbol'] then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
130
     rspamd_logger.errx(rspamd_config, 'bad rule definition: %1', cur_rule)
Open commit View diff
130 rspamd_logger.errx(rspamd_config, 'bad rule definition: %1', cur_rule)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
131
     return
Open commit View diff
131 return
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
132
   end
Open commit View diff
132 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
133
   target[cur_rule['symbol']] = cur_rule
Open commit View diff
133 target[cur_rule['symbol']] = cur_rule
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
134
   cur_rule = {}
Open commit View diff
134 cur_rule = {}
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
135
   valid_rule = false
Open commit View diff
135 valid_rule = false
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
136
  end
Open commit View diff
136 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
137
Open commit View diff
137
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
138
  local function parse_score(words)
Open commit View diff
138 local function parse_score(words)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
139
    if #words == 3 then
Open commit View diff
139 if #words == 3 then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
140
      -- score rule <x>
Open commit View diff
140 -- score rule <x>
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
141
      return tonumber(words[3])
Open commit View diff
141 return tonumber(words[3])
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
142
    elseif #words == 6 then
Open commit View diff
142 elseif #words == 6 then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
143
      -- score rule <x1> <x2> <x3> <x4>
Open commit View diff
143 -- score rule <x1> <x2> <x3> <x4>
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
144
      -- we assume here that bayes and network are enabled and select <x4>
Open commit View diff
144 -- we assume here that bayes and network are enabled and select <x4>
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
145
      return tonumber(words[6])
Open commit View diff
145 return tonumber(words[6])
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
146
    else
Open commit View diff
146 else
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
147
      rspamd_logger.errx(rspamd_config, 'invalid score for %1', words[2])
Open commit View diff
147 rspamd_logger.errx(rspamd_config, 'invalid score for %1', words[2])
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
148
    end
Open commit View diff
148 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
149
Open commit View diff
149
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
150
    return 0
Open commit View diff
150 return 0
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
151
  end
Open commit View diff
151 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
152
Open commit View diff
152
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
153
  local skip_to_endif = false
Open commit View diff
153 local skip_to_endif = false
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
154
  local if_nested = 0
Open commit View diff
154 local if_nested = 0
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
155
  for l in f:lines() do
Open commit View diff
155 for l in f:lines() do
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
156
    (function ()
Open commit View diff
156 (function ()
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
157
    l = lua_util.rspamd_str_trim(l)
Open commit View diff
157 l = lua_util.rspamd_str_trim(l)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
158
    -- Replace bla=~/re/ with bla =~ /re/ (#2372)
Open commit View diff
158 -- Replace bla=~/re/ with bla =~ /re/ (#2372)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
159
    l = l:gsub('([^%s])%s*([=!]~)%s*([^%s])', '%1 %2 %3')
Open commit View diff
159 l = l:gsub('([^%s])%s*([=!]~)%s*([^%s])', '%1 %2 %3')
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
160
Open commit View diff
160
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
161
    if string.len(l) == 0 or string.sub(l, 1, 1) == '#' then
Open commit View diff
161 if string.len(l) == 0 or string.sub(l, 1, 1) == '#' then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
162
      return
Open commit View diff
162 return
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
163
    end
Open commit View diff
163 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
164
Open commit View diff
164
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
165
    -- Unbalanced if/endif
Open commit View diff
165 -- Unbalanced if/endif
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
166
    if if_nested < 0 then if_nested = 0 end
Open commit View diff
166 if if_nested < 0 then if_nested = 0 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
167
    if skip_to_endif then
Open commit View diff
167 if skip_to_endif then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
168
      if string.match(l, '^endif') then
Open commit View diff
168 if string.match(l, '^endif') then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
169
        if_nested = if_nested - 1
Open commit View diff
169 if_nested = if_nested - 1
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
170
Open commit View diff
170
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
171
        if if_nested == 0 then
Open commit View diff
171 if if_nested == 0 then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
172
          skip_to_endif = false
Open commit View diff
172 skip_to_endif = false
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
173
        end
Open commit View diff
173 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
174
      elseif string.match(l, '^if') then
Open commit View diff
174 elseif string.match(l, '^if') then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
175
        if_nested = if_nested + 1
Open commit View diff
175 if_nested = if_nested + 1
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
176
      elseif string.match(l, '^else') then
Open commit View diff
176 elseif string.match(l, '^else') then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
177
        -- Else counterpart for if
Open commit View diff
177 -- Else counterpart for if
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
178
        skip_to_endif = false
Open commit View diff
178 skip_to_endif = false
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
179
      end
Open commit View diff
179 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
180
      table.insert(complicated, l)
Open commit View diff
180 table.insert(complicated, l)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
181
      return
Open commit View diff
181 return
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
182
    else
Open commit View diff
182 else
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
183
      if string.match(l, '^ifplugin') then
Open commit View diff
183 if string.match(l, '^ifplugin') then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
184
        skip_to_endif = true
Open commit View diff
184 skip_to_endif = true
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
185
        if_nested = if_nested + 1
Open commit View diff
185 if_nested = if_nested + 1
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
186
        table.insert(complicated, l)
Open commit View diff
186 table.insert(complicated, l)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
187
      elseif string.match(l, '^if !plugin%(') then
Open commit View diff
187 elseif string.match(l, '^if !plugin%(') then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
188
         skip_to_endif = true
Open commit View diff
188 skip_to_endif = true
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
189
         if_nested = if_nested + 1
Open commit View diff
189 if_nested = if_nested + 1
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
190
        table.insert(complicated, l)
Open commit View diff
190 table.insert(complicated, l)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
191
      elseif string.match(l, '^if') then
Open commit View diff
191 elseif string.match(l, '^if') then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
192
        -- Unknown if
Open commit View diff
192 -- Unknown if
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
193
        skip_to_endif = true
Open commit View diff
193 skip_to_endif = true
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
194
        if_nested = if_nested + 1
Open commit View diff
194 if_nested = if_nested + 1
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
195
        table.insert(complicated, l)
Open commit View diff
195 table.insert(complicated, l)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
196
      elseif string.match(l, '^else') then
Open commit View diff
196 elseif string.match(l, '^else') then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
197
        -- Else counterpart for if
Open commit View diff
197 -- Else counterpart for if
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
198
        skip_to_endif = true
Open commit View diff
198 skip_to_endif = true
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
199
        table.insert(complicated, l)
Open commit View diff
199 table.insert(complicated, l)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
200
      elseif string.match(l, '^endif') then
Open commit View diff
200 elseif string.match(l, '^endif') then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
201
        if_nested = if_nested - 1
Open commit View diff
201 if_nested = if_nested - 1
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
202
        table.insert(complicated, l)
Open commit View diff
202 table.insert(complicated, l)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
203
      end
Open commit View diff
203 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
204
    end
Open commit View diff
204 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
205
Open commit View diff
205
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
206
    -- Skip comments
Open commit View diff
206 -- Skip comments
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
207
    local words = fun.totable(fun.take_while(
Open commit View diff
207 local words = fun.totable(fun.take_while(
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
208
      function(w) return string.sub(w, 1, 1) ~= '#' end,
Open commit View diff
208 function(w) return string.sub(w, 1, 1) ~= '#' end,
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
209
      fun.filter(function(w)
Open commit View diff
209 fun.filter(function(w)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
210
          return w ~= "" end,
Open commit View diff
210 return w ~= "" end,
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
211
      fun.iter(split(l)))))
Open commit View diff
211 fun.iter(split(l)))))
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
212
Open commit View diff
212
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
213
    if words[1] == "header" then
Open commit View diff
213 if words[1] == "header" then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
214
      -- header SYMBOL Header ~= /regexp/
Open commit View diff
214 -- header SYMBOL Header ~= /regexp/
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
215
      if valid_rule then
Open commit View diff
215 if valid_rule then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
216
        insert_cur_rule()
Open commit View diff
216 insert_cur_rule()
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
217
      end
Open commit View diff
217 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
218
      if words[4] and (words[4] == '=~' or words[4] == '!~') then
Open commit View diff
218 if words[4] and (words[4] == '=~' or words[4] == '!~') then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
219
        cur_rule['type'] = 'header'
Open commit View diff
219 cur_rule['type'] = 'header'
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
220
        cur_rule['symbol'] = words[2]
Open commit View diff
220 cur_rule['symbol'] = words[2]
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
221
Open commit View diff
221
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
222
        if words[4] == '!~' then
Open commit View diff
222 if words[4] == '!~' then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
223
          table.insert(complicated, l)
Open commit View diff
223 table.insert(complicated, l)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
224
          return
Open commit View diff
224 return
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
225
        end
Open commit View diff
225 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
226
Open commit View diff
226
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
227
        cur_rule['re_expr'] = words_to_re(words, 4)
Open commit View diff
227 cur_rule['re_expr'] = words_to_re(words, 4)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
228
        local unset_comp = string.find(cur_rule['re_expr'], '%s+%[if%-unset:')
Open commit View diff
228 local unset_comp = string.find(cur_rule['re_expr'], '%s+%[if%-unset:')
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
229
        if unset_comp then
Open commit View diff
229 if unset_comp then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
230
          table.insert(complicated, l)
Open commit View diff
230 table.insert(complicated, l)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
231
          return
Open commit View diff
231 return
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
232
        end
Open commit View diff
232 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
233
Open commit View diff
233
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
234
        cur_rule['re'] = rspamd_regexp.create(cur_rule['re_expr'])
Open commit View diff
234 cur_rule['re'] = rspamd_regexp.create(cur_rule['re_expr'])
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
235
Open commit View diff
235
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
236
        if not cur_rule['re'] then
Open commit View diff
236 if not cur_rule['re'] then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
237
          rspamd_logger.warnx(rspamd_config, "Cannot parse regexp '%1' for %2",
Open commit View diff
237 rspamd_logger.warnx(rspamd_config, "Cannot parse regexp '%1' for %2",
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
238
            cur_rule['re_expr'], cur_rule['symbol'])
Open commit View diff
238 cur_rule['re_expr'], cur_rule['symbol'])
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
239
          table.insert(complicated, l)
Open commit View diff
239 table.insert(complicated, l)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
240
          return
Open commit View diff
240 return
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
241
        else
Open commit View diff
241 else
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
242
          handle_header_def(words[3], cur_rule)
Open commit View diff
242 handle_header_def(words[3], cur_rule)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
243
          if not cur_rule['ordinary'] then
Open commit View diff
243 if not cur_rule['ordinary'] then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
244
            table.insert(complicated, l)
Open commit View diff
244 table.insert(complicated, l)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
245
            return
Open commit View diff
245 return
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
246
          end
Open commit View diff
246 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
247
        end
Open commit View diff
247 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
248
Open commit View diff
248
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
249
        valid_rule = true
Open commit View diff
249 valid_rule = true
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
250
      else
Open commit View diff
250 else
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
251
        table.insert(complicated, l)
Open commit View diff
251 table.insert(complicated, l)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
252
        return
Open commit View diff
252 return
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
253
      end
Open commit View diff
253 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
254
    elseif words[1] == "body" then
Open commit View diff
254 elseif words[1] == "body" then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
255
      -- body SYMBOL /regexp/
Open commit View diff
255 -- body SYMBOL /regexp/
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
256
      if valid_rule then
Open commit View diff
256 if valid_rule then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
257
        insert_cur_rule()
Open commit View diff
257 insert_cur_rule()
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
258
      end
Open commit View diff
258 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
259
Open commit View diff
259
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
260
      cur_rule['symbol'] = words[2]
Open commit View diff
260 cur_rule['symbol'] = words[2]
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
261
      if words[3] and (string.sub(words[3], 1, 1) == '/'
Open commit View diff
261 if words[3] and (string.sub(words[3], 1, 1) == '/'
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
262
          or string.sub(words[3], 1, 1) == 'm') then
Open commit View diff
262 or string.sub(words[3], 1, 1) == 'm') then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
263
        cur_rule['type'] = 'sabody'
Open commit View diff
263 cur_rule['type'] = 'sabody'
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
264
        cur_rule['re_expr'] = words_to_re(words, 2)
Open commit View diff
264 cur_rule['re_expr'] = words_to_re(words, 2)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
265
        cur_rule['re'] = rspamd_regexp.create(cur_rule['re_expr'])
Open commit View diff
265 cur_rule['re'] = rspamd_regexp.create(cur_rule['re_expr'])
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
266
        if cur_rule['re'] then
Open commit View diff
266 if cur_rule['re'] then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
267
Open commit View diff
267
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
268
          valid_rule = true
Open commit View diff
268 valid_rule = true
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
269
        end
Open commit View diff
269 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
270
      else
Open commit View diff
270 else
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
271
        -- might be function
Open commit View diff
271 -- might be function
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
272
        table.insert(complicated, l)
Open commit View diff
272 table.insert(complicated, l)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
273
        return
Open commit View diff
273 return
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
274
      end
Open commit View diff
274 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
275
    elseif words[1] == "rawbody" then
Open commit View diff
275 elseif words[1] == "rawbody" then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
276
      -- body SYMBOL /regexp/
Open commit View diff
276 -- body SYMBOL /regexp/
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
277
      if valid_rule then
Open commit View diff
277 if valid_rule then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
278
        insert_cur_rule()
Open commit View diff
278 insert_cur_rule()
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
279
      end
Open commit View diff
279 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
280
Open commit View diff
280
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
281
      cur_rule['symbol'] = words[2]
Open commit View diff
281 cur_rule['symbol'] = words[2]
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
282
      if words[3] and (string.sub(words[3], 1, 1) == '/'
Open commit View diff
282 if words[3] and (string.sub(words[3], 1, 1) == '/'
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
283
          or string.sub(words[3], 1, 1) == 'm') then
Open commit View diff
283 or string.sub(words[3], 1, 1) == 'm') then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
284
        cur_rule['type'] = 'sarawbody'
Open commit View diff
284 cur_rule['type'] = 'sarawbody'
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
285
        cur_rule['re_expr'] = words_to_re(words, 2)
Open commit View diff
285 cur_rule['re_expr'] = words_to_re(words, 2)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
286
        cur_rule['re'] = rspamd_regexp.create(cur_rule['re_expr'])
Open commit View diff
286 cur_rule['re'] = rspamd_regexp.create(cur_rule['re_expr'])
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
287
        if cur_rule['re'] then
Open commit View diff
287 if cur_rule['re'] then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
288
          valid_rule = true
Open commit View diff
288 valid_rule = true
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
289
        end
Open commit View diff
289 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
290
      else
Open commit View diff
290 else
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
291
        table.insert(complicated, l)
Open commit View diff
291 table.insert(complicated, l)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
292
        return
Open commit View diff
292 return
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
293
      end
Open commit View diff
293 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
294
    elseif words[1] == "full" then
Open commit View diff
294 elseif words[1] == "full" then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
295
      -- body SYMBOL /regexp/
Open commit View diff
295 -- body SYMBOL /regexp/
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
296
      if valid_rule then
Open commit View diff
296 if valid_rule then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
297
        insert_cur_rule()
Open commit View diff
297 insert_cur_rule()
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
298
      end
Open commit View diff
298 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
299
Open commit View diff
299
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
300
      cur_rule['symbol'] = words[2]
Open commit View diff
300 cur_rule['symbol'] = words[2]
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
301
Open commit View diff
301
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
302
      if words[3] and (string.sub(words[3], 1, 1) == '/'
Open commit View diff
302 if words[3] and (string.sub(words[3], 1, 1) == '/'
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
303
          or string.sub(words[3], 1, 1) == 'm') then
Open commit View diff
303 or string.sub(words[3], 1, 1) == 'm') then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
304
        cur_rule['type'] = 'message'
Open commit View diff
304 cur_rule['type'] = 'message'
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
305
        cur_rule['re_expr'] = words_to_re(words, 2)
Open commit View diff
305 cur_rule['re_expr'] = words_to_re(words, 2)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
306
        cur_rule['re'] = rspamd_regexp.create(cur_rule['re_expr'])
Open commit View diff
306 cur_rule['re'] = rspamd_regexp.create(cur_rule['re_expr'])
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
307
        cur_rule['raw'] = true
Open commit View diff
307 cur_rule['raw'] = true
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
308
        if cur_rule['re'] then
Open commit View diff
308 if cur_rule['re'] then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
309
          valid_rule = true
Open commit View diff
309 valid_rule = true
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
310
        end
Open commit View diff
310 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
311
      else
Open commit View diff
311 else
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
312
        table.insert(complicated, l)
Open commit View diff
312 table.insert(complicated, l)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
313
        return
Open commit View diff
313 return
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
314
      end
Open commit View diff
314 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
315
    elseif words[1] == "uri" then
Open commit View diff
315 elseif words[1] == "uri" then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
316
      -- uri SYMBOL /regexp/
Open commit View diff
316 -- uri SYMBOL /regexp/
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
317
      if valid_rule then
Open commit View diff
317 if valid_rule then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
318
        insert_cur_rule()
Open commit View diff
318 insert_cur_rule()
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
319
      end
Open commit View diff
319 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
320
      cur_rule['type'] = 'uri'
Open commit View diff
320 cur_rule['type'] = 'uri'
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
321
      cur_rule['symbol'] = words[2]
Open commit View diff
321 cur_rule['symbol'] = words[2]
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
322
      cur_rule['re_expr'] = words_to_re(words, 2)
Open commit View diff
322 cur_rule['re_expr'] = words_to_re(words, 2)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
323
      cur_rule['re'] = rspamd_regexp.create(cur_rule['re_expr'])
Open commit View diff
323 cur_rule['re'] = rspamd_regexp.create(cur_rule['re_expr'])
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
324
      if cur_rule['re'] and cur_rule['symbol'] then
Open commit View diff
324 if cur_rule['re'] and cur_rule['symbol'] then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
325
        valid_rule = true
Open commit View diff
325 valid_rule = true
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
326
      else
Open commit View diff
326 else
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
327
        table.insert(complicated, l)
Open commit View diff
327 table.insert(complicated, l)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
328
        return
Open commit View diff
328 return
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
329
      end
Open commit View diff
329 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
330
    elseif words[1] == "meta" then
Open commit View diff
330 elseif words[1] == "meta" then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
331
      -- meta SYMBOL expression
Open commit View diff
331 -- meta SYMBOL expression
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
332
      if valid_rule then
Open commit View diff
332 if valid_rule then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
333
        insert_cur_rule()
Open commit View diff
333 insert_cur_rule()
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
334
      end
Open commit View diff
334 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
335
      table.insert(complicated, l)
Open commit View diff
335 table.insert(complicated, l)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
336
      return
Open commit View diff
336 return
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
337
    elseif words[1] == "describe" and valid_rule then
Open commit View diff
337 elseif words[1] == "describe" and valid_rule then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
338
      cur_rule['description'] = words_to_re(words, 2)
Open commit View diff
338 cur_rule['description'] = words_to_re(words, 2)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
339
    elseif words[1] == "score" then
Open commit View diff
339 elseif words[1] == "score" then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
340
      scores[words[2]] = parse_score(words)
Open commit View diff
340 scores[words[2]] = parse_score(words)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
341
    else
Open commit View diff
341 else
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
342
      table.insert(complicated, l)
Open commit View diff
342 table.insert(complicated, l)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
343
      return
Open commit View diff
343 return
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
344
    end
Open commit View diff
344 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
345
    end)()
Open commit View diff
345 end)()
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
346
  end
Open commit View diff
346 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
347
  if valid_rule then
Open commit View diff
347 if valid_rule then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
348
    insert_cur_rule()
Open commit View diff
348 insert_cur_rule()
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
349
  end
Open commit View diff
349 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
350
end
Open commit View diff
350 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
351
Open commit View diff
351
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
352
for _,matched in ipairs(arg) do
Open commit View diff
352 for _,matched in ipairs(arg) do
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
353
  local f = io.open(matched, "r")
Open commit View diff
353 local f = io.open(matched, "r")
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
354
  if f then
Open commit View diff
354 if f then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
355
    rspamd_logger.messagex(rspamd_config, 'loading SA rules from %s', matched)
Open commit View diff
355 rspamd_logger.messagex(rspamd_config, 'loading SA rules from %s', matched)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
356
    process_sa_conf(f)
Open commit View diff
356 process_sa_conf(f)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
357
  else
Open commit View diff
357 else
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
358
    rspamd_logger.errx(rspamd_config, "cannot open %1", matched)
Open commit View diff
358 rspamd_logger.errx(rspamd_config, "cannot open %1", matched)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
359
  end
Open commit View diff
359 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
360
end
Open commit View diff
360 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
361
Open commit View diff
361
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
362
local multimap_conf = {}
Open commit View diff
362 local multimap_conf = {}
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
363
Open commit View diff
363
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
364
local function handle_rule(what, syms, hdr)
Open commit View diff
364 local function handle_rule(what, syms, hdr)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
365
  local mtype
Open commit View diff
365 local mtype
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
366
  local filter
Open commit View diff
366 local filter
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
367
  local fname
Open commit View diff
367 local fname
andryyy over 6 years ago b63cad1

[Compose] Update Rspamd image

Full commit hash
b63cad1dd52b6c584d695d5ae01b22fec9aa49bf
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
368
  local header
Open commit View diff
368 local header
andryyy over 6 years ago 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
369
  local sym = what:upper()
Open commit View diff
369 local sym = what:upper()
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
370
  if what == 'sabody' then
Open commit View diff
370 if what == 'sabody' then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
371
    mtype = 'content'
Open commit View diff
371 mtype = 'content'
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
372
    fname = 'body_re.map'
Open commit View diff
372 fname = 'body_re.map'
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
373
    filter = 'oneline'
Open commit View diff
373 filter = 'oneline'
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
374
  elseif what == 'sarawbody' then
Open commit View diff
374 elseif what == 'sarawbody' then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
375
    fname = 'raw_body_re.map'
Open commit View diff
375 fname = 'raw_body_re.map'
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
376
    mtype = 'content'
Open commit View diff
376 mtype = 'content'
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
377
    filter = 'rawtext'
Open commit View diff
377 filter = 'rawtext'
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
378
  elseif what == 'full' then
Open commit View diff
378 elseif what == 'full' then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
379
    fname = 'full_re.map'
Open commit View diff
379 fname = 'full_re.map'
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
380
    mtype = 'content'
Open commit View diff
380 mtype = 'content'
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
381
    filter = 'full'
Open commit View diff
381 filter = 'full'
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
382
  elseif what == 'uri' then
Open commit View diff
382 elseif what == 'uri' then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
383
    fname = 'uri_re.map'
Open commit View diff
383 fname = 'uri_re.map'
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
384
    mtype = 'url'
Open commit View diff
384 mtype = 'url'
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
385
    filter = 'full'
Open commit View diff
385 filter = 'full'
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
386
  elseif what == 'header' then
Open commit View diff
386 elseif what == 'header' then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
387
    fname = ('hdr_' .. hdr .. '_re.map'):lower()
Open commit View diff
387 fname = ('hdr_' .. hdr .. '_re.map'):lower()
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
388
    mtype = 'header'
Open commit View diff
388 mtype = 'header'
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
389
    header = hdr
Open commit View diff
389 header = hdr
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
390
    sym = sym .. '_' .. hdr:upper()
Open commit View diff
390 sym = sym .. '_' .. hdr:upper()
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
391
  else
Open commit View diff
391 else
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
392
    rspamd_logger.errx('unknown type: %s', what)
Open commit View diff
392 rspamd_logger.errx('unknown type: %s', what)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
393
    return
Open commit View diff
393 return
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
394
  end
Open commit View diff
394 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
395
  local conf = {
Open commit View diff
395 local conf = {
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
396
    type = mtype,
Open commit View diff
396 type = mtype,
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
397
    filter = filter,
Open commit View diff
397 filter = filter,
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
398
    symbol = 'SA_MAP_AUTO_' .. sym,
Open commit View diff
398 symbol = 'SA_MAP_AUTO_' .. sym,
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
399
    regexp = true,
Open commit View diff
399 regexp = true,
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
400
    map = fname,
Open commit View diff
400 map = fname,
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
401
    header = header,
Open commit View diff
401 header = header,
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
402
    symbols = {}
Open commit View diff
402 symbols = {}
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
403
  }
Open commit View diff
403 }
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
404
  local re_file = io.open(fname, 'w')
Open commit View diff
404 local re_file = io.open(fname, 'w')
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
405
Open commit View diff
405
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
406
  for k,r in pairs(syms) do
Open commit View diff
406 for k,r in pairs(syms) do
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
407
    local score = 0.0
Open commit View diff
407 local score = 0.0
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
408
    if scores[k] then
Open commit View diff
408 if scores[k] then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
409
      score = scores[k]
Open commit View diff
409 score = scores[k]
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
410
    end
Open commit View diff
410 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
411
    re_file:write(string.format('/%s/ %s:%f\n', tostring(r.re), k, score))
Open commit View diff
411 re_file:write(string.format('/%s/ %s:%f\n', tostring(r.re), k, score))
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
412
    table.insert(conf.symbols, k)
Open commit View diff
412 table.insert(conf.symbols, k)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
413
  end
Open commit View diff
413 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
414
Open commit View diff
414
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
415
  re_file:close()
Open commit View diff
415 re_file:close()
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
416
Open commit View diff
416
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
417
  multimap_conf[sym:lower()] = conf
Open commit View diff
417 multimap_conf[sym:lower()] = conf
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
418
  rspamd_logger.messagex('stored %s regexp in %s', sym:lower(), fname)
Open commit View diff
418 rspamd_logger.messagex('stored %s regexp in %s', sym:lower(), fname)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
419
end
Open commit View diff
419 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
420
Open commit View diff
420
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
421
for k,v in pairs(rules) do
Open commit View diff
421 for k,v in pairs(rules) do
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
422
  if k == 'header' then
Open commit View diff
422 if k == 'header' then
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
423
    for h,r in pairs(v) do
Open commit View diff
423 for h,r in pairs(v) do
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
424
      handle_rule(k, r, h)
Open commit View diff
424 handle_rule(k, r, h)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
425
    end
Open commit View diff
425 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
426
  else
Open commit View diff
426 else
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
427
    handle_rule(k, v)
Open commit View diff
427 handle_rule(k, v)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
428
  end
Open commit View diff
428 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
429
end
Open commit View diff
429 end
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
430
Open commit View diff
430
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
431
local out = ucl.to_format(multimap_conf, 'ucl')
Open commit View diff
431 local out = ucl.to_format(multimap_conf, 'ucl')
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
432
local mmap_conf = io.open('auto_multimap.conf', 'w')
Open commit View diff
432 local mmap_conf = io.open('auto_multimap.conf', 'w')
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
433
mmap_conf:write(out)
Open commit View diff
433 mmap_conf:write(out)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
434
mmap_conf:close()
Open commit View diff
434 mmap_conf:close()
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
435
rspamd_logger.messagex('stored multimap conf in %s', 'auto_multimap.conf')
Open commit View diff
435 rspamd_logger.messagex('stored multimap conf in %s', 'auto_multimap.conf')
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
436
Open commit View diff
436
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
437
local sa_remain = io.open('auto_sa.conf', 'w')
Open commit View diff
437 local sa_remain = io.open('auto_sa.conf', 'w')
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
438
fun.each(function(l) 
Open commit View diff
438 fun.each(function(l)
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
439
  sa_remain:write(l)
Open commit View diff
439 sa_remain:write(l)
andryyy over 6 years ago b63cad1

[Compose] Update Rspamd image

Full commit hash
b63cad1dd52b6c584d695d5ae01b22fec9aa49bf
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
440
  sa_remain:write('\n')
Open commit View diff
440 sa_remain:write('\n')
andryyy over 6 years ago 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
441
end, fun.filter(function(l) return not string.match(l, '^%s+$') end, complicated))
Open commit View diff
441 end, fun.filter(function(l) return not string.match(l, '^%s+$') end, complicated))
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
442
sa_remain:close()
Open commit View diff
442 sa_remain:close()
same change 86d55c4

[Rspamd] Touch bad lang map

Full commit hash
86d55c41db7c9e0ac5c3931a636613aec457c9b4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
443
rspamd_logger.messagex('stored sa remains conf in %s', 'auto_sa.conf')
Open commit View diff
443 rspamd_logger.messagex('stored sa remains conf in %s', 'auto_sa.conf')