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/conf/rspamd/lua/rspamd.local.lua

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

rspamd.local.lua on main
Author Date Commit Line Code
andryyy over 9 years ago 5f04dc0

mailcow dockerized

Full commit hash
5f04dc0b04d71c4fed5965422c7a694377686804
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
1
rspamd_config.MAILCOW_AUTH = {
Open commit View diff
1 rspamd_config.MAILCOW_AUTH = {
same change 5f04dc0

mailcow dockerized

Full commit hash
5f04dc0b04d71c4fed5965422c7a694377686804
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
2
	callback = function(task)
Open commit View diff
2 callback = function(task)
same change 5f04dc0

mailcow dockerized

Full commit hash
5f04dc0b04d71c4fed5965422c7a694377686804
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
3
		local uname = task:get_user()
Open commit View diff
3 local uname = task:get_user()
same change 5f04dc0

mailcow dockerized

Full commit hash
5f04dc0b04d71c4fed5965422c7a694377686804
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
4
		if uname then
Open commit View diff
4 if uname then
same change 5f04dc0

mailcow dockerized

Full commit hash
5f04dc0b04d71c4fed5965422c7a694377686804
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
5
			return 1
Open commit View diff
5 return 1
same change 5f04dc0

mailcow dockerized

Full commit hash
5f04dc0b04d71c4fed5965422c7a694377686804
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
6
		end
Open commit View diff
6 end
same change 5f04dc0

mailcow dockerized

Full commit hash
5f04dc0b04d71c4fed5965422c7a694377686804
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
7
	end
Open commit View diff
7 end
same change 5f04dc0

mailcow dockerized

Full commit hash
5f04dc0b04d71c4fed5965422c7a694377686804
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
8
}
Open commit View diff
8 }
same change 5f04dc0

mailcow dockerized

Full commit hash
5f04dc0b04d71c4fed5965422c7a694377686804
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
9
Open commit View diff
9
andryyy over 6 years ago c9f455a

[Rspamd] Move monitoring hosts to monitoring_nolog.map file

Full commit hash
c9f455a2b1c17b70ea0d8d888149ec6426ebdc05
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
10
local monitoring_hosts = rspamd_config:add_map{
Open commit View diff
10 local monitoring_hosts = rspamd_config:add_map{
same change c9f455a

[Rspamd] Move monitoring hosts to monitoring_nolog.map file

Full commit hash
c9f455a2b1c17b70ea0d8d888149ec6426ebdc05
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
11
  url = "/etc/rspamd/custom/monitoring_nolog.map",
Open commit View diff
11 url = "/etc/rspamd/custom/monitoring_nolog.map",
same change c9f455a

[Rspamd] Move monitoring hosts to monitoring_nolog.map file

Full commit hash
c9f455a2b1c17b70ea0d8d888149ec6426ebdc05
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
12
  description = "Monitoring hosts",
Open commit View diff
12 description = "Monitoring hosts",
same change c9f455a

[Rspamd] Move monitoring hosts to monitoring_nolog.map file

Full commit hash
c9f455a2b1c17b70ea0d8d888149ec6426ebdc05
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
13
  type = "regexp"
Open commit View diff
13 type = "regexp"
same change c9f455a

[Rspamd] Move monitoring hosts to monitoring_nolog.map file

Full commit hash
c9f455a2b1c17b70ea0d8d888149ec6426ebdc05
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
14
}
Open commit View diff
14 }
andryyy over 6 years ago 9d04d0e

[Rspamd] Add X-Last-TLS-Session-Version header

Full commit hash
9d04d0ee4a0b368df5d90b0d8f989bd71767e483
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
15
Open commit View diff
15
andryyy almost 6 years ago c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
16
rspamd_config:register_symbol({
Open commit View diff
16 rspamd_config:register_symbol({
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
17
  name = 'SMTP_ACCESS',
Open commit View diff
17 name = 'SMTP_ACCESS',
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
18
  type = 'postfilter',
Open commit View diff
18 type = 'postfilter',
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
19
  callback = function(task)
Open commit View diff
19 callback = function(task)
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
20
    local util = require("rspamd_util")
Open commit View diff
20 local util = require("rspamd_util")
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
21
    local rspamd_logger = require "rspamd_logger"
Open commit View diff
21 local rspamd_logger = require "rspamd_logger"
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
22
    local rspamd_ip = require 'rspamd_ip'
Open commit View diff
22 local rspamd_ip = require 'rspamd_ip'
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
23
    local uname = task:get_user()
Open commit View diff
23 local uname = task:get_user()
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
24
    local limited_access = task:get_symbol("SMTP_LIMITED_ACCESS")
Open commit View diff
24 local limited_access = task:get_symbol("SMTP_LIMITED_ACCESS")
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
25
Open commit View diff
25
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
26
    if not uname then
Open commit View diff
26 if not uname then
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
27
      return false
Open commit View diff
27 return false
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
28
    end
Open commit View diff
28 end
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
29
Open commit View diff
29
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
30
    if not limited_access then
Open commit View diff
30 if not limited_access then
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
31
      return false
Open commit View diff
31 return false
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
32
    end
Open commit View diff
32 end
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
33
Open commit View diff
33
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
34
    local hash_key = 'SMTP_ALLOW_NETS_' .. uname
Open commit View diff
34 local hash_key = 'SMTP_ALLOW_NETS_' .. uname
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
35
Open commit View diff
35
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
36
    local redis_params = rspamd_parse_redis_server('smtp_access')
Open commit View diff
36 local redis_params = rspamd_parse_redis_server('smtp_access')
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
37
    local ip = task:get_from_ip()
Open commit View diff
37 local ip = task:get_from_ip()
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
38
Open commit View diff
38
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
39
    if ip == nil or not ip:is_valid() then
Open commit View diff
39 if ip == nil or not ip:is_valid() then
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
40
      return false
Open commit View diff
40 return false
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
41
    end
Open commit View diff
41 end
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
42
Open commit View diff
42
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
43
    local from_ip_string = tostring(ip)
Open commit View diff
43 local from_ip_string = tostring(ip)
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
44
    smtp_access_table = {from_ip_string}
Open commit View diff
44 smtp_access_table = {from_ip_string}
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
45
Open commit View diff
45
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
46
    local maxbits = 128
Open commit View diff
46 local maxbits = 128
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
47
    local minbits = 32
Open commit View diff
47 local minbits = 32
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
48
    if ip:get_version() == 4 then
Open commit View diff
48 if ip:get_version() == 4 then
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
49
        maxbits = 32
Open commit View diff
49 maxbits = 32
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
50
        minbits = 8
Open commit View diff
50 minbits = 8
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
51
    end
Open commit View diff
51 end
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
52
    for i=maxbits,minbits,-1 do
Open commit View diff
52 for i=maxbits,minbits,-1 do
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
53
      local nip = ip:apply_mask(i):to_string() .. "/" .. i
Open commit View diff
53 local nip = ip:apply_mask(i):to_string() .. "/" .. i
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
54
      table.insert(smtp_access_table, nip)
Open commit View diff
54 table.insert(smtp_access_table, nip)
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
55
    end
Open commit View diff
55 end
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
56
    local function smtp_access_cb(err, data)
Open commit View diff
56 local function smtp_access_cb(err, data)
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
57
      if err then
Open commit View diff
57 if err then
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
58
        rspamd_logger.infox(rspamd_config, "smtp_access query request for ip %s returned invalid or empty data (\"%s\") or error (\"%s\")", ip, data, err)
Open commit View diff
58 rspamd_logger.infox(rspamd_config, "smtp_access query request for ip %s returned invalid or empty data (\"%s\") or error (\"%s\")", ip, data, err)
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
59
        return false
Open commit View diff
59 return false
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
60
      else
Open commit View diff
60 else
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
61
        rspamd_logger.infox(rspamd_config, "checking ip %s for smtp_access in %s", from_ip_string, hash_key)
Open commit View diff
61 rspamd_logger.infox(rspamd_config, "checking ip %s for smtp_access in %s", from_ip_string, hash_key)
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
62
        for k,v in pairs(data) do
Open commit View diff
62 for k,v in pairs(data) do
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
63
          if (v and v ~= userdata and v == '1') then
Open commit View diff
63 if (v and v ~= userdata and v == '1') then
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
64
            rspamd_logger.infox(rspamd_config, "found ip in smtp_access map")
Open commit View diff
64 rspamd_logger.infox(rspamd_config, "found ip in smtp_access map")
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
65
            task:insert_result(true, 'SMTP_ACCESS', 0.0, from_ip_string)
Open commit View diff
65 task:insert_result(true, 'SMTP_ACCESS', 0.0, from_ip_string)
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
66
            return true
Open commit View diff
66 return true
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
67
          end
Open commit View diff
67 end
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
68
        end
Open commit View diff
68 end
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
69
        rspamd_logger.infox(rspamd_config, "couldnt find ip in smtp_access map")
Open commit View diff
69 rspamd_logger.infox(rspamd_config, "couldnt find ip in smtp_access map")
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
70
        task:insert_result(true, 'SMTP_ACCESS', 999.0, from_ip_string)
Open commit View diff
70 task:insert_result(true, 'SMTP_ACCESS', 999.0, from_ip_string)
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
71
        return true
Open commit View diff
71 return true
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
72
      end
Open commit View diff
72 end
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
73
    end
Open commit View diff
73 end
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
74
    table.insert(smtp_access_table, 1, hash_key)
Open commit View diff
74 table.insert(smtp_access_table, 1, hash_key)
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
75
    local redis_ret_user = rspamd_redis_make_request(task,
Open commit View diff
75 local redis_ret_user = rspamd_redis_make_request(task,
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
76
      redis_params, -- connect params
Open commit View diff
76 redis_params, -- connect params
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
77
      hash_key, -- hash key
Open commit View diff
77 hash_key, -- hash key
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
78
      false, -- is write
Open commit View diff
78 false, -- is write
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
79
      smtp_access_cb, --callback
Open commit View diff
79 smtp_access_cb, --callback
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
80
      'HMGET', -- command
Open commit View diff
80 'HMGET', -- command
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
81
      smtp_access_table -- arguments
Open commit View diff
81 smtp_access_table -- arguments
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
82
    )
Open commit View diff
82 )
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
83
    if not redis_ret_user then
Open commit View diff
83 if not redis_ret_user then
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
84
      rspamd_logger.infox(rspamd_config, "cannot check smtp_access redis map")
Open commit View diff
84 rspamd_logger.infox(rspamd_config, "cannot check smtp_access redis map")
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
85
    end
Open commit View diff
85 end
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
86
  end,
Open commit View diff
86 end,
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
87
  priority = 10
Open commit View diff
87 priority = 10
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
88
})
Open commit View diff
88 })
same change c355bc2

[Rspamd] Prepare SMTP ip restriction, WIP

Full commit hash
c355bc2b6992786f408ee4bfe49155f71a17cc19
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
89
Open commit View diff
89
andryyy over 5 years ago 7bcb941

[Rspamd] Handle Postmaster in and outbound as trusted

Full commit hash
7bcb9414ab32ecd7f0d0e26a22d4ad6a05967c56
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
90
rspamd_config:register_symbol({
Open commit View diff
90 rspamd_config:register_symbol({
same change 7bcb941

[Rspamd] Handle Postmaster in and outbound as trusted

Full commit hash
7bcb9414ab32ecd7f0d0e26a22d4ad6a05967c56
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
91
  name = 'POSTMASTER_HANDLER',
Open commit View diff
91 name = 'POSTMASTER_HANDLER',
same change 7bcb941

[Rspamd] Handle Postmaster in and outbound as trusted

Full commit hash
7bcb9414ab32ecd7f0d0e26a22d4ad6a05967c56
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
92
  type = 'prefilter',
Open commit View diff
92 type = 'prefilter',
same change 7bcb941

[Rspamd] Handle Postmaster in and outbound as trusted

Full commit hash
7bcb9414ab32ecd7f0d0e26a22d4ad6a05967c56
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
93
  callback = function(task)
Open commit View diff
93 callback = function(task)
same change 7bcb941

[Rspamd] Handle Postmaster in and outbound as trusted

Full commit hash
7bcb9414ab32ecd7f0d0e26a22d4ad6a05967c56
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
94
  local rcpts = task:get_recipients('smtp')
Open commit View diff
94 local rcpts = task:get_recipients('smtp')
same change 7bcb941

[Rspamd] Handle Postmaster in and outbound as trusted

Full commit hash
7bcb9414ab32ecd7f0d0e26a22d4ad6a05967c56
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
95
  local rspamd_logger = require "rspamd_logger"
Open commit View diff
95 local rspamd_logger = require "rspamd_logger"
same change 7bcb941

[Rspamd] Handle Postmaster in and outbound as trusted

Full commit hash
7bcb9414ab32ecd7f0d0e26a22d4ad6a05967c56
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
96
  local lua_util = require "lua_util"
Open commit View diff
96 local lua_util = require "lua_util"
same change 7bcb941

[Rspamd] Handle Postmaster in and outbound as trusted

Full commit hash
7bcb9414ab32ecd7f0d0e26a22d4ad6a05967c56
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
97
  local from = task:get_from(1)
Open commit View diff
97 local from = task:get_from(1)
same change 7bcb941

[Rspamd] Handle Postmaster in and outbound as trusted

Full commit hash
7bcb9414ab32ecd7f0d0e26a22d4ad6a05967c56
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
98
Open commit View diff
98
same change 7bcb941

[Rspamd] Handle Postmaster in and outbound as trusted

Full commit hash
7bcb9414ab32ecd7f0d0e26a22d4ad6a05967c56
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
99
  -- not applying to mails with more than one rcpt to avoid bypassing filters by addressing postmaster
Open commit View diff
99 -- not applying to mails with more than one rcpt to avoid bypassing filters by addressing postmaster
same change 7bcb941

[Rspamd] Handle Postmaster in and outbound as trusted

Full commit hash
7bcb9414ab32ecd7f0d0e26a22d4ad6a05967c56
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
100
  if rcpts and #rcpts == 1 then
Open commit View diff
100 if rcpts and #rcpts == 1 then
same change 7bcb941

[Rspamd] Handle Postmaster in and outbound as trusted

Full commit hash
7bcb9414ab32ecd7f0d0e26a22d4ad6a05967c56
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
101
    for _,rcpt in ipairs(rcpts) do
Open commit View diff
101 for _,rcpt in ipairs(rcpts) do
same change 7bcb941

[Rspamd] Handle Postmaster in and outbound as trusted

Full commit hash
7bcb9414ab32ecd7f0d0e26a22d4ad6a05967c56
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
102
      local rcpt_split = rspamd_str_split(rcpt['addr'], '@')
Open commit View diff
102 local rcpt_split = rspamd_str_split(rcpt['addr'], '@')
same change 7bcb941

[Rspamd] Handle Postmaster in and outbound as trusted

Full commit hash
7bcb9414ab32ecd7f0d0e26a22d4ad6a05967c56
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
103
      if #rcpt_split == 2 then
Open commit View diff
103 if #rcpt_split == 2 then
same change 7bcb941

[Rspamd] Handle Postmaster in and outbound as trusted

Full commit hash
7bcb9414ab32ecd7f0d0e26a22d4ad6a05967c56
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
104
        if rcpt_split[1] == 'postmaster' then
Open commit View diff
104 if rcpt_split[1] == 'postmaster' then
Dmitriy Alekseev 12 months ago 842cb23

[Rspamd] Fill module name for set_pre_result actions (#6630)

Full commit hash
842cb235b610c54f7eb5ae9337ca36cfe997fb40
Author
Dmitriy Alekseev <[email protected]>
Date
12 months ago
Selected line
105
          task:set_pre_result('accept', 'whitelisting postmaster smtp rcpt', 'postmaster')
Open commit View diff
105 task:set_pre_result('accept', 'whitelisting postmaster smtp rcpt', 'postmaster')
andryyy over 5 years ago 7bcb941

[Rspamd] Handle Postmaster in and outbound as trusted

Full commit hash
7bcb9414ab32ecd7f0d0e26a22d4ad6a05967c56
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
106
          return
Open commit View diff
106 return
same change 7bcb941

[Rspamd] Handle Postmaster in and outbound as trusted

Full commit hash
7bcb9414ab32ecd7f0d0e26a22d4ad6a05967c56
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
107
        end
Open commit View diff
107 end
same change 7bcb941

[Rspamd] Handle Postmaster in and outbound as trusted

Full commit hash
7bcb9414ab32ecd7f0d0e26a22d4ad6a05967c56
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
108
      end
Open commit View diff
108 end
same change 7bcb941

[Rspamd] Handle Postmaster in and outbound as trusted

Full commit hash
7bcb9414ab32ecd7f0d0e26a22d4ad6a05967c56
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
109
    end
Open commit View diff
109 end
same change 7bcb941

[Rspamd] Handle Postmaster in and outbound as trusted

Full commit hash
7bcb9414ab32ecd7f0d0e26a22d4ad6a05967c56
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
110
  end
Open commit View diff
110 end
same change 7bcb941

[Rspamd] Handle Postmaster in and outbound as trusted

Full commit hash
7bcb9414ab32ecd7f0d0e26a22d4ad6a05967c56
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
111
Open commit View diff
111
same change 7bcb941

[Rspamd] Handle Postmaster in and outbound as trusted

Full commit hash
7bcb9414ab32ecd7f0d0e26a22d4ad6a05967c56
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
112
  if from then
Open commit View diff
112 if from then
same change 7bcb941

[Rspamd] Handle Postmaster in and outbound as trusted

Full commit hash
7bcb9414ab32ecd7f0d0e26a22d4ad6a05967c56
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
113
    for _,fr in ipairs(from) do
Open commit View diff
113 for _,fr in ipairs(from) do
same change 7bcb941

[Rspamd] Handle Postmaster in and outbound as trusted

Full commit hash
7bcb9414ab32ecd7f0d0e26a22d4ad6a05967c56
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
114
      local fr_split = rspamd_str_split(fr['addr'], '@')
Open commit View diff
114 local fr_split = rspamd_str_split(fr['addr'], '@')
same change 7bcb941

[Rspamd] Handle Postmaster in and outbound as trusted

Full commit hash
7bcb9414ab32ecd7f0d0e26a22d4ad6a05967c56
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
115
      if #fr_split == 2 then
Open commit View diff
115 if #fr_split == 2 then
andryyy over 5 years ago d94b5e4

[Rspamd] Add symbol HAM_TRAP or SPAM_TRAP for trap aliases

Full commit hash
d94b5e43eaee04d74a66af6273c1cee319debebe
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
116
        if fr_split[1] == 'postmaster' and task:get_user() then
Open commit View diff
116 if fr_split[1] == 'postmaster' and task:get_user() then
andryyy over 5 years ago 7bcb941

[Rspamd] Handle Postmaster in and outbound as trusted

Full commit hash
7bcb9414ab32ecd7f0d0e26a22d4ad6a05967c56
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
117
          -- no whitelist, keep signatures
Open commit View diff
117 -- no whitelist, keep signatures
andryyy over 5 years ago d94b5e4

[Rspamd] Add symbol HAM_TRAP or SPAM_TRAP for trap aliases

Full commit hash
d94b5e43eaee04d74a66af6273c1cee319debebe
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
118
          task:insert_result(true, 'POSTMASTER_FROM', -2500.0)
Open commit View diff
118 task:insert_result(true, 'POSTMASTER_FROM', -2500.0)
andryyy over 5 years ago 7bcb941

[Rspamd] Handle Postmaster in and outbound as trusted

Full commit hash
7bcb9414ab32ecd7f0d0e26a22d4ad6a05967c56
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
119
          return
Open commit View diff
119 return
same change 7bcb941

[Rspamd] Handle Postmaster in and outbound as trusted

Full commit hash
7bcb9414ab32ecd7f0d0e26a22d4ad6a05967c56
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
120
        end
Open commit View diff
120 end
same change 7bcb941

[Rspamd] Handle Postmaster in and outbound as trusted

Full commit hash
7bcb9414ab32ecd7f0d0e26a22d4ad6a05967c56
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
121
      end
Open commit View diff
121 end
same change 7bcb941

[Rspamd] Handle Postmaster in and outbound as trusted

Full commit hash
7bcb9414ab32ecd7f0d0e26a22d4ad6a05967c56
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
122
    end
Open commit View diff
122 end
same change 7bcb941

[Rspamd] Handle Postmaster in and outbound as trusted

Full commit hash
7bcb9414ab32ecd7f0d0e26a22d4ad6a05967c56
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
123
  end
Open commit View diff
123 end
same change 7bcb941

[Rspamd] Handle Postmaster in and outbound as trusted

Full commit hash
7bcb9414ab32ecd7f0d0e26a22d4ad6a05967c56
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
124
Open commit View diff
124
same change 7bcb941

[Rspamd] Handle Postmaster in and outbound as trusted

Full commit hash
7bcb9414ab32ecd7f0d0e26a22d4ad6a05967c56
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
125
  end,
Open commit View diff
125 end,
andryyy over 5 years ago 61bb321

[Rspamd] Fix tag handling for aliases

Full commit hash
61bb3219dfd10bc4000df25873988402f37fda06
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
126
  priority = 10
Open commit View diff
126 priority = 10
andryyy almost 6 years ago 0c30d32

[Rspamd] Resolve direct aliases (also fixes tagging options)

Full commit hash
0c30d32fdb94e858318fe2bfbf81c2540741b221
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
127
})
Open commit View diff
127 })
same change 0c30d32

[Rspamd] Resolve direct aliases (also fixes tagging options)

Full commit hash
0c30d32fdb94e858318fe2bfbf81c2540741b221
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
128
Open commit View diff
128
André almost 8 years ago afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
129
rspamd_config:register_symbol({
Open commit View diff
129 rspamd_config:register_symbol({
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
130
  name = 'KEEP_SPAM',
Open commit View diff
130 name = 'KEEP_SPAM',
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
131
  type = 'prefilter',
Open commit View diff
131 type = 'prefilter',
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
132
  callback = function(task)
Open commit View diff
132 callback = function(task)
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
133
    local util = require("rspamd_util")
Open commit View diff
133 local util = require("rspamd_util")
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
134
    local rspamd_logger = require "rspamd_logger"
Open commit View diff
134 local rspamd_logger = require "rspamd_logger"
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
135
    local rspamd_ip = require 'rspamd_ip'
Open commit View diff
135 local rspamd_ip = require 'rspamd_ip'
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
136
    local uname = task:get_user()
Open commit View diff
136 local uname = task:get_user()
André almost 8 years ago 1499094

[PHP-FPM] Increase PHP memory limit for "web" to 512M

Full commit hash
1499094b61b74f0595cbe52512814c15157725fd
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
137
Open commit View diff
137
André almost 8 years ago afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
138
    if uname then
Open commit View diff
138 if uname then
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
139
      return false
Open commit View diff
139 return false
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
140
    end
Open commit View diff
140 end
André almost 8 years ago 1499094

[PHP-FPM] Increase PHP memory limit for "web" to 512M

Full commit hash
1499094b61b74f0595cbe52512814c15157725fd
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
141
Open commit View diff
141
André almost 8 years ago afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
142
    local redis_params = rspamd_parse_redis_server('keep_spam')
Open commit View diff
142 local redis_params = rspamd_parse_redis_server('keep_spam')
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
143
    local ip = task:get_from_ip()
Open commit View diff
143 local ip = task:get_from_ip()
André almost 8 years ago 1499094

[PHP-FPM] Increase PHP memory limit for "web" to 512M

Full commit hash
1499094b61b74f0595cbe52512814c15157725fd
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
144
Open commit View diff
144
andryyy almost 7 years ago ee57b59

[Rspamd] Various fixes for Rspamd 2.0, neural network activated, autolearning activated (auto-keeps a ratio)

Full commit hash
ee57b5921f59e7f49dabdb37d8ae93d8a7744aab
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
145
    if ip == nil or not ip:is_valid() then
Open commit View diff
145 if ip == nil or not ip:is_valid() then
André almost 8 years ago 1499094

[PHP-FPM] Increase PHP memory limit for "web" to 512M

Full commit hash
1499094b61b74f0595cbe52512814c15157725fd
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
146
      return false
Open commit View diff
146 return false
same change 1499094

[PHP-FPM] Increase PHP memory limit for "web" to 512M

Full commit hash
1499094b61b74f0595cbe52512814c15157725fd
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
147
    end
Open commit View diff
147 end
same change 1499094

[PHP-FPM] Increase PHP memory limit for "web" to 512M

Full commit hash
1499094b61b74f0595cbe52512814c15157725fd
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
148
Open commit View diff
148
DerLinkman 7 months ago 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
149
    -- Helper function to parse IPv6 into 8 segments
Open commit View diff
149 -- Helper function to parse IPv6 into 8 segments
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
150
    local function ipv6_to_segments(ip_str)
Open commit View diff
150 local function ipv6_to_segments(ip_str)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
151
      -- Remove zone identifier if present (e.g., %eth0)
Open commit View diff
151 -- Remove zone identifier if present (e.g., %eth0)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
152
      ip_str = ip_str:gsub("%%.*$", "")
Open commit View diff
152 ip_str = ip_str:gsub("%%.*$", "")
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
153
      
Open commit View diff
153
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
154
      local segments = {}
Open commit View diff
154 local segments = {}
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
155
      
Open commit View diff
155
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
156
      -- Handle :: compression
Open commit View diff
156 -- Handle :: compression
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
157
      if ip_str:find('::') then
Open commit View diff
157 if ip_str:find('::') then
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
158
        local before, after = ip_str:match('^(.*)::(.*)$')
Open commit View diff
158 local before, after = ip_str:match('^(.*)::(.*)$')
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
159
        before = before or ''
Open commit View diff
159 before = before or ''
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
160
        after = after or ''
Open commit View diff
160 after = after or ''
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
161
        
Open commit View diff
161
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
162
        local before_parts = {}
Open commit View diff
162 local before_parts = {}
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
163
        local after_parts = {}
Open commit View diff
163 local after_parts = {}
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
164
        
Open commit View diff
164
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
165
        if before ~= '' then
Open commit View diff
165 if before ~= '' then
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
166
          for seg in before:gmatch('[^:]+') do
Open commit View diff
166 for seg in before:gmatch('[^:]+') do
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
167
            table.insert(before_parts, tonumber(seg, 16) or 0)
Open commit View diff
167 table.insert(before_parts, tonumber(seg, 16) or 0)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
168
          end
Open commit View diff
168 end
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
169
        end
Open commit View diff
169 end
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
170
        
Open commit View diff
170
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
171
        if after ~= '' then
Open commit View diff
171 if after ~= '' then
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
172
          for seg in after:gmatch('[^:]+') do
Open commit View diff
172 for seg in after:gmatch('[^:]+') do
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
173
            table.insert(after_parts, tonumber(seg, 16) or 0)
Open commit View diff
173 table.insert(after_parts, tonumber(seg, 16) or 0)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
174
          end
Open commit View diff
174 end
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
175
        end
Open commit View diff
175 end
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
176
        
Open commit View diff
176
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
177
        -- Add before segments
Open commit View diff
177 -- Add before segments
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
178
        for _, seg in ipairs(before_parts) do
Open commit View diff
178 for _, seg in ipairs(before_parts) do
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
179
          table.insert(segments, seg)
Open commit View diff
179 table.insert(segments, seg)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
180
        end
Open commit View diff
180 end
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
181
        
Open commit View diff
181
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
182
        -- Add compressed zeros
Open commit View diff
182 -- Add compressed zeros
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
183
        local zeros_needed = 8 - #before_parts - #after_parts
Open commit View diff
183 local zeros_needed = 8 - #before_parts - #after_parts
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
184
        for i = 1, zeros_needed do
Open commit View diff
184 for i = 1, zeros_needed do
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
185
          table.insert(segments, 0)
Open commit View diff
185 table.insert(segments, 0)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
186
        end
Open commit View diff
186 end
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
187
        
Open commit View diff
187
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
188
        -- Add after segments
Open commit View diff
188 -- Add after segments
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
189
        for _, seg in ipairs(after_parts) do
Open commit View diff
189 for _, seg in ipairs(after_parts) do
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
190
          table.insert(segments, seg)
Open commit View diff
190 table.insert(segments, seg)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
191
        end
Open commit View diff
191 end
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
192
      else
Open commit View diff
192 else
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
193
        -- No compression
Open commit View diff
193 -- No compression
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
194
        for seg in ip_str:gmatch('[^:]+') do
Open commit View diff
194 for seg in ip_str:gmatch('[^:]+') do
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
195
          table.insert(segments, tonumber(seg, 16) or 0)
Open commit View diff
195 table.insert(segments, tonumber(seg, 16) or 0)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
196
        end
Open commit View diff
196 end
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
197
      end
Open commit View diff
197 end
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
198
      
Open commit View diff
198
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
199
      -- Ensure we have exactly 8 segments
Open commit View diff
199 -- Ensure we have exactly 8 segments
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
200
      while #segments < 8 do
Open commit View diff
200 while #segments < 8 do
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
201
        table.insert(segments, 0)
Open commit View diff
201 table.insert(segments, 0)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
202
      end
Open commit View diff
202 end
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
203
      
Open commit View diff
203
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
204
      return segments
Open commit View diff
204 return segments
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
205
    end
Open commit View diff
205 end
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
206
Open commit View diff
206
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
207
    -- Generate all common IPv6 notations
Open commit View diff
207 -- Generate all common IPv6 notations
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
208
    local function get_ipv6_variants(ip_str)
Open commit View diff
208 local function get_ipv6_variants(ip_str)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
209
      local variants = {}
Open commit View diff
209 local variants = {}
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
210
      local seen = {}
Open commit View diff
210 local seen = {}
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
211
      
Open commit View diff
211
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
212
      local function add_variant(v)
Open commit View diff
212 local function add_variant(v)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
213
        if v and not seen[v] then
Open commit View diff
213 if v and not seen[v] then
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
214
          table.insert(variants, v)
Open commit View diff
214 table.insert(variants, v)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
215
          seen[v] = true
Open commit View diff
215 seen[v] = true
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
216
        end
Open commit View diff
216 end
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
217
      end
Open commit View diff
217 end
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
218
      
Open commit View diff
218
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
219
      -- For IPv4, just return the original
Open commit View diff
219 -- For IPv4, just return the original
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
220
      if not ip_str:find(':') then
Open commit View diff
220 if not ip_str:find(':') then
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
221
        add_variant(ip_str)
Open commit View diff
221 add_variant(ip_str)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
222
        return variants
Open commit View diff
222 return variants
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
223
      end
Open commit View diff
223 end
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
224
      
Open commit View diff
224
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
225
      local segments = ipv6_to_segments(ip_str)
Open commit View diff
225 local segments = ipv6_to_segments(ip_str)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
226
      
Open commit View diff
226
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
227
      -- 1. Fully expanded form (all zeros shown as 0000)
Open commit View diff
227 -- 1. Fully expanded form (all zeros shown as 0000)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
228
      local expanded_parts = {}
Open commit View diff
228 local expanded_parts = {}
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
229
      for _, seg in ipairs(segments) do
Open commit View diff
229 for _, seg in ipairs(segments) do
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
230
        table.insert(expanded_parts, string.format('%04x', seg))
Open commit View diff
230 table.insert(expanded_parts, string.format('%04x', seg))
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
231
      end
Open commit View diff
231 end
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
232
      add_variant(table.concat(expanded_parts, ':'))
Open commit View diff
232 add_variant(table.concat(expanded_parts, ':'))
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
233
      
Open commit View diff
233
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
234
      -- 2. Standard form (no leading zeros, but all segments present)
Open commit View diff
234 -- 2. Standard form (no leading zeros, but all segments present)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
235
      local standard_parts = {}
Open commit View diff
235 local standard_parts = {}
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
236
      for _, seg in ipairs(segments) do
Open commit View diff
236 for _, seg in ipairs(segments) do
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
237
        table.insert(standard_parts, string.format('%x', seg))
Open commit View diff
237 table.insert(standard_parts, string.format('%x', seg))
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
238
      end
Open commit View diff
238 end
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
239
      add_variant(table.concat(standard_parts, ':'))
Open commit View diff
239 add_variant(table.concat(standard_parts, ':'))
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
240
      
Open commit View diff
240
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
241
      -- 3. Find all possible :: compressions
Open commit View diff
241 -- 3. Find all possible :: compressions
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
242
      -- RFC 5952: compress the longest run of consecutive zeros
Open commit View diff
242 -- RFC 5952: compress the longest run of consecutive zeros
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
243
      -- But we need to check all possibilities since Redis might have any form
Open commit View diff
243 -- But we need to check all possibilities since Redis might have any form
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
244
      
Open commit View diff
244
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
245
      -- Find all zero runs
Open commit View diff
245 -- Find all zero runs
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
246
      local zero_runs = {}
Open commit View diff
246 local zero_runs = {}
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
247
      local in_run = false
Open commit View diff
247 local in_run = false
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
248
      local run_start = 0
Open commit View diff
248 local run_start = 0
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
249
      local run_length = 0
Open commit View diff
249 local run_length = 0
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
250
      
Open commit View diff
250
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
251
      for i = 1, 8 do
Open commit View diff
251 for i = 1, 8 do
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
252
        if segments[i] == 0 then
Open commit View diff
252 if segments[i] == 0 then
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
253
          if not in_run then
Open commit View diff
253 if not in_run then
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
254
            in_run = true
Open commit View diff
254 in_run = true
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
255
            run_start = i
Open commit View diff
255 run_start = i
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
256
            run_length = 1
Open commit View diff
256 run_length = 1
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
257
          else
Open commit View diff
257 else
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
258
            run_length = run_length + 1
Open commit View diff
258 run_length = run_length + 1
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
259
          end
Open commit View diff
259 end
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
260
        else
Open commit View diff
260 else
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
261
          if in_run then
Open commit View diff
261 if in_run then
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
262
            if run_length >= 1 then  -- Allow single zero compression too
Open commit View diff
262 if run_length >= 1 then -- Allow single zero compression too
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
263
              table.insert(zero_runs, {start = run_start, length = run_length})
Open commit View diff
263 table.insert(zero_runs, {start = run_start, length = run_length})
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
264
            end
Open commit View diff
264 end
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
265
            in_run = false
Open commit View diff
265 in_run = false
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
266
          end
Open commit View diff
266 end
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
267
        end
Open commit View diff
267 end
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
268
      end
Open commit View diff
268 end
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
269
      
Open commit View diff
269
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
270
      -- Don't forget the last run
Open commit View diff
270 -- Don't forget the last run
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
271
      if in_run and run_length >= 1 then
Open commit View diff
271 if in_run and run_length >= 1 then
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
272
        table.insert(zero_runs, {start = run_start, length = run_length})
Open commit View diff
272 table.insert(zero_runs, {start = run_start, length = run_length})
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
273
      end
Open commit View diff
273 end
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
274
      
Open commit View diff
274
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
275
      -- Generate variant for each zero run compression
Open commit View diff
275 -- Generate variant for each zero run compression
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
276
      for _, run in ipairs(zero_runs) do
Open commit View diff
276 for _, run in ipairs(zero_runs) do
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
277
        local parts = {}
Open commit View diff
277 local parts = {}
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
278
        
Open commit View diff
278
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
279
        -- Before compression
Open commit View diff
279 -- Before compression
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
280
        for i = 1, run.start - 1 do
Open commit View diff
280 for i = 1, run.start - 1 do
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
281
          table.insert(parts, string.format('%x', segments[i]))
Open commit View diff
281 table.insert(parts, string.format('%x', segments[i]))
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
282
        end
Open commit View diff
282 end
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
283
        
Open commit View diff
283
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
284
        -- The compression
Open commit View diff
284 -- The compression
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
285
        if run.start == 1 then
Open commit View diff
285 if run.start == 1 then
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
286
          table.insert(parts, '')
Open commit View diff
286 table.insert(parts, '')
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
287
          table.insert(parts, '')
Open commit View diff
287 table.insert(parts, '')
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
288
        elseif run.start + run.length - 1 == 8 then
Open commit View diff
288 elseif run.start + run.length - 1 == 8 then
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
289
          table.insert(parts, '')
Open commit View diff
289 table.insert(parts, '')
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
290
          table.insert(parts, '')
Open commit View diff
290 table.insert(parts, '')
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
291
        else
Open commit View diff
291 else
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
292
          table.insert(parts, '')
Open commit View diff
292 table.insert(parts, '')
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
293
        end
Open commit View diff
293 end
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
294
        
Open commit View diff
294
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
295
        -- After compression
Open commit View diff
295 -- After compression
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
296
        for i = run.start + run.length, 8 do
Open commit View diff
296 for i = run.start + run.length, 8 do
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
297
          table.insert(parts, string.format('%x', segments[i]))
Open commit View diff
297 table.insert(parts, string.format('%x', segments[i]))
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
298
        end
Open commit View diff
298 end
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
299
        
Open commit View diff
299
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
300
        local compressed = table.concat(parts, ':'):gsub('::+', '::')
Open commit View diff
300 local compressed = table.concat(parts, ':'):gsub('::+', '::')
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
301
        add_variant(compressed)
Open commit View diff
301 add_variant(compressed)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
302
      end
Open commit View diff
302 end
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
303
      
Open commit View diff
303
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
304
      return variants
Open commit View diff
304 return variants
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
305
    end
Open commit View diff
305 end
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
306
Open commit View diff
306
André almost 8 years ago 1b5409f

[Rspamd] Check if ip is valid (KEEP_SPAM symbol), fixes #1759

Full commit hash
1b5409f3fa92a58b8a77769fde09475ea5688cb2
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
307
    local from_ip_string = tostring(ip)
Open commit View diff
307 local from_ip_string = tostring(ip)
DerLinkman 7 months ago 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
308
    local ip_check_table = {}
Open commit View diff
308 local ip_check_table = {}
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
309
    
Open commit View diff
309
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
310
    -- Add all variants of the exact IP
Open commit View diff
310 -- Add all variants of the exact IP
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
311
    for _, variant in ipairs(get_ipv6_variants(from_ip_string)) do
Open commit View diff
311 for _, variant in ipairs(get_ipv6_variants(from_ip_string)) do
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
312
      table.insert(ip_check_table, variant)
Open commit View diff
312 table.insert(ip_check_table, variant)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
313
    end
Open commit View diff
313 end
André almost 8 years ago 1499094

[PHP-FPM] Increase PHP memory limit for "web" to 512M

Full commit hash
1499094b61b74f0595cbe52512814c15157725fd
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
314
Open commit View diff
314
André almost 8 years ago afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
315
    local maxbits = 128
Open commit View diff
315 local maxbits = 128
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
316
    local minbits = 32
Open commit View diff
316 local minbits = 32
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
317
    if ip:get_version() == 4 then
Open commit View diff
317 if ip:get_version() == 4 then
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
318
        maxbits = 32
Open commit View diff
318 maxbits = 32
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
319
        minbits = 8
Open commit View diff
319 minbits = 8
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
320
    end
Open commit View diff
320 end
DerLinkman 7 months ago 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
321
    
Open commit View diff
321
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
322
    -- Add all CIDR notations with variants
Open commit View diff
322 -- Add all CIDR notations with variants
André almost 8 years ago afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
323
    for i=maxbits,minbits,-1 do
Open commit View diff
323 for i=maxbits,minbits,-1 do
DerLinkman 7 months ago 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
324
      local masked_ip = ip:apply_mask(i)
Open commit View diff
324 local masked_ip = ip:apply_mask(i)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
325
      local cidr_base = masked_ip:to_string()
Open commit View diff
325 local cidr_base = masked_ip:to_string()
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
326
      
Open commit View diff
326
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
327
      for _, variant in ipairs(get_ipv6_variants(cidr_base)) do
Open commit View diff
327 for _, variant in ipairs(get_ipv6_variants(cidr_base)) do
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
328
        local cidr = variant .. "/" .. i
Open commit View diff
328 local cidr = variant .. "/" .. i
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
329
        table.insert(ip_check_table, cidr)
Open commit View diff
329 table.insert(ip_check_table, cidr)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
330
      end
Open commit View diff
330 end
André almost 8 years ago afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
331
    end
Open commit View diff
331 end
DerLinkman 7 months ago 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
332
    
Open commit View diff
332
André almost 8 years ago afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
333
    local function keep_spam_cb(err, data)
Open commit View diff
333 local function keep_spam_cb(err, data)
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
334
      if err then
Open commit View diff
334 if err then
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
335
        rspamd_logger.infox(rspamd_config, "keep_spam query request for ip %s returned invalid or empty data (\"%s\") or error (\"%s\")", ip, data, err)
Open commit View diff
335 rspamd_logger.infox(rspamd_config, "keep_spam query request for ip %s returned invalid or empty data (\"%s\") or error (\"%s\")", ip, data, err)
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
336
        return false
Open commit View diff
336 return false
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
337
      else
Open commit View diff
337 else
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
338
        for k,v in pairs(data) do
Open commit View diff
338 for k,v in pairs(data) do
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
339
          if (v and v ~= userdata and v == '1') then
Open commit View diff
339 if (v and v ~= userdata and v == '1') then
DerLinkman 7 months ago 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
340
            rspamd_logger.infox(rspamd_config, "found ip %s (checked as: %s) in keep_spam map, setting pre-result accept", from_ip_string, ip_check_table[k])
Open commit View diff
340 rspamd_logger.infox(rspamd_config, "found ip %s (checked as: %s) in keep_spam map, setting pre-result accept", from_ip_string, ip_check_table[k])
Dmitriy Alekseev 12 months ago 842cb23

[Rspamd] Fill module name for set_pre_result actions (#6630)

Full commit hash
842cb235b610c54f7eb5ae9337ca36cfe997fb40
Author
Dmitriy Alekseev <[email protected]>
Date
12 months ago
Selected line
341
            task:set_pre_result('accept', 'ip matched with forward hosts', 'keep_spam')
Open commit View diff
341 task:set_pre_result('accept', 'ip matched with forward hosts', 'keep_spam')
DerLinkman 7 months ago 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
342
            task:set_flag('no_stat')
Open commit View diff
342 task:set_flag('no_stat')
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
343
            return
Open commit View diff
343 return
André almost 8 years ago afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
344
          end
Open commit View diff
344 end
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
345
        end
Open commit View diff
345 end
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
346
      end
Open commit View diff
346 end
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
347
    end
Open commit View diff
347 end
DerLinkman 7 months ago 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
348
    
Open commit View diff
348
André almost 8 years ago afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
349
    table.insert(ip_check_table, 1, 'KEEP_SPAM')
Open commit View diff
349 table.insert(ip_check_table, 1, 'KEEP_SPAM')
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
350
    local redis_ret_user = rspamd_redis_make_request(task,
Open commit View diff
350 local redis_ret_user = rspamd_redis_make_request(task,
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
351
      redis_params, -- connect params
Open commit View diff
351 redis_params, -- connect params
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
352
      'KEEP_SPAM', -- hash key
Open commit View diff
352 'KEEP_SPAM', -- hash key
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
353
      false, -- is write
Open commit View diff
353 false, -- is write
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
354
      keep_spam_cb, --callback
Open commit View diff
354 keep_spam_cb, --callback
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
355
      'HMGET', -- command
Open commit View diff
355 'HMGET', -- command
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
356
      ip_check_table -- arguments
Open commit View diff
356 ip_check_table -- arguments
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
357
    )
Open commit View diff
357 )
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
358
    if not redis_ret_user then
Open commit View diff
358 if not redis_ret_user then
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
359
      rspamd_logger.infox(rspamd_config, "cannot check keep_spam redis map")
Open commit View diff
359 rspamd_logger.infox(rspamd_config, "cannot check keep_spam redis map")
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
360
    end
Open commit View diff
360 end
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
361
  end,
Open commit View diff
361 end,
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
362
  priority = 19
Open commit View diff
362 priority = 19
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
363
})
Open commit View diff
363 })
same change afc18fd

[Rspamd] Update bad asn, move KEEP_SPAM to a custom lua function

Full commit hash
afc18fd46935e201a9be85ab636f0ed0b77209be
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
364
Open commit View diff
364
andryyy over 6 years ago 9d04d0e

[Rspamd] Add X-Last-TLS-Session-Version header

Full commit hash
9d04d0ee4a0b368df5d90b0d8f989bd71767e483
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
365
rspamd_config:register_symbol({
Open commit View diff
365 rspamd_config:register_symbol({
same change 9d04d0e

[Rspamd] Add X-Last-TLS-Session-Version header

Full commit hash
9d04d0ee4a0b368df5d90b0d8f989bd71767e483
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
366
  name = 'TLS_HEADER',
Open commit View diff
366 name = 'TLS_HEADER',
same change 9d04d0e

[Rspamd] Add X-Last-TLS-Session-Version header

Full commit hash
9d04d0ee4a0b368df5d90b0d8f989bd71767e483
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
367
  type = 'postfilter',
Open commit View diff
367 type = 'postfilter',
same change 9d04d0e

[Rspamd] Add X-Last-TLS-Session-Version header

Full commit hash
9d04d0ee4a0b368df5d90b0d8f989bd71767e483
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
368
  callback = function(task)
Open commit View diff
368 callback = function(task)
same change 9d04d0e

[Rspamd] Add X-Last-TLS-Session-Version header

Full commit hash
9d04d0ee4a0b368df5d90b0d8f989bd71767e483
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
369
    local rspamd_logger = require "rspamd_logger"
Open commit View diff
369 local rspamd_logger = require "rspamd_logger"
same change 9d04d0e

[Rspamd] Add X-Last-TLS-Session-Version header

Full commit hash
9d04d0ee4a0b368df5d90b0d8f989bd71767e483
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
370
    local tls_tag = task:get_request_header('TLS-Version')
Open commit View diff
370 local tls_tag = task:get_request_header('TLS-Version')
same change 9d04d0e

[Rspamd] Add X-Last-TLS-Session-Version header

Full commit hash
9d04d0ee4a0b368df5d90b0d8f989bd71767e483
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
371
    if type(tls_tag) == 'nil' then
Open commit View diff
371 if type(tls_tag) == 'nil' then
same change 9d04d0e

[Rspamd] Add X-Last-TLS-Session-Version header

Full commit hash
9d04d0ee4a0b368df5d90b0d8f989bd71767e483
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
372
      task:set_milter_reply({
Open commit View diff
372 task:set_milter_reply({
same change 9d04d0e

[Rspamd] Add X-Last-TLS-Session-Version header

Full commit hash
9d04d0ee4a0b368df5d90b0d8f989bd71767e483
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
373
        add_headers = {['X-Last-TLS-Session-Version'] = 'None'}
Open commit View diff
373 add_headers = {['X-Last-TLS-Session-Version'] = 'None'}
same change 9d04d0e

[Rspamd] Add X-Last-TLS-Session-Version header

Full commit hash
9d04d0ee4a0b368df5d90b0d8f989bd71767e483
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
374
      })
Open commit View diff
374 })
same change 9d04d0e

[Rspamd] Add X-Last-TLS-Session-Version header

Full commit hash
9d04d0ee4a0b368df5d90b0d8f989bd71767e483
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
375
    else
Open commit View diff
375 else
same change 9d04d0e

[Rspamd] Add X-Last-TLS-Session-Version header

Full commit hash
9d04d0ee4a0b368df5d90b0d8f989bd71767e483
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
376
      task:set_milter_reply({
Open commit View diff
376 task:set_milter_reply({
same change 9d04d0e

[Rspamd] Add X-Last-TLS-Session-Version header

Full commit hash
9d04d0ee4a0b368df5d90b0d8f989bd71767e483
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
377
        add_headers = {['X-Last-TLS-Session-Version'] = tostring(tls_tag)}
Open commit View diff
377 add_headers = {['X-Last-TLS-Session-Version'] = tostring(tls_tag)}
same change 9d04d0e

[Rspamd] Add X-Last-TLS-Session-Version header

Full commit hash
9d04d0ee4a0b368df5d90b0d8f989bd71767e483
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
378
      })
Open commit View diff
378 })
same change 9d04d0e

[Rspamd] Add X-Last-TLS-Session-Version header

Full commit hash
9d04d0ee4a0b368df5d90b0d8f989bd71767e483
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
379
    end
Open commit View diff
379 end
same change 9d04d0e

[Rspamd] Add X-Last-TLS-Session-Version header

Full commit hash
9d04d0ee4a0b368df5d90b0d8f989bd71767e483
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
380
  end,
Open commit View diff
380 end,
same change 9d04d0e

[Rspamd] Add X-Last-TLS-Session-Version header

Full commit hash
9d04d0ee4a0b368df5d90b0d8f989bd71767e483
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
381
  priority = 12
Open commit View diff
381 priority = 12
same change 9d04d0e

[Rspamd] Add X-Last-TLS-Session-Version header

Full commit hash
9d04d0ee4a0b368df5d90b0d8f989bd71767e483
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
382
})
Open commit View diff
382 })
same change 9d04d0e

[Rspamd] Add X-Last-TLS-Session-Version header

Full commit hash
9d04d0ee4a0b368df5d90b0d8f989bd71767e483
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
383
Open commit View diff
383
andryyy over 9 years ago 509a804

Deprecated lua function replaced, better tag handling when spam

Full commit hash
509a804acdb0d7eaa5eb2e2cca199a068fb58efc
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
384
rspamd_config:register_symbol({
Open commit View diff
384 rspamd_config:register_symbol({
same change 509a804

Deprecated lua function replaced, better tag handling when spam

Full commit hash
509a804acdb0d7eaa5eb2e2cca199a068fb58efc
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
385
  name = 'TAG_MOO',
Open commit View diff
385 name = 'TAG_MOO',
same change 509a804

Deprecated lua function replaced, better tag handling when spam

Full commit hash
509a804acdb0d7eaa5eb2e2cca199a068fb58efc
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
386
  type = 'postfilter',
Open commit View diff
386 type = 'postfilter',
DerLinkman 7 months ago 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
387
  flags = 'ignore_passthrough',
Open commit View diff
387 flags = 'ignore_passthrough',
andryyy over 9 years ago 509a804

Deprecated lua function replaced, better tag handling when spam

Full commit hash
509a804acdb0d7eaa5eb2e2cca199a068fb58efc
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
388
  callback = function(task)
Open commit View diff
388 callback = function(task)
same change 509a804

Deprecated lua function replaced, better tag handling when spam

Full commit hash
509a804acdb0d7eaa5eb2e2cca199a068fb58efc
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
389
    local util = require("rspamd_util")
Open commit View diff
389 local util = require("rspamd_util")
same change 509a804

Deprecated lua function replaced, better tag handling when spam

Full commit hash
509a804acdb0d7eaa5eb2e2cca199a068fb58efc
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
390
    local rspamd_logger = require "rspamd_logger"
Open commit View diff
390 local rspamd_logger = require "rspamd_logger"
andryyy over 5 years ago 61bb321

[Rspamd] Fix tag handling for aliases

Full commit hash
61bb3219dfd10bc4000df25873988402f37fda06
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
391
    local redis_params = rspamd_parse_redis_server('taghandler')
Open commit View diff
391 local redis_params = rspamd_parse_redis_server('taghandler')
same change 61bb321

[Rspamd] Fix tag handling for aliases

Full commit hash
61bb3219dfd10bc4000df25873988402f37fda06
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
392
    local rspamd_http = require "rspamd_http"
Open commit View diff
392 local rspamd_http = require "rspamd_http"
same change 61bb321

[Rspamd] Fix tag handling for aliases

Full commit hash
61bb3219dfd10bc4000df25873988402f37fda06
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
393
    local rcpts = task:get_recipients('smtp')
Open commit View diff
393 local rcpts = task:get_recipients('smtp')
same change 61bb321

[Rspamd] Fix tag handling for aliases

Full commit hash
61bb3219dfd10bc4000df25873988402f37fda06
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
394
    local lua_util = require "lua_util"
Open commit View diff
394 local lua_util = require "lua_util"
DocFraggle 5 months ago 5e478a3

Fix lua script sub-addressing (#7037)

Full commit hash
5e478a32df91bac32f9cbb150aad6dd0228f8240
Author
DocFraggle <[email protected]>
Date
5 months ago
Selected line
395
    local tagged_rcpt = task:get_symbol("TAGGED_RCPT")
Open commit View diff
395 local tagged_rcpt = task:get_symbol("TAGGED_RCPT")
andryyy over 9 years ago 09850a7

Use Rspamds new tag symbol

Full commit hash
09850a76e5061c1d760eae403c07a5fd944eba93
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
396
Open commit View diff
396
FreddleSpl0it almost 3 years ago 025fd03

[Rspamd] remove X-Moo-Tag header if unnecessary

Full commit hash
025fd0331038422327a29e699ed9252db2187eb4
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
397
    local function remove_moo_tag()
Open commit View diff
397 local function remove_moo_tag()
same change 025fd03

[Rspamd] remove X-Moo-Tag header if unnecessary

Full commit hash
025fd0331038422327a29e699ed9252db2187eb4
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
398
      local moo_tag_header = task:get_header('X-Moo-Tag', false)
Open commit View diff
398 local moo_tag_header = task:get_header('X-Moo-Tag', false)
same change 025fd03

[Rspamd] remove X-Moo-Tag header if unnecessary

Full commit hash
025fd0331038422327a29e699ed9252db2187eb4
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
399
      if moo_tag_header then
Open commit View diff
399 if moo_tag_header then
same change 025fd03

[Rspamd] remove X-Moo-Tag header if unnecessary

Full commit hash
025fd0331038422327a29e699ed9252db2187eb4
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
400
        task:set_milter_reply({
Open commit View diff
400 task:set_milter_reply({
same change 025fd03

[Rspamd] remove X-Moo-Tag header if unnecessary

Full commit hash
025fd0331038422327a29e699ed9252db2187eb4
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
401
          remove_headers = {['X-Moo-Tag'] = 0},
Open commit View diff
401 remove_headers = {['X-Moo-Tag'] = 0},
same change 025fd03

[Rspamd] remove X-Moo-Tag header if unnecessary

Full commit hash
025fd0331038422327a29e699ed9252db2187eb4
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
402
        })
Open commit View diff
402 })
same change 025fd03

[Rspamd] remove X-Moo-Tag header if unnecessary

Full commit hash
025fd0331038422327a29e699ed9252db2187eb4
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
403
      end
Open commit View diff
403 end
same change 025fd03

[Rspamd] remove X-Moo-Tag header if unnecessary

Full commit hash
025fd0331038422327a29e699ed9252db2187eb4
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
404
      return true
Open commit View diff
404 return true
same change 025fd03

[Rspamd] remove X-Moo-Tag header if unnecessary

Full commit hash
025fd0331038422327a29e699ed9252db2187eb4
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
405
    end
Open commit View diff
405 end
same change 025fd03

[Rspamd] remove X-Moo-Tag header if unnecessary

Full commit hash
025fd0331038422327a29e699ed9252db2187eb4
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
406
Open commit View diff
406
DerLinkman 7 months ago 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
407
    -- Check if we have exactly one recipient
Open commit View diff
407 -- Check if we have exactly one recipient
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
408
    if not (rcpts and #rcpts == 1) then
Open commit View diff
408 if not (rcpts and #rcpts == 1) then
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
409
      rspamd_logger.infox("TAG_MOO: not exactly one rcpt (%s), removing moo tag", rcpts and #rcpts or 0)
Open commit View diff
409 rspamd_logger.infox("TAG_MOO: not exactly one rcpt (%s), removing moo tag", rcpts and #rcpts or 0)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
410
      remove_moo_tag()
Open commit View diff
410 remove_moo_tag()
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
411
      return
Open commit View diff
411 return
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
412
    end
Open commit View diff
412 end
andryyy over 9 years ago 09850a7

Use Rspamds new tag symbol

Full commit hash
09850a76e5061c1d760eae403c07a5fd944eba93
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
413
Open commit View diff
413
DerLinkman 7 months ago 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
414
    local rcpt_addr = rcpts[1]['addr']
Open commit View diff
414 local rcpt_addr = rcpts[1]['addr']
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
415
    local rcpt_user = rcpts[1]['user']
Open commit View diff
415 local rcpt_user = rcpts[1]['user']
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
416
    local rcpt_domain = rcpts[1]['domain']
Open commit View diff
416 local rcpt_domain = rcpts[1]['domain']
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
417
Open commit View diff
417
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
418
    -- Check if recipient has a tag (contains '+')
Open commit View diff
418 -- Check if recipient has a tag (contains '+')
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
419
    local tag = nil
Open commit View diff
419 local tag = nil
DocFraggle 5 months ago 5e478a3

Fix lua script sub-addressing (#7037)

Full commit hash
5e478a32df91bac32f9cbb150aad6dd0228f8240
Author
DocFraggle <[email protected]>
Date
5 months ago
Selected line
420
    if tagged_rcpt ~= nil then
Open commit View diff
420 if tagged_rcpt ~= nil then
same change 5e478a3

Fix lua script sub-addressing (#7037)

Full commit hash
5e478a32df91bac32f9cbb150aad6dd0228f8240
Author
DocFraggle <[email protected]>
Date
5 months ago
Selected line
421
      tag = tagged_rcpt
Open commit View diff
421 tag = tagged_rcpt
same change 5e478a3

Fix lua script sub-addressing (#7037)

Full commit hash
5e478a32df91bac32f9cbb150aad6dd0228f8240
Author
DocFraggle <[email protected]>
Date
5 months ago
Selected line
422
      rspamd_logger.infox("TAG_MOO: found tag in recipient: %s (base: %s, tag: %s)", rcpt_addr, base_user, tag)
Open commit View diff
422 rspamd_logger.infox("TAG_MOO: found tag in recipient: %s (base: %s, tag: %s)", rcpt_addr, base_user, tag)
DerLinkman 7 months ago 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
423
    end
Open commit View diff
423 end
andryyy over 9 years ago 09850a7

Use Rspamds new tag symbol

Full commit hash
09850a76e5061c1d760eae403c07a5fd944eba93
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
424
Open commit View diff
424
DerLinkman 7 months ago 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
425
    if not tag then
Open commit View diff
425 if not tag then
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
426
      rspamd_logger.infox("TAG_MOO: no tag found in recipient %s, removing moo tag", rcpt_addr)
Open commit View diff
426 rspamd_logger.infox("TAG_MOO: no tag found in recipient %s, removing moo tag", rcpt_addr)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
427
      remove_moo_tag()
Open commit View diff
427 remove_moo_tag()
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
428
      return
Open commit View diff
428 return
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
429
    end
Open commit View diff
429 end
andryyy over 5 years ago 61bb321

[Rspamd] Fix tag handling for aliases

Full commit hash
61bb3219dfd10bc4000df25873988402f37fda06
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
430
Open commit View diff
430
DerLinkman 7 months ago 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
431
    -- Optional: Check if domain is a mailcow domain
Open commit View diff
431 -- Optional: Check if domain is a mailcow domain
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
432
    -- When KEEP_SPAM is active, RCPT_MAILCOW_DOMAIN might not be set
Open commit View diff
432 -- When KEEP_SPAM is active, RCPT_MAILCOW_DOMAIN might not be set
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
433
    -- If the mail is being delivered, we can assume it's valid
Open commit View diff
433 -- If the mail is being delivered, we can assume it's valid
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
434
    local mailcow_domain = task:get_symbol("RCPT_MAILCOW_DOMAIN")
Open commit View diff
434 local mailcow_domain = task:get_symbol("RCPT_MAILCOW_DOMAIN")
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
435
    if not mailcow_domain then
Open commit View diff
435 if not mailcow_domain then
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
436
      rspamd_logger.infox("TAG_MOO: RCPT_MAILCOW_DOMAIN not set (possibly due to pre-result), proceeding anyway for domain %s", rcpt_domain)
Open commit View diff
436 rspamd_logger.infox("TAG_MOO: RCPT_MAILCOW_DOMAIN not set (possibly due to pre-result), proceeding anyway for domain %s", rcpt_domain)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
437
    end
Open commit View diff
437 end
andryyy over 5 years ago 61bb321

[Rspamd] Fix tag handling for aliases

Full commit hash
61bb3219dfd10bc4000df25873988402f37fda06
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
438
Open commit View diff
438
DerLinkman 7 months ago 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
439
    local action = task:get_metric_action('default')
Open commit View diff
439 local action = task:get_metric_action('default')
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
440
    rspamd_logger.infox("TAG_MOO: metric action: %s", action)
Open commit View diff
440 rspamd_logger.infox("TAG_MOO: metric action: %s", action)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
441
Open commit View diff
441
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
442
    -- Check if we have a pre-result (e.g., from KEEP_SPAM or POSTMASTER_HANDLER)
Open commit View diff
442 -- Check if we have a pre-result (e.g., from KEEP_SPAM or POSTMASTER_HANDLER)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
443
    local allow_processing = false
Open commit View diff
443 local allow_processing = false
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
444
    
Open commit View diff
444
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
445
    if task.has_pre_result then
Open commit View diff
445 if task.has_pre_result then
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
446
      local has_pre, pre_action = task:has_pre_result()
Open commit View diff
446 local has_pre, pre_action = task:has_pre_result()
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
447
      if has_pre then
Open commit View diff
447 if has_pre then
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
448
        rspamd_logger.infox("TAG_MOO: pre-result detected: %s", tostring(pre_action))
Open commit View diff
448 rspamd_logger.infox("TAG_MOO: pre-result detected: %s", tostring(pre_action))
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
449
        if pre_action == 'accept' then
Open commit View diff
449 if pre_action == 'accept' then
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
450
          allow_processing = true
Open commit View diff
450 allow_processing = true
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
451
          rspamd_logger.infox("TAG_MOO: pre-result is accept, will process")
Open commit View diff
451 rspamd_logger.infox("TAG_MOO: pre-result is accept, will process")
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
452
        end
Open commit View diff
452 end
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
453
      end
Open commit View diff
453 end
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
454
    end
Open commit View diff
454 end
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
455
Open commit View diff
455
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
456
    -- Allow processing for mild actions or when we have pre-result accept
Open commit View diff
456 -- Allow processing for mild actions or when we have pre-result accept
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
457
    if not allow_processing and action ~= 'no action' and action ~= 'greylist' then
Open commit View diff
457 if not allow_processing and action ~= 'no action' and action ~= 'greylist' then
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
458
      rspamd_logger.infox("TAG_MOO: skipping tag handler for action: %s", action)
Open commit View diff
458 rspamd_logger.infox("TAG_MOO: skipping tag handler for action: %s", action)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
459
      remove_moo_tag()
Open commit View diff
459 remove_moo_tag()
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
460
      return true
Open commit View diff
460 return true
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
461
    end
Open commit View diff
461 end
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
462
Open commit View diff
462
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
463
    rspamd_logger.infox("TAG_MOO: processing allowed")
Open commit View diff
463 rspamd_logger.infox("TAG_MOO: processing allowed")
andryyy over 5 years ago 61bb321

[Rspamd] Fix tag handling for aliases

Full commit hash
61bb3219dfd10bc4000df25873988402f37fda06
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
464
Open commit View diff
464
DerLinkman 7 months ago 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
465
    local function http_callback(err_message, code, body, headers)
Open commit View diff
465 local function http_callback(err_message, code, body, headers)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
466
      if body ~= nil and body ~= "" then
Open commit View diff
466 if body ~= nil and body ~= "" then
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
467
        rspamd_logger.infox(rspamd_config, "TAG_MOO: expanding rcpt to \"%s\"", body)
Open commit View diff
467 rspamd_logger.infox(rspamd_config, "TAG_MOO: expanding rcpt to \"%s\"", body)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
468
Open commit View diff
468
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
469
        local function tag_callback_subject(err, data)
Open commit View diff
469 local function tag_callback_subject(err, data)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
470
          if err or type(data) ~= 'string' or data == '' then
Open commit View diff
470 if err or type(data) ~= 'string' or data == '' then
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
471
            rspamd_logger.infox(rspamd_config, "TAG_MOO: subject tag handler rcpt %s returned invalid or empty data (\"%s\") or error (\"%s\") - trying subfolder tag handler...", body, data, err)
Open commit View diff
471 rspamd_logger.infox(rspamd_config, "TAG_MOO: subject tag handler rcpt %s returned invalid or empty data (\"%s\") or error (\"%s\") - trying subfolder tag handler...", body, data, err)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
472
Open commit View diff
472
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
473
            local function tag_callback_subfolder(err, data)
Open commit View diff
473 local function tag_callback_subfolder(err, data)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
474
              if err or type(data) ~= 'string' or data == '' then
Open commit View diff
474 if err or type(data) ~= 'string' or data == '' then
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
475
                rspamd_logger.infox(rspamd_config, "TAG_MOO: subfolder tag handler for rcpt %s returned invalid or empty data (\"%s\") or error (\"%s\")", body, data, err)
Open commit View diff
475 rspamd_logger.infox(rspamd_config, "TAG_MOO: subfolder tag handler for rcpt %s returned invalid or empty data (\"%s\") or error (\"%s\")", body, data, err)
FreddleSpl0it almost 3 years ago 025fd03

[Rspamd] remove X-Moo-Tag header if unnecessary

Full commit hash
025fd0331038422327a29e699ed9252db2187eb4
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
476
                remove_moo_tag()
Open commit View diff
476 remove_moo_tag()
DerLinkman 7 months ago 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
477
              else
Open commit View diff
477 else
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
478
                rspamd_logger.infox("TAG_MOO: User wants subfolder tag, adding X-Moo-Tag header")
Open commit View diff
478 rspamd_logger.infox("TAG_MOO: User wants subfolder tag, adding X-Moo-Tag header")
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
479
                task:set_milter_reply({
Open commit View diff
479 task:set_milter_reply({
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
480
                  add_headers = {['X-Moo-Tag'] = 'YES'}
Open commit View diff
480 add_headers = {['X-Moo-Tag'] = 'YES'}
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
481
                })
Open commit View diff
481 })
andryyy over 5 years ago 61bb321

[Rspamd] Fix tag handling for aliases

Full commit hash
61bb3219dfd10bc4000df25873988402f37fda06
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
482
              end
Open commit View diff
482 end
DerLinkman 7 months ago 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
483
            end
Open commit View diff
483 end
andryyy over 5 years ago 61bb321

[Rspamd] Fix tag handling for aliases

Full commit hash
61bb3219dfd10bc4000df25873988402f37fda06
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
484
Open commit View diff
484
DerLinkman 7 months ago 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
485
            local redis_ret_subfolder = rspamd_redis_make_request(task,
Open commit View diff
485 local redis_ret_subfolder = rspamd_redis_make_request(task,
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
486
              redis_params, -- connect params
Open commit View diff
486 redis_params, -- connect params
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
487
              body, -- hash key
Open commit View diff
487 body, -- hash key
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
488
              false, -- is write
Open commit View diff
488 false, -- is write
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
489
              tag_callback_subfolder, --callback
Open commit View diff
489 tag_callback_subfolder, --callback
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
490
              'HGET', -- command
Open commit View diff
490 'HGET', -- command
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
491
              {'RCPT_WANTS_SUBFOLDER_TAG', body} -- arguments
Open commit View diff
491 {'RCPT_WANTS_SUBFOLDER_TAG', body} -- arguments
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
492
            )
Open commit View diff
492 )
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
493
            if not redis_ret_subfolder then
Open commit View diff
493 if not redis_ret_subfolder then
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
494
              rspamd_logger.infox(rspamd_config, "TAG_MOO: cannot make request to load tag handler for rcpt")
Open commit View diff
494 rspamd_logger.infox(rspamd_config, "TAG_MOO: cannot make request to load tag handler for rcpt")
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
495
              remove_moo_tag()
Open commit View diff
495 remove_moo_tag()
andryyy over 5 years ago 61bb321

[Rspamd] Fix tag handling for aliases

Full commit hash
61bb3219dfd10bc4000df25873988402f37fda06
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
496
            end
Open commit View diff
496 end
same change 61bb321

[Rspamd] Fix tag handling for aliases

Full commit hash
61bb3219dfd10bc4000df25873988402f37fda06
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
497
Open commit View diff
497
DerLinkman 7 months ago 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
498
          else
Open commit View diff
498 else
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
499
            rspamd_logger.infox("TAG_MOO: user wants subject modified for tagged mail")
Open commit View diff
499 rspamd_logger.infox("TAG_MOO: user wants subject modified for tagged mail")
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
500
            local sbj = task:get_header('Subject') or ''
Open commit View diff
500 local sbj = task:get_header('Subject') or ''
DocFraggle 5 months ago 5e478a3

Fix lua script sub-addressing (#7037)

Full commit hash
5e478a32df91bac32f9cbb150aad6dd0228f8240
Author
DocFraggle <[email protected]>
Date
5 months ago
Selected line
501
            local tag_value = tag[1] and tag[1].options and tag[1].options[1] or ''
Open commit View diff
501 local tag_value = tag[1] and tag[1].options and tag[1].options[1] or ''
same change 5e478a3

Fix lua script sub-addressing (#7037)

Full commit hash
5e478a32df91bac32f9cbb150aad6dd0228f8240
Author
DocFraggle <[email protected]>
Date
5 months ago
Selected line
502
            new_sbj = '=?UTF-8?B?' .. tostring(util.encode_base64('[' .. tag_value .. '] ' .. sbj)) .. '?='
Open commit View diff
502 new_sbj = '=?UTF-8?B?' .. tostring(util.encode_base64('[' .. tag_value .. '] ' .. sbj)) .. '?='
DerLinkman 7 months ago 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
503
            task:set_milter_reply({
Open commit View diff
503 task:set_milter_reply({
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
504
              remove_headers = {
Open commit View diff
504 remove_headers = {
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
505
                ['Subject'] = 1,
Open commit View diff
505 ['Subject'] = 1,
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
506
                ['X-Moo-Tag'] = 0
Open commit View diff
506 ['X-Moo-Tag'] = 0
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
507
              },
Open commit View diff
507 },
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
508
              add_headers = {['Subject'] = new_sbj}
Open commit View diff
508 add_headers = {['Subject'] = new_sbj}
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
509
            })
Open commit View diff
509 })
andryyy over 5 years ago 61bb321

[Rspamd] Fix tag handling for aliases

Full commit hash
61bb3219dfd10bc4000df25873988402f37fda06
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
510
          end
Open commit View diff
510 end
DerLinkman 7 months ago 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
511
        end
Open commit View diff
511 end
andryyy over 5 years ago 61bb321

[Rspamd] Fix tag handling for aliases

Full commit hash
61bb3219dfd10bc4000df25873988402f37fda06
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
512
Open commit View diff
512
DerLinkman 7 months ago 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
513
        local redis_ret_subject = rspamd_redis_make_request(task,
Open commit View diff
513 local redis_ret_subject = rspamd_redis_make_request(task,
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
514
          redis_params, -- connect params
Open commit View diff
514 redis_params, -- connect params
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
515
          body, -- hash key
Open commit View diff
515 body, -- hash key
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
516
          false, -- is write
Open commit View diff
516 false, -- is write
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
517
          tag_callback_subject, --callback
Open commit View diff
517 tag_callback_subject, --callback
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
518
          'HGET', -- command
Open commit View diff
518 'HGET', -- command
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
519
          {'RCPT_WANTS_SUBJECT_TAG', body} -- arguments
Open commit View diff
519 {'RCPT_WANTS_SUBJECT_TAG', body} -- arguments
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
520
        )
Open commit View diff
520 )
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
521
        if not redis_ret_subject then
Open commit View diff
521 if not redis_ret_subject then
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
522
          rspamd_logger.infox(rspamd_config, "TAG_MOO: cannot make request to load tag handler for rcpt")
Open commit View diff
522 rspamd_logger.infox(rspamd_config, "TAG_MOO: cannot make request to load tag handler for rcpt")
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
523
          remove_moo_tag()
Open commit View diff
523 remove_moo_tag()
andryyy over 5 years ago 61bb321

[Rspamd] Fix tag handling for aliases

Full commit hash
61bb3219dfd10bc4000df25873988402f37fda06
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
524
        end
Open commit View diff
524 end
DerLinkman 7 months ago 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
525
      else
Open commit View diff
525 else
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
526
        rspamd_logger.infox("TAG_MOO: alias expansion returned empty body")
Open commit View diff
526 rspamd_logger.infox("TAG_MOO: alias expansion returned empty body")
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
527
        remove_moo_tag()
Open commit View diff
527 remove_moo_tag()
andryyy over 5 years ago 61bb321

[Rspamd] Fix tag handling for aliases

Full commit hash
61bb3219dfd10bc4000df25873988402f37fda06
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
528
      end
Open commit View diff
528 end
DerLinkman 7 months ago 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
529
    end
Open commit View diff
529 end
andryyy over 5 years ago 61bb321

[Rspamd] Fix tag handling for aliases

Full commit hash
61bb3219dfd10bc4000df25873988402f37fda06
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
530
Open commit View diff
530
DerLinkman 7 months ago 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
531
    local rcpt_split = rspamd_str_split(rcpt_addr, '@')
Open commit View diff
531 local rcpt_split = rspamd_str_split(rcpt_addr, '@')
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
532
    if #rcpt_split == 2 then
Open commit View diff
532 if #rcpt_split == 2 then
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
533
      if rcpt_split[1]:match('^postmaster') then
Open commit View diff
533 if rcpt_split[1]:match('^postmaster') then
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
534
        rspamd_logger.infox(rspamd_config, "TAG_MOO: not expanding postmaster alias")
Open commit View diff
534 rspamd_logger.infox(rspamd_config, "TAG_MOO: not expanding postmaster alias")
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
535
        remove_moo_tag()
Open commit View diff
535 remove_moo_tag()
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
536
      else
Open commit View diff
536 else
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
537
        rspamd_logger.infox("TAG_MOO: requesting alias expansion for %s", rcpt_addr)
Open commit View diff
537 rspamd_logger.infox("TAG_MOO: requesting alias expansion for %s", rcpt_addr)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
538
        rspamd_http.request({
Open commit View diff
538 rspamd_http.request({
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
539
          task=task,
Open commit View diff
539 task=task,
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
540
          url='http://nginx:8081/aliasexp.php',
Open commit View diff
540 url='http://nginx:8081/aliasexp.php',
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
541
          body='',
Open commit View diff
541 body='',
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
542
          callback=http_callback,
Open commit View diff
542 callback=http_callback,
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
543
          headers={Rcpt=rcpt_addr},
Open commit View diff
543 headers={Rcpt=rcpt_addr},
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
544
        })
Open commit View diff
544 })
andryyy over 9 years ago 09850a7

Use Rspamds new tag symbol

Full commit hash
09850a76e5061c1d760eae403c07a5fd944eba93
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
545
      end
Open commit View diff
545 end
FreddleSpl0it almost 3 years ago 025fd03

[Rspamd] remove X-Moo-Tag header if unnecessary

Full commit hash
025fd0331038422327a29e699ed9252db2187eb4
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
546
    else
Open commit View diff
546 else
DerLinkman 7 months ago 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
547
      rspamd_logger.infox("TAG_MOO: invalid rcpt format")
Open commit View diff
547 rspamd_logger.infox("TAG_MOO: invalid rcpt format")
FreddleSpl0it almost 3 years ago 025fd03

[Rspamd] remove X-Moo-Tag header if unnecessary

Full commit hash
025fd0331038422327a29e699ed9252db2187eb4
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
548
      remove_moo_tag()
Open commit View diff
548 remove_moo_tag()
andryyy over 9 years ago 49a98a3

Add ability to set tag handling, add domain map

Full commit hash
49a98a30b510a021218bfef8d0799793e7e51fb4
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
549
    end
Open commit View diff
549 end
andryyy over 9 years ago 509a804

Deprecated lua function replaced, better tag handling when spam

Full commit hash
509a804acdb0d7eaa5eb2e2cca199a068fb58efc
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
550
  end,
Open commit View diff
550 end,
andryyy over 5 years ago 61bb321

[Rspamd] Fix tag handling for aliases

Full commit hash
61bb3219dfd10bc4000df25873988402f37fda06
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
551
  priority = 19
Open commit View diff
551 priority = 19
andryyy over 9 years ago 509a804

Deprecated lua function replaced, better tag handling when spam

Full commit hash
509a804acdb0d7eaa5eb2e2cca199a068fb58efc
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
552
})
Open commit View diff
552 })
andryyy about 9 years ago 6cd44b4

Remove old code

Full commit hash
6cd44b41365386b4f080ab3ec7a42ce0b480cc47
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
553
Open commit View diff
553
andryyy about 5 years ago c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
554
rspamd_config:register_symbol({
Open commit View diff
554 rspamd_config:register_symbol({
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
555
  name = 'BCC',
Open commit View diff
555 name = 'BCC',
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
556
  type = 'postfilter',
Open commit View diff
556 type = 'postfilter',
DerLinkman 7 months ago 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
557
  flags = 'ignore_passthrough',
Open commit View diff
557 flags = 'ignore_passthrough',
andryyy about 5 years ago c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
558
  callback = function(task)
Open commit View diff
558 callback = function(task)
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
559
    local util = require("rspamd_util")
Open commit View diff
559 local util = require("rspamd_util")
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
560
    local rspamd_http = require "rspamd_http"
Open commit View diff
560 local rspamd_http = require "rspamd_http"
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
561
    local rspamd_logger = require "rspamd_logger"
Open commit View diff
561 local rspamd_logger = require "rspamd_logger"
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
562
Open commit View diff
562
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
563
    local from_table = {}
Open commit View diff
563 local from_table = {}
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
564
    local rcpt_table = {}
Open commit View diff
564 local rcpt_table = {}
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
565
Open commit View diff
565
andryyy about 5 years ago b3959e8

[Rspamd] DeltaChat improvements

Full commit hash
b3959e8071f986d5cf1ef69d72f7f8451917b143
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
566
    if task:has_symbol('ENCRYPTED_CHAT') then
Open commit View diff
566 if task:has_symbol('ENCRYPTED_CHAT') then
same change b3959e8

[Rspamd] DeltaChat improvements

Full commit hash
b3959e8071f986d5cf1ef69d72f7f8451917b143
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
567
      return -- stop
Open commit View diff
567 return -- stop
same change b3959e8

[Rspamd] DeltaChat improvements

Full commit hash
b3959e8071f986d5cf1ef69d72f7f8451917b143
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
568
    end
Open commit View diff
568 end
same change b3959e8

[Rspamd] DeltaChat improvements

Full commit hash
b3959e8071f986d5cf1ef69d72f7f8451917b143
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
569
Open commit View diff
569
andryyy about 5 years ago c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
570
    local send_mail = function(task, bcc_dest)
Open commit View diff
570 local send_mail = function(task, bcc_dest)
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
571
      local lua_smtp = require "lua_smtp"
Open commit View diff
571 local lua_smtp = require "lua_smtp"
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
572
      local function sendmail_cb(ret, err)
Open commit View diff
572 local function sendmail_cb(ret, err)
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
573
        if not ret then
Open commit View diff
573 if not ret then
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
574
          rspamd_logger.errx(task, 'BCC SMTP ERROR: %s', err)
Open commit View diff
574 rspamd_logger.errx(task, 'BCC SMTP ERROR: %s', err)
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
575
        else
Open commit View diff
575 else
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
576
          rspamd_logger.infox(rspamd_config, "BCC SMTP SUCCESS TO %s", bcc_dest)
Open commit View diff
576 rspamd_logger.infox(rspamd_config, "BCC SMTP SUCCESS TO %s", bcc_dest)
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
577
        end
Open commit View diff
577 end
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
578
      end
Open commit View diff
578 end
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
579
      if not bcc_dest then
Open commit View diff
579 if not bcc_dest then
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
580
        return -- stop
Open commit View diff
580 return -- stop
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
581
      end
Open commit View diff
581 end
FreddleSpl0it about 3 years ago 97a492b

[Rspamd] add dot-stuffing to bcc forwarding

Full commit hash
97a492b891fde855293563fa4755d91a06ac06b2
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
582
      -- dot stuff content before sending
Open commit View diff
582 -- dot stuff content before sending
same change 97a492b

[Rspamd] add dot-stuffing to bcc forwarding

Full commit hash
97a492b891fde855293563fa4755d91a06ac06b2
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
583
      local email_content = tostring(task:get_content())
Open commit View diff
583 local email_content = tostring(task:get_content())
same change 97a492b

[Rspamd] add dot-stuffing to bcc forwarding

Full commit hash
97a492b891fde855293563fa4755d91a06ac06b2
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
584
      email_content = string.gsub(email_content, "\r\n%.", "\r\n..")
Open commit View diff
584 email_content = string.gsub(email_content, "\r\n%.", "\r\n..")
same change 97a492b

[Rspamd] add dot-stuffing to bcc forwarding

Full commit hash
97a492b891fde855293563fa4755d91a06ac06b2
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
585
      -- send mail
Open commit View diff
585 -- send mail
DerLinkman 7 months ago 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
586
      local from_smtp = task:get_from('smtp')
Open commit View diff
586 local from_smtp = task:get_from('smtp')
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
587
      local from_addr = (from_smtp and from_smtp[1] and from_smtp[1].addr) or 'mailer-daemon@localhost'
Open commit View diff
587 local from_addr = (from_smtp and from_smtp[1] and from_smtp[1].addr) or 'mailer-daemon@localhost'
andryyy about 5 years ago c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
588
      lua_smtp.sendmail({
Open commit View diff
588 lua_smtp.sendmail({
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
589
        task = task,
Open commit View diff
589 task = task,
andryyy about 5 years ago 7b0b59a

[Rspamd] Use Postfix IP

Full commit hash
7b0b59a0828860587f8ea71ccf14bfe3bc95a421
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
590
        host = os.getenv("IPV4_NETWORK") .. '.253',
Open commit View diff
590 host = os.getenv("IPV4_NETWORK") .. '.253',
andryyy about 5 years ago c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
591
        port = 591,
Open commit View diff
591 port = 591,
DerLinkman 7 months ago 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
592
        from = from_addr,
Open commit View diff
592 from = from_addr,
andryyy about 5 years ago c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
593
        recipients = bcc_dest,
Open commit View diff
593 recipients = bcc_dest,
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
594
        helo = 'bcc',
Open commit View diff
594 helo = 'bcc',
FreddleSpl0it about 3 years ago 97a492b

[Rspamd] add dot-stuffing to bcc forwarding

Full commit hash
97a492b891fde855293563fa4755d91a06ac06b2
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
595
        timeout = 20,
Open commit View diff
595 timeout = 20,
same change 97a492b

[Rspamd] add dot-stuffing to bcc forwarding

Full commit hash
97a492b891fde855293563fa4755d91a06ac06b2
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
596
      }, email_content, sendmail_cb)
Open commit View diff
596 }, email_content, sendmail_cb)
andryyy about 5 years ago c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
597
    end
Open commit View diff
597 end
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
598
Open commit View diff
598
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
599
    -- determine from
Open commit View diff
599 -- determine from
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
600
    local from = task:get_from('smtp')
Open commit View diff
600 local from = task:get_from('smtp')
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
601
    if from then
Open commit View diff
601 if from then
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
602
      for _, a in ipairs(from) do
Open commit View diff
602 for _, a in ipairs(from) do
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
603
        table.insert(from_table, a['addr']) -- add this rcpt to table
Open commit View diff
603 table.insert(from_table, a['addr']) -- add this rcpt to table
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
604
        table.insert(from_table, '@' .. a['domain']) -- add this rcpts domain to table
Open commit View diff
604 table.insert(from_table, '@' .. a['domain']) -- add this rcpts domain to table
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
605
      end
Open commit View diff
605 end
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
606
    else
Open commit View diff
606 else
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
607
      return -- stop
Open commit View diff
607 return -- stop
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
608
    end
Open commit View diff
608 end
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
609
Open commit View diff
609
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
610
    -- determine rcpts
Open commit View diff
610 -- determine rcpts
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
611
    local rcpts = task:get_recipients('smtp')
Open commit View diff
611 local rcpts = task:get_recipients('smtp')
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
612
    if rcpts then
Open commit View diff
612 if rcpts then
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
613
      for _, a in ipairs(rcpts) do
Open commit View diff
613 for _, a in ipairs(rcpts) do
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
614
        table.insert(rcpt_table, a['addr']) -- add this rcpt to table
Open commit View diff
614 table.insert(rcpt_table, a['addr']) -- add this rcpt to table
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
615
        table.insert(rcpt_table, '@' .. a['domain']) -- add this rcpts domain to table
Open commit View diff
615 table.insert(rcpt_table, '@' .. a['domain']) -- add this rcpts domain to table
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
616
      end
Open commit View diff
616 end
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
617
    else
Open commit View diff
617 else
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
618
      return -- stop
Open commit View diff
618 return -- stop
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
619
    end
Open commit View diff
619 end
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
620
Open commit View diff
620
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
621
    local action = task:get_metric_action('default')
Open commit View diff
621 local action = task:get_metric_action('default')
DerLinkman 7 months ago 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
622
    rspamd_logger.infox("BCC: metric action: %s", action)
Open commit View diff
622 rspamd_logger.infox("BCC: metric action: %s", action)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
623
Open commit View diff
623
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
624
    -- Check for pre-result accept (e.g., from KEEP_SPAM)
Open commit View diff
624 -- Check for pre-result accept (e.g., from KEEP_SPAM)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
625
    local allow_bcc = false
Open commit View diff
625 local allow_bcc = false
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
626
    if task.has_pre_result then
Open commit View diff
626 if task.has_pre_result then
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
627
      local has_pre, pre_action = task:has_pre_result()
Open commit View diff
627 local has_pre, pre_action = task:has_pre_result()
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
628
      if has_pre and pre_action == 'accept' then
Open commit View diff
628 if has_pre and pre_action == 'accept' then
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
629
        allow_bcc = true
Open commit View diff
629 allow_bcc = true
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
630
        rspamd_logger.infox("BCC: pre-result accept detected, will send BCC")
Open commit View diff
630 rspamd_logger.infox("BCC: pre-result accept detected, will send BCC")
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
631
      end
Open commit View diff
631 end
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
632
    end
Open commit View diff
632 end
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
633
Open commit View diff
633
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
634
    -- Allow BCC for mild actions or when we have pre-result accept
Open commit View diff
634 -- Allow BCC for mild actions or when we have pre-result accept
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
635
    if not allow_bcc and action ~= 'no action' and action ~= 'add header' and action ~= 'rewrite subject' then
Open commit View diff
635 if not allow_bcc and action ~= 'no action' and action ~= 'add header' and action ~= 'rewrite subject' then
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
636
      rspamd_logger.infox("BCC: skipping for action: %s", action)
Open commit View diff
636 rspamd_logger.infox("BCC: skipping for action: %s", action)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
637
      return
Open commit View diff
637 return
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
638
    end
Open commit View diff
638 end
andryyy about 5 years ago c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
639
Open commit View diff
639
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
640
    local function rcpt_callback(err_message, code, body, headers)
Open commit View diff
640 local function rcpt_callback(err_message, code, body, headers)
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
641
      if err_message == nil and code == 201 and body ~= nil then
Open commit View diff
641 if err_message == nil and code == 201 and body ~= nil then
DerLinkman 7 months ago 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
642
        rspamd_logger.infox("BCC: sending BCC to %s for rcpt match", body)
Open commit View diff
642 rspamd_logger.infox("BCC: sending BCC to %s for rcpt match", body)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
643
        send_mail(task, body)
Open commit View diff
643 send_mail(task, body)
andryyy about 5 years ago c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
644
      end
Open commit View diff
644 end
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
645
    end
Open commit View diff
645 end
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
646
Open commit View diff
646
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
647
    local function from_callback(err_message, code, body, headers)
Open commit View diff
647 local function from_callback(err_message, code, body, headers)
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
648
      if err_message == nil and code == 201 and body ~= nil then
Open commit View diff
648 if err_message == nil and code == 201 and body ~= nil then
DerLinkman 7 months ago 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
649
        rspamd_logger.infox("BCC: sending BCC to %s for from match", body)
Open commit View diff
649 rspamd_logger.infox("BCC: sending BCC to %s for from match", body)
same change 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
650
        send_mail(task, body)
Open commit View diff
650 send_mail(task, body)
andryyy about 5 years ago c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
651
      end
Open commit View diff
651 end
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
652
    end
Open commit View diff
652 end
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
653
Open commit View diff
653
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
654
    if rcpt_table then
Open commit View diff
654 if rcpt_table then
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
655
      for _,e in ipairs(rcpt_table) do
Open commit View diff
655 for _,e in ipairs(rcpt_table) do
DerLinkman 7 months ago 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
656
        rspamd_logger.infox(rspamd_config, "BCC: checking bcc for rcpt address %s", e)
Open commit View diff
656 rspamd_logger.infox(rspamd_config, "BCC: checking bcc for rcpt address %s", e)
andryyy about 5 years ago c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
657
        rspamd_http.request({
Open commit View diff
657 rspamd_http.request({
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
658
          task=task,
Open commit View diff
658 task=task,
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
659
          url='http://nginx:8081/bcc.php',
Open commit View diff
659 url='http://nginx:8081/bcc.php',
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
660
          body='',
Open commit View diff
660 body='',
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
661
          callback=rcpt_callback,
Open commit View diff
661 callback=rcpt_callback,
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
662
          headers={Rcpt=e}
Open commit View diff
662 headers={Rcpt=e}
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
663
        })
Open commit View diff
663 })
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
664
      end
Open commit View diff
664 end
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
665
    end
Open commit View diff
665 end
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
666
Open commit View diff
666
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
667
    if from_table then
Open commit View diff
667 if from_table then
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
668
      for _,e in ipairs(from_table) do
Open commit View diff
668 for _,e in ipairs(from_table) do
DerLinkman 7 months ago 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
669
        rspamd_logger.infox(rspamd_config, "BCC: checking bcc for from address %s", e)
Open commit View diff
669 rspamd_logger.infox(rspamd_config, "BCC: checking bcc for from address %s", e)
andryyy about 5 years ago c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
670
        rspamd_http.request({
Open commit View diff
670 rspamd_http.request({
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
671
          task=task,
Open commit View diff
671 task=task,
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
672
          url='http://nginx:8081/bcc.php',
Open commit View diff
672 url='http://nginx:8081/bcc.php',
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
673
          body='',
Open commit View diff
673 body='',
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
674
          callback=from_callback,
Open commit View diff
674 callback=from_callback,
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
675
          headers={From=e}
Open commit View diff
675 headers={From=e}
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
676
        })
Open commit View diff
676 })
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
677
      end
Open commit View diff
677 end
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
678
    end
Open commit View diff
678 end
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
679
Open commit View diff
679
DerLinkman 7 months ago 67e7acd

rspamd: upgrade to 3.14.1, trixie rebuild + bcc forwarded hosts fix (#6958)

Full commit hash
67e7acd6bd444c5721bb82dceafa9d0d1b35d4e2
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
680
    -- Don't return true to avoid symbol being logged
Open commit View diff
680 -- Don't return true to avoid symbol being logged
andryyy about 5 years ago c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
681
  end,
Open commit View diff
681 end,
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
682
  priority = 20
Open commit View diff
682 priority = 20
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
683
})
Open commit View diff
683 })
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
684
Open commit View diff
684
andryyy almost 9 years ago b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
685
rspamd_config:register_symbol({
Open commit View diff
685 rspamd_config:register_symbol({
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
686
  name = 'DYN_RL_CHECK',
Open commit View diff
686 name = 'DYN_RL_CHECK',
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
687
  type = 'prefilter',
Open commit View diff
687 type = 'prefilter',
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
688
  callback = function(task)
Open commit View diff
688 callback = function(task)
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
689
    local util = require("rspamd_util")
Open commit View diff
689 local util = require("rspamd_util")
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
690
    local redis_params = rspamd_parse_redis_server('dyn_rl')
Open commit View diff
690 local redis_params = rspamd_parse_redis_server('dyn_rl')
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
691
    local rspamd_logger = require "rspamd_logger"
Open commit View diff
691 local rspamd_logger = require "rspamd_logger"
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
692
    local envfrom = task:get_from(1)
Open commit View diff
692 local envfrom = task:get_from(1)
Dmitriy Alekseev 11 months ago 06db1d6

[Rspamd] Do not increment rate limit for emails from user to himself (#6706)

Full commit hash
06db1d6a72ce65cd5e464eab7f2b1970da555b49
Author
Dmitriy Alekseev <[email protected]>
Date
11 months ago
Selected line
693
    local envrcpt = task:get_recipients(1) or {}
Open commit View diff
693 local envrcpt = task:get_recipients(1) or {}
André about 8 years ago 4c31ada

[Rspamd] Ratelimit: fix attempt to index a nil value when no authenticated user is found in a message

Full commit hash
4c31adaa82cf4dc94f26886eff14746c5233bd85
Author
André <[email protected]>
Date
about 8 years ago
Selected line
694
    local uname = task:get_user()
Open commit View diff
694 local uname = task:get_user()
André about 8 years ago 7181ee4

[Rspamd] Apply ratelimit against authenticated user instead of envelope from

Full commit hash
7181ee4658926aea4b746d815627e54ce228534f
Author
André <[email protected]>
Date
about 8 years ago
Selected line
695
    if not envfrom or not uname then
Open commit View diff
695 if not envfrom or not uname then
andryyy almost 9 years ago 073c6c6

[Postfix/Rspamd] Do not reject unauthenticated sender mismatches but rewrite their subject and assign symbol SPOOFED_SENDER with score 1.0

Full commit hash
073c6c6e7352a4fa9a1d4b67429e99a0a61998ca
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
696
      return false
Open commit View diff
696 return false
same change 073c6c6

[Postfix/Rspamd] Do not reject unauthenticated sender mismatches but rewrite their subject and assign symbol SPOOFED_SENDER with score 1.0

Full commit hash
073c6c6e7352a4fa9a1d4b67429e99a0a61998ca
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
697
    end
Open commit View diff
697 end
Dmitriy Alekseev 11 months ago 06db1d6

[Rspamd] Do not increment rate limit for emails from user to himself (#6706)

Full commit hash
06db1d6a72ce65cd5e464eab7f2b1970da555b49
Author
Dmitriy Alekseev <[email protected]>
Date
11 months ago
Selected line
698
Open commit View diff
698
André about 8 years ago 4c31ada

[Rspamd] Ratelimit: fix attempt to index a nil value when no authenticated user is found in a message

Full commit hash
4c31adaa82cf4dc94f26886eff14746c5233bd85
Author
André <[email protected]>
Date
about 8 years ago
Selected line
699
    local uname = uname:lower()
Open commit View diff
699 local uname = uname:lower()
same change 4c31ada

[Rspamd] Ratelimit: fix attempt to index a nil value when no authenticated user is found in a message

Full commit hash
4c31adaa82cf4dc94f26886eff14746c5233bd85
Author
André <[email protected]>
Date
about 8 years ago
Selected line
700
Open commit View diff
700
Dmitriy Alekseev 11 months ago 06db1d6

[Rspamd] Do not increment rate limit for emails from user to himself (#6706)

Full commit hash
06db1d6a72ce65cd5e464eab7f2b1970da555b49
Author
Dmitriy Alekseev <[email protected]>
Date
11 months ago
Selected line
701
    if #envrcpt == 1 and envrcpt[1].addr:lower() == uname then
Open commit View diff
701 if #envrcpt == 1 and envrcpt[1].addr:lower() == uname then
same change 06db1d6

[Rspamd] Do not increment rate limit for emails from user to himself (#6706)

Full commit hash
06db1d6a72ce65cd5e464eab7f2b1970da555b49
Author
Dmitriy Alekseev <[email protected]>
Date
11 months ago
Selected line
702
      return false
Open commit View diff
702 return false
same change 06db1d6

[Rspamd] Do not increment rate limit for emails from user to himself (#6706)

Full commit hash
06db1d6a72ce65cd5e464eab7f2b1970da555b49
Author
Dmitriy Alekseev <[email protected]>
Date
11 months ago
Selected line
703
    end
Open commit View diff
703 end
same change 06db1d6

[Rspamd] Do not increment rate limit for emails from user to himself (#6706)

Full commit hash
06db1d6a72ce65cd5e464eab7f2b1970da555b49
Author
Dmitriy Alekseev <[email protected]>
Date
11 months ago
Selected line
704
Open commit View diff
704
andryyy almost 9 years ago b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
705
    local env_from_domain = envfrom[1].domain:lower() -- get smtp from domain in lower case
Open commit View diff
705 local env_from_domain = envfrom[1].domain:lower() -- get smtp from domain in lower case
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
706
Open commit View diff
706
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
707
    local function redis_cb_user(err, data)
Open commit View diff
707 local function redis_cb_user(err, data)
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
708
Open commit View diff
708
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
709
      if err or type(data) ~= 'string' then
Open commit View diff
709 if err or type(data) ~= 'string' then
André about 8 years ago 7181ee4

[Rspamd] Apply ratelimit against authenticated user instead of envelope from

Full commit hash
7181ee4658926aea4b746d815627e54ce228534f
Author
André <[email protected]>
Date
about 8 years ago
Selected line
710
        rspamd_logger.infox(rspamd_config, "dynamic ratelimit request for user %s returned invalid or empty data (\"%s\") or error (\"%s\") - trying dynamic ratelimit for domain...", uname, data, err)
Open commit View diff
710 rspamd_logger.infox(rspamd_config, "dynamic ratelimit request for user %s returned invalid or empty data (\"%s\") or error (\"%s\") - trying dynamic ratelimit for domain...", uname, data, err)
andryyy almost 9 years ago b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
711
Open commit View diff
711
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
712
        local function redis_key_cb_domain(err, data)
Open commit View diff
712 local function redis_key_cb_domain(err, data)
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
713
          if err or type(data) ~= 'string' then
Open commit View diff
713 if err or type(data) ~= 'string' then
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
714
            rspamd_logger.infox(rspamd_config, "dynamic ratelimit request for domain %s returned invalid or empty data (\"%s\") or error (\"%s\")", env_from_domain, data, err)
Open commit View diff
714 rspamd_logger.infox(rspamd_config, "dynamic ratelimit request for domain %s returned invalid or empty data (\"%s\") or error (\"%s\")", env_from_domain, data, err)
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
715
          else
Open commit View diff
715 else
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
716
            rspamd_logger.infox(rspamd_config, "found dynamic ratelimit in redis for domain %s with value %s", env_from_domain, data)
Open commit View diff
716 rspamd_logger.infox(rspamd_config, "found dynamic ratelimit in redis for domain %s with value %s", env_from_domain, data)
André about 8 years ago 882ee5f

[Rspamd] Re-use fixed new ratelimit

Full commit hash
882ee5fee6581ba5c673d50a43ab897196cb9ed0
Author
André <[email protected]>
Date
about 8 years ago
Selected line
717
            task:insert_result('DYN_RL', 0.0, data, env_from_domain)
Open commit View diff
717 task:insert_result('DYN_RL', 0.0, data, env_from_domain)
andryyy almost 9 years ago b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
718
          end
Open commit View diff
718 end
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
719
        end
Open commit View diff
719 end
andryyy over 9 years ago 276e370

Rspamd tag check for non-spam only (post-filter), remove sql files from repository"

Full commit hash
276e37098912691a6a7976ee4c3545597ec53f09
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
720
Open commit View diff
720
andryyy almost 9 years ago b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
721
        local redis_ret_domain = rspamd_redis_make_request(task,
Open commit View diff
721 local redis_ret_domain = rspamd_redis_make_request(task,
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
722
          redis_params, -- connect params
Open commit View diff
722 redis_params, -- connect params
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
723
          env_from_domain, -- hash key
Open commit View diff
723 env_from_domain, -- hash key
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
724
          false, -- is write
Open commit View diff
724 false, -- is write
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
725
          redis_key_cb_domain, --callback
Open commit View diff
725 redis_key_cb_domain, --callback
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
726
          'HGET', -- command
Open commit View diff
726 'HGET', -- command
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
727
          {'RL_VALUE', env_from_domain} -- arguments
Open commit View diff
727 {'RL_VALUE', env_from_domain} -- arguments
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
728
        )
Open commit View diff
728 )
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
729
        if not redis_ret_domain then
Open commit View diff
729 if not redis_ret_domain then
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
730
          rspamd_logger.infox(rspamd_config, "cannot make request to load ratelimit for domain")
Open commit View diff
730 rspamd_logger.infox(rspamd_config, "cannot make request to load ratelimit for domain")
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
731
        end
Open commit View diff
731 end
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
732
      else
Open commit View diff
732 else
André about 8 years ago 7181ee4

[Rspamd] Apply ratelimit against authenticated user instead of envelope from

Full commit hash
7181ee4658926aea4b746d815627e54ce228534f
Author
André <[email protected]>
Date
about 8 years ago
Selected line
733
        rspamd_logger.infox(rspamd_config, "found dynamic ratelimit in redis for user %s with value %s", uname, data)
Open commit View diff
733 rspamd_logger.infox(rspamd_config, "found dynamic ratelimit in redis for user %s with value %s", uname, data)
André about 8 years ago 882ee5f

[Rspamd] Re-use fixed new ratelimit

Full commit hash
882ee5fee6581ba5c673d50a43ab897196cb9ed0
Author
André <[email protected]>
Date
about 8 years ago
Selected line
734
        task:insert_result('DYN_RL', 0.0, data, uname)
Open commit View diff
734 task:insert_result('DYN_RL', 0.0, data, uname)
andryyy almost 9 years ago b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
735
      end
Open commit View diff
735 end
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
736
Open commit View diff
736
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
737
    end
Open commit View diff
737 end
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
738
Open commit View diff
738
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
739
    local redis_ret_user = rspamd_redis_make_request(task,
Open commit View diff
739 local redis_ret_user = rspamd_redis_make_request(task,
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
740
      redis_params, -- connect params
Open commit View diff
740 redis_params, -- connect params
André about 8 years ago 7181ee4

[Rspamd] Apply ratelimit against authenticated user instead of envelope from

Full commit hash
7181ee4658926aea4b746d815627e54ce228534f
Author
André <[email protected]>
Date
about 8 years ago
Selected line
741
      uname, -- hash key
Open commit View diff
741 uname, -- hash key
andryyy almost 9 years ago b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
742
      false, -- is write
Open commit View diff
742 false, -- is write
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
743
      redis_cb_user, --callback
Open commit View diff
743 redis_cb_user, --callback
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
744
      'HGET', -- command
Open commit View diff
744 'HGET', -- command
André about 8 years ago 7181ee4

[Rspamd] Apply ratelimit against authenticated user instead of envelope from

Full commit hash
7181ee4658926aea4b746d815627e54ce228534f
Author
André <[email protected]>
Date
about 8 years ago
Selected line
745
      {'RL_VALUE', uname} -- arguments
Open commit View diff
745 {'RL_VALUE', uname} -- arguments
andryyy almost 9 years ago b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
746
    )
Open commit View diff
746 )
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
747
    if not redis_ret_user then
Open commit View diff
747 if not redis_ret_user then
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
748
      rspamd_logger.infox(rspamd_config, "cannot make request to load ratelimit for user")
Open commit View diff
748 rspamd_logger.infox(rspamd_config, "cannot make request to load ratelimit for user")
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
749
    end
Open commit View diff
749 end
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
750
    return true
Open commit View diff
750 return true
same change b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
751
  end,
Open commit View diff
751 end,
andryyy almost 7 years ago ee57b59

[Rspamd] Various fixes for Rspamd 2.0, neural network activated, autolearning activated (auto-keeps a ratio)

Full commit hash
ee57b5921f59e7f49dabdb37d8ae93d8a7744aab
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
752
  flags = 'empty',
Open commit View diff
752 flags = 'empty',
andryyy almost 9 years ago b1213c5

[Rspamd] Dynamic ratelimit fixed, removed async redis request; Ready to implement per-user ratelimits via UI (tbd)

Full commit hash
b1213c51d70c4c1a52114db277dfa0b62064e4c4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
753
  priority = 20
Open commit View diff
753 priority = 20
Michael Kuron almost 9 years ago a411a35

rspamd: exclude Mail Flow monitoring from logs and stats

Full commit hash
a411a357b92966e9f785f23ff3f845969deef48e
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
754
})
Open commit View diff
754 })
same change a411a35

rspamd: exclude Mail Flow monitoring from logs and stats

Full commit hash
a411a357b92966e9f785f23ff3f845969deef48e
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
755
Open commit View diff
755
same change a411a35

rspamd: exclude Mail Flow monitoring from logs and stats

Full commit hash
a411a357b92966e9f785f23ff3f845969deef48e
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
756
rspamd_config:register_symbol({
Open commit View diff
756 rspamd_config:register_symbol({
andryyy almost 9 years ago fd3b2e5

[Rspamd] Changes to ignore watchdog checks

Full commit hash
fd3b2e5f168d2fad2f2109c43441d64e82e75c11
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
757
  name = 'NO_LOG_STAT',
Open commit View diff
757 name = 'NO_LOG_STAT',
Michael Kuron almost 9 years ago a411a35

rspamd: exclude Mail Flow monitoring from logs and stats

Full commit hash
a411a357b92966e9f785f23ff3f845969deef48e
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
758
  type = 'postfilter',
Open commit View diff
758 type = 'postfilter',
same change a411a35

rspamd: exclude Mail Flow monitoring from logs and stats

Full commit hash
a411a357b92966e9f785f23ff3f845969deef48e
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
759
  callback = function(task)
Open commit View diff
759 callback = function(task)
andryyy almost 9 years ago fd3b2e5

[Rspamd] Changes to ignore watchdog checks

Full commit hash
fd3b2e5f168d2fad2f2109c43441d64e82e75c11
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
760
    local from = task:get_header('From')
Open commit View diff
760 local from = task:get_header('From')
andryyy almost 5 years ago 80fc18c

[Rspamd] Always include watchdog in no_stat and no_log flag symbol

Full commit hash
80fc18c5b4db45c32fa7a47a02d174aef3853f5c
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
761
    if from and (monitoring_hosts:get_key(from) or from == "watchdog@localhost") then
Open commit View diff
761 if from and (monitoring_hosts:get_key(from) or from == "watchdog@localhost") then
Michael Kuron almost 9 years ago a411a35

rspamd: exclude Mail Flow monitoring from logs and stats

Full commit hash
a411a357b92966e9f785f23ff3f845969deef48e
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
762
      task:set_flag('no_log')
Open commit View diff
762 task:set_flag('no_log')
same change a411a35

rspamd: exclude Mail Flow monitoring from logs and stats

Full commit hash
a411a357b92966e9f785f23ff3f845969deef48e
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
763
      task:set_flag('no_stat')
Open commit View diff
763 task:set_flag('no_stat')
same change a411a35

rspamd: exclude Mail Flow monitoring from logs and stats

Full commit hash
a411a357b92966e9f785f23ff3f845969deef48e
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
764
    end
Open commit View diff
764 end
same change a411a35

rspamd: exclude Mail Flow monitoring from logs and stats

Full commit hash
a411a357b92966e9f785f23ff3f845969deef48e
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
765
  end
Open commit View diff
765 end
same change a411a35

rspamd: exclude Mail Flow monitoring from logs and stats

Full commit hash
a411a357b92966e9f785f23ff3f845969deef48e
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
766
})
Open commit View diff
766 })
FreddleSpl0it about 3 years ago f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
767
Open commit View diff
767
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
768
rspamd_config:register_symbol({
Open commit View diff
768 rspamd_config:register_symbol({
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
769
  name = 'MOO_FOOTER',
Open commit View diff
769 name = 'MOO_FOOTER',
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
770
  type = 'prefilter',
Open commit View diff
770 type = 'prefilter',
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
771
  callback = function(task)
Open commit View diff
771 callback = function(task)
FreddleSpl0it over 2 years ago d2e3867

[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer

Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
772
    local cjson = require "cjson"
Open commit View diff
772 local cjson = require "cjson"
FreddleSpl0it about 3 years ago f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
773
    local lua_mime = require "lua_mime"
Open commit View diff
773 local lua_mime = require "lua_mime"
FreddleSpl0it almost 3 years ago 5ae9605

[Rspamd] domain-wide-footer add jinja templating

Full commit hash
5ae9605e7747d2588609f9b34245264c03a811ac
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
774
    local lua_util = require "lua_util"
Open commit View diff
774 local lua_util = require "lua_util"
FreddleSpl0it about 3 years ago f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
775
    local rspamd_logger = require "rspamd_logger"
Open commit View diff
775 local rspamd_logger = require "rspamd_logger"
FreddleSpl0it over 2 years ago d2e3867

[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer

Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
776
    local rspamd_http = require "rspamd_http"
Open commit View diff
776 local rspamd_http = require "rspamd_http"
FreddleSpl0it about 3 years ago f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
777
    local envfrom = task:get_from(1)
Open commit View diff
777 local envfrom = task:get_from(1)
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
778
    local uname = task:get_user()
Open commit View diff
778 local uname = task:get_user()
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
779
    if not envfrom or not uname then
Open commit View diff
779 if not envfrom or not uname then
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
780
      return false
Open commit View diff
780 return false
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
781
    end
Open commit View diff
781 end
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
782
    local uname = uname:lower()
Open commit View diff
782 local uname = uname:lower()
FreddleSpl0it over 2 years ago b3ac941

[Rspamd] fix excluding alias from domain wide footer

Full commit hash
b3ac94115e9870159acbeae5477fbcc06fe01536
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
783
    local env_from_domain = envfrom[1].domain:lower()
Open commit View diff
783 local env_from_domain = envfrom[1].domain:lower()
same change b3ac941

[Rspamd] fix excluding alias from domain wide footer

Full commit hash
b3ac94115e9870159acbeae5477fbcc06fe01536
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
784
    local env_from_addr = envfrom[1].addr:lower()
Open commit View diff
784 local env_from_addr = envfrom[1].addr:lower()
FreddleSpl0it about 3 years ago f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
785
Open commit View diff
785
FreddleSpl0it over 2 years ago d2e3867

[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer

Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
786
    -- determine newline type
Open commit View diff
786 -- determine newline type
FreddleSpl0it about 3 years ago f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
787
    local function newline(task)
Open commit View diff
787 local function newline(task)
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
788
      local t = task:get_newlines_type()
Open commit View diff
788 local t = task:get_newlines_type()
FreddleSpl0it 11 months ago 8d7235b

[RSPAMD] Add boundary if present when applying domain-wide footer

Full commit hash
8d7235b5356f61e6a4a822b1bbeffba32b476e57
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
789
Open commit View diff
789
FreddleSpl0it about 3 years ago f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
790
      if t == 'cr' then
Open commit View diff
790 if t == 'cr' then
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
791
        return '\r'
Open commit View diff
791 return '\r'
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
792
      elseif t == 'lf' then
Open commit View diff
792 elseif t == 'lf' then
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
793
        return '\n'
Open commit View diff
793 return '\n'
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
794
      end
Open commit View diff
794 end
FreddleSpl0it 11 months ago 8d7235b

[RSPAMD] Add boundary if present when applying domain-wide footer

Full commit hash
8d7235b5356f61e6a4a822b1bbeffba32b476e57
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
795
Open commit View diff
795
FreddleSpl0it about 3 years ago f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
796
      return '\r\n'
Open commit View diff
796 return '\r\n'
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
797
    end
Open commit View diff
797 end
FreddleSpl0it over 2 years ago d2e3867

[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer

Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
798
    -- retrieve footer
Open commit View diff
798 -- retrieve footer
same change d2e3867

[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer

Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
799
    local function footer_cb(err_message, code, data, headers)
Open commit View diff
799 local function footer_cb(err_message, code, data, headers)
FreddleSpl0it about 3 years ago f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
800
      if err or type(data) ~= 'string' then
Open commit View diff
800 if err or type(data) ~= 'string' then
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
801
        rspamd_logger.infox(rspamd_config, "domain wide footer request for user %s returned invalid or empty data (\"%s\") or error (\"%s\")", uname, data, err)
Open commit View diff
801 rspamd_logger.infox(rspamd_config, "domain wide footer request for user %s returned invalid or empty data (\"%s\") or error (\"%s\")", uname, data, err)
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
802
      else
Open commit View diff
802 else
FreddleSpl0it 11 months ago 8d7235b

[RSPAMD] Add boundary if present when applying domain-wide footer

Full commit hash
8d7235b5356f61e6a4a822b1bbeffba32b476e57
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
803
Open commit View diff
803
FreddleSpl0it about 3 years ago f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
804
        -- parse json string
Open commit View diff
804 -- parse json string
FreddleSpl0it over 2 years ago d2e3867

[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer

Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
805
        local footer = cjson.decode(data)
Open commit View diff
805 local footer = cjson.decode(data)
same change d2e3867

[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer

Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
806
        if not footer then
Open commit View diff
806 if not footer then
FreddleSpl0it about 3 years ago f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
807
          rspamd_logger.infox(rspamd_config, "parsing domain wide footer for user %s returned invalid or empty data (\"%s\") or error (\"%s\")", uname, data, err)
Open commit View diff
807 rspamd_logger.infox(rspamd_config, "parsing domain wide footer for user %s returned invalid or empty data (\"%s\") or error (\"%s\")", uname, data, err)
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
808
        else
Open commit View diff
808 else
FreddleSpl0it over 2 years ago 392967d

[Rspamd] domain wide footer check for empty strings

Full commit hash
392967d6647da44db6fd7f8111d3c98f7032e6bc
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
809
          if footer and type(footer) == "table" and (footer.html and footer.html ~= "" or footer.plain and footer.plain ~= "")  then
Open commit View diff
809 if footer and type(footer) == "table" and (footer.html and footer.html ~= "" or footer.plain and footer.plain ~= "") then
FreddleSpl0it over 2 years ago d2e3867

[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer

Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
810
            rspamd_logger.infox(rspamd_config, "found domain wide footer for user %s: html=%s, plain=%s, vars=%s", uname, footer.html, footer.plain, footer.vars)
Open commit View diff
810 rspamd_logger.infox(rspamd_config, "found domain wide footer for user %s: html=%s, plain=%s, vars=%s", uname, footer.html, footer.plain, footer.vars)
FreddleSpl0it almost 3 years ago 2111115

[Rspamd] domain-wide-footer add more template vars

Full commit hash
2111115a7329300e0c0433fe6c238bb1f7a48c3e
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
811
Open commit View diff
811
FreddleSpl0it over 2 years ago 90a7cff

[Rspamd] check if footer.skip_replies is not 0

Full commit hash
90a7cff2c9061b0ffd0cba63ade68e3a313d4b61
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
812
            if footer.skip_replies ~= 0 then
Open commit View diff
812 if footer.skip_replies ~= 0 then
FreddleSpl0it over 2 years ago efab117

add option to skip footer on reply e-mails

Full commit hash
efab11720dd144d800ca0bf127c3410516e6bbb3
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
813
              in_reply_to = task:get_header_raw('in-reply-to')
Open commit View diff
813 in_reply_to = task:get_header_raw('in-reply-to')
same change efab117

add option to skip footer on reply e-mails

Full commit hash
efab11720dd144d800ca0bf127c3410516e6bbb3
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
814
              if in_reply_to then
Open commit View diff
814 if in_reply_to then
same change efab117

add option to skip footer on reply e-mails

Full commit hash
efab11720dd144d800ca0bf127c3410516e6bbb3
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
815
                rspamd_logger.infox(rspamd_config, "mail is a reply - skip footer")
Open commit View diff
815 rspamd_logger.infox(rspamd_config, "mail is a reply - skip footer")
same change efab117

add option to skip footer on reply e-mails

Full commit hash
efab11720dd144d800ca0bf127c3410516e6bbb3
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
816
                return
Open commit View diff
816 return
same change efab117

add option to skip footer on reply e-mails

Full commit hash
efab11720dd144d800ca0bf127c3410516e6bbb3
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
817
              end
Open commit View diff
817 end
same change efab117

add option to skip footer on reply e-mails

Full commit hash
efab11720dd144d800ca0bf127c3410516e6bbb3
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
818
            end
Open commit View diff
818 end
same change efab117

add option to skip footer on reply e-mails

Full commit hash
efab11720dd144d800ca0bf127c3410516e6bbb3
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
819
Open commit View diff
819
FreddleSpl0it almost 3 years ago 2111115

[Rspamd] domain-wide-footer add more template vars

Full commit hash
2111115a7329300e0c0433fe6c238bb1f7a48c3e
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
820
            local envfrom_mime = task:get_from(2)
Open commit View diff
820 local envfrom_mime = task:get_from(2)
same change 2111115

[Rspamd] domain-wide-footer add more template vars

Full commit hash
2111115a7329300e0c0433fe6c238bb1f7a48c3e
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
821
            local from_name = ""
Open commit View diff
821 local from_name = ""
same change 2111115

[Rspamd] domain-wide-footer add more template vars

Full commit hash
2111115a7329300e0c0433fe6c238bb1f7a48c3e
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
822
            if envfrom_mime and envfrom_mime[1].name then
Open commit View diff
822 if envfrom_mime and envfrom_mime[1].name then
same change 2111115

[Rspamd] domain-wide-footer add more template vars

Full commit hash
2111115a7329300e0c0433fe6c238bb1f7a48c3e
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
823
              from_name = envfrom_mime[1].name
Open commit View diff
823 from_name = envfrom_mime[1].name
same change 2111115

[Rspamd] domain-wide-footer add more template vars

Full commit hash
2111115a7329300e0c0433fe6c238bb1f7a48c3e
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
824
            elseif envfrom and envfrom[1].name then
Open commit View diff
824 elseif envfrom and envfrom[1].name then
same change 2111115

[Rspamd] domain-wide-footer add more template vars

Full commit hash
2111115a7329300e0c0433fe6c238bb1f7a48c3e
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
825
              from_name = envfrom[1].name
Open commit View diff
825 from_name = envfrom[1].name
same change 2111115

[Rspamd] domain-wide-footer add more template vars

Full commit hash
2111115a7329300e0c0433fe6c238bb1f7a48c3e
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
826
            end
Open commit View diff
826 end
same change 2111115

[Rspamd] domain-wide-footer add more template vars

Full commit hash
2111115a7329300e0c0433fe6c238bb1f7a48c3e
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
827
Open commit View diff
827
FreddleSpl0it over 2 years ago d2e3867

[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer

Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
828
            -- default replacements
Open commit View diff
828 -- default replacements
FreddleSpl0it almost 3 years ago 5ae9605

[Rspamd] domain-wide-footer add jinja templating

Full commit hash
5ae9605e7747d2588609f9b34245264c03a811ac
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
829
            local replacements = {
Open commit View diff
829 local replacements = {
FreddleSpl0it almost 3 years ago 2111115

[Rspamd] domain-wide-footer add more template vars

Full commit hash
2111115a7329300e0c0433fe6c238bb1f7a48c3e
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
830
              auth_user = uname,
Open commit View diff
830 auth_user = uname,
same change 2111115

[Rspamd] domain-wide-footer add more template vars

Full commit hash
2111115a7329300e0c0433fe6c238bb1f7a48c3e
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
831
              from_user = envfrom[1].user,
Open commit View diff
831 from_user = envfrom[1].user,
same change 2111115

[Rspamd] domain-wide-footer add more template vars

Full commit hash
2111115a7329300e0c0433fe6c238bb1f7a48c3e
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
832
              from_name = from_name,
Open commit View diff
832 from_name = from_name,
same change 2111115

[Rspamd] domain-wide-footer add more template vars

Full commit hash
2111115a7329300e0c0433fe6c238bb1f7a48c3e
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
833
              from_addr = envfrom[1].addr,
Open commit View diff
833 from_addr = envfrom[1].addr,
same change 2111115

[Rspamd] domain-wide-footer add more template vars

Full commit hash
2111115a7329300e0c0433fe6c238bb1f7a48c3e
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
834
              from_domain = envfrom[1].domain:lower()
Open commit View diff
834 from_domain = envfrom[1].domain:lower()
FreddleSpl0it almost 3 years ago 5ae9605

[Rspamd] domain-wide-footer add jinja templating

Full commit hash
5ae9605e7747d2588609f9b34245264c03a811ac
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
835
            }
Open commit View diff
835 }
FreddleSpl0it over 2 years ago d2e3867

[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer

Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
836
            -- add custom mailbox attributes
Open commit View diff
836 -- add custom mailbox attributes
same change d2e3867

[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer

Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
837
            if footer.vars and type(footer.vars) == "string" then
Open commit View diff
837 if footer.vars and type(footer.vars) == "string" then
same change d2e3867

[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer

Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
838
              local footer_vars = cjson.decode(footer.vars)
Open commit View diff
838 local footer_vars = cjson.decode(footer.vars)
same change d2e3867

[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer

Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
839
Open commit View diff
839
same change d2e3867

[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer

Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
840
              if type(footer_vars) == "table" then
Open commit View diff
840 if type(footer_vars) == "table" then
same change d2e3867

[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer

Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
841
                for key, value in pairs(footer_vars) do
Open commit View diff
841 for key, value in pairs(footer_vars) do
same change d2e3867

[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer

Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
842
                  replacements[key] = value
Open commit View diff
842 replacements[key] = value
same change d2e3867

[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer

Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
843
                end
Open commit View diff
843 end
same change d2e3867

[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer

Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
844
              end
Open commit View diff
844 end
same change d2e3867

[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer

Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
845
            end
Open commit View diff
845 end
same change d2e3867

[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer

Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
846
            if footer.html and footer.html ~= "" then
Open commit View diff
846 if footer.html and footer.html ~= "" then
FreddleSpl0it almost 3 years ago 5ae9605

[Rspamd] domain-wide-footer add jinja templating

Full commit hash
5ae9605e7747d2588609f9b34245264c03a811ac
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
847
              footer.html = lua_util.jinja_template(footer.html, replacements, true)
Open commit View diff
847 footer.html = lua_util.jinja_template(footer.html, replacements, true)
same change 5ae9605

[Rspamd] domain-wide-footer add jinja templating

Full commit hash
5ae9605e7747d2588609f9b34245264c03a811ac
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
848
            end
Open commit View diff
848 end
FreddleSpl0it over 2 years ago d2e3867

[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer

Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
849
            if footer.plain and footer.plain ~= "" then
Open commit View diff
849 if footer.plain and footer.plain ~= "" then
FreddleSpl0it almost 3 years ago 5ae9605

[Rspamd] domain-wide-footer add jinja templating

Full commit hash
5ae9605e7747d2588609f9b34245264c03a811ac
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
850
              footer.plain = lua_util.jinja_template(footer.plain, replacements, true)
Open commit View diff
850 footer.plain = lua_util.jinja_template(footer.plain, replacements, true)
same change 5ae9605

[Rspamd] domain-wide-footer add jinja templating

Full commit hash
5ae9605e7747d2588609f9b34245264c03a811ac
Author
FreddleSpl0it <[email protected]>
Date
almost 3 years ago
Selected line
851
            end
Open commit View diff
851 end
FreddleSpl0it 11 months ago 8d7235b

[RSPAMD] Add boundary if present when applying domain-wide footer

Full commit hash
8d7235b5356f61e6a4a822b1bbeffba32b476e57
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
852
Open commit View diff
852
FreddleSpl0it about 3 years ago f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
853
            -- add footer
Open commit View diff
853 -- add footer
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
854
            local out = {}
Open commit View diff
854 local out = {}
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
855
            local rewrite = lua_mime.add_text_footer(task, footer.html, footer.plain) or {}
Open commit View diff
855 local rewrite = lua_mime.add_text_footer(task, footer.html, footer.plain) or {}
FreddleSpl0it 11 months ago 8d7235b

[RSPAMD] Add boundary if present when applying domain-wide footer

Full commit hash
8d7235b5356f61e6a4a822b1bbeffba32b476e57
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
856
Open commit View diff
856
FreddleSpl0it about 3 years ago f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
857
            local seen_cte
Open commit View diff
857 local seen_cte
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
858
            local newline_s = newline(task)
Open commit View diff
858 local newline_s = newline(task)
FreddleSpl0it 11 months ago 8d7235b

[RSPAMD] Add boundary if present when applying domain-wide footer

Full commit hash
8d7235b5356f61e6a4a822b1bbeffba32b476e57
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
859
Open commit View diff
859
FreddleSpl0it about 3 years ago f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
860
            local function rewrite_ct_cb(name, hdr)
Open commit View diff
860 local function rewrite_ct_cb(name, hdr)
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
861
              if rewrite.need_rewrite_ct then
Open commit View diff
861 if rewrite.need_rewrite_ct then
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
862
                if name:lower() == 'content-type' then
Open commit View diff
862 if name:lower() == 'content-type' then
FreddleSpl0it 11 months ago 8d7235b

[RSPAMD] Add boundary if present when applying domain-wide footer

Full commit hash
8d7235b5356f61e6a4a822b1bbeffba32b476e57
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
863
                  -- include boundary if present
Open commit View diff
863 -- include boundary if present
same change 8d7235b

[RSPAMD] Add boundary if present when applying domain-wide footer

Full commit hash
8d7235b5356f61e6a4a822b1bbeffba32b476e57
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
864
                  local boundary_part = rewrite.new_ct.boundary and
Open commit View diff
864 local boundary_part = rewrite.new_ct.boundary and
same change 8d7235b

[RSPAMD] Add boundary if present when applying domain-wide footer

Full commit hash
8d7235b5356f61e6a4a822b1bbeffba32b476e57
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
865
                    string.format('; boundary="%s"', rewrite.new_ct.boundary) or ''
Open commit View diff
865 string.format('; boundary="%s"', rewrite.new_ct.boundary) or ''
same change 8d7235b

[RSPAMD] Add boundary if present when applying domain-wide footer

Full commit hash
8d7235b5356f61e6a4a822b1bbeffba32b476e57
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
866
                  local nct = string.format('%s: %s/%s; charset=utf-8%s',
Open commit View diff
866 local nct = string.format('%s: %s/%s; charset=utf-8%s',
same change 8d7235b

[RSPAMD] Add boundary if present when applying domain-wide footer

Full commit hash
8d7235b5356f61e6a4a822b1bbeffba32b476e57
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
867
                      'Content-Type', rewrite.new_ct.type, rewrite.new_ct.subtype, boundary_part)
Open commit View diff
867 'Content-Type', rewrite.new_ct.type, rewrite.new_ct.subtype, boundary_part)
FreddleSpl0it about 3 years ago f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
868
                  out[#out + 1] = nct
Open commit View diff
868 out[#out + 1] = nct
FreddleSpl0it 11 months ago 8d7235b

[RSPAMD] Add boundary if present when applying domain-wide footer

Full commit hash
8d7235b5356f61e6a4a822b1bbeffba32b476e57
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
869
                  -- update Content-Type header (include boundary if present)
Open commit View diff
869 -- update Content-Type header (include boundary if present)
FreddleSpl0it over 2 years ago 98cdb95

[Rspamd] milter update Content-Type and Content-Transfer-Encoding header after need_rewrite_ct

Full commit hash
98cdb95bc018b41cbebc8765ee10a1c5577a1110
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
870
                  task:set_milter_reply({
Open commit View diff
870 task:set_milter_reply({
same change 98cdb95

[Rspamd] milter update Content-Type and Content-Transfer-Encoding header after need_rewrite_ct

Full commit hash
98cdb95bc018b41cbebc8765ee10a1c5577a1110
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
871
                    remove_headers = {['Content-Type'] = 0},
Open commit View diff
871 remove_headers = {['Content-Type'] = 0},
same change 98cdb95

[Rspamd] milter update Content-Type and Content-Transfer-Encoding header after need_rewrite_ct

Full commit hash
98cdb95bc018b41cbebc8765ee10a1c5577a1110
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
872
                  })
Open commit View diff
872 })
same change 98cdb95

[Rspamd] milter update Content-Type and Content-Transfer-Encoding header after need_rewrite_ct

Full commit hash
98cdb95bc018b41cbebc8765ee10a1c5577a1110
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
873
                  task:set_milter_reply({
Open commit View diff
873 task:set_milter_reply({
FreddleSpl0it 11 months ago 8d7235b

[RSPAMD] Add boundary if present when applying domain-wide footer

Full commit hash
8d7235b5356f61e6a4a822b1bbeffba32b476e57
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
874
                    add_headers = {['Content-Type'] = string.format('%s/%s; charset=utf-8%s',
Open commit View diff
874 add_headers = {['Content-Type'] = string.format('%s/%s; charset=utf-8%s',
same change 8d7235b

[RSPAMD] Add boundary if present when applying domain-wide footer

Full commit hash
8d7235b5356f61e6a4a822b1bbeffba32b476e57
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
875
                      rewrite.new_ct.type, rewrite.new_ct.subtype, boundary_part)}
Open commit View diff
875 rewrite.new_ct.type, rewrite.new_ct.subtype, boundary_part)}
FreddleSpl0it over 2 years ago 98cdb95

[Rspamd] milter update Content-Type and Content-Transfer-Encoding header after need_rewrite_ct

Full commit hash
98cdb95bc018b41cbebc8765ee10a1c5577a1110
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
876
                  })
Open commit View diff
876 })
FreddleSpl0it about 3 years ago f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
877
                  return
Open commit View diff
877 return
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
878
                elseif name:lower() == 'content-transfer-encoding' then
Open commit View diff
878 elseif name:lower() == 'content-transfer-encoding' then
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
879
                  out[#out + 1] = string.format('%s: %s',
Open commit View diff
879 out[#out + 1] = string.format('%s: %s',
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
880
                      'Content-Transfer-Encoding', 'quoted-printable')
Open commit View diff
880 'Content-Transfer-Encoding', 'quoted-printable')
FreddleSpl0it over 2 years ago 98cdb95

[Rspamd] milter update Content-Type and Content-Transfer-Encoding header after need_rewrite_ct

Full commit hash
98cdb95bc018b41cbebc8765ee10a1c5577a1110
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
881
                  -- update Content-Transfer-Encoding header
Open commit View diff
881 -- update Content-Transfer-Encoding header
same change 98cdb95

[Rspamd] milter update Content-Type and Content-Transfer-Encoding header after need_rewrite_ct

Full commit hash
98cdb95bc018b41cbebc8765ee10a1c5577a1110
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
882
                  task:set_milter_reply({
Open commit View diff
882 task:set_milter_reply({
same change 98cdb95

[Rspamd] milter update Content-Type and Content-Transfer-Encoding header after need_rewrite_ct

Full commit hash
98cdb95bc018b41cbebc8765ee10a1c5577a1110
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
883
                    remove_headers = {['Content-Transfer-Encoding'] = 0},
Open commit View diff
883 remove_headers = {['Content-Transfer-Encoding'] = 0},
same change 98cdb95

[Rspamd] milter update Content-Type and Content-Transfer-Encoding header after need_rewrite_ct

Full commit hash
98cdb95bc018b41cbebc8765ee10a1c5577a1110
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
884
                  })
Open commit View diff
884 })
same change 98cdb95

[Rspamd] milter update Content-Type and Content-Transfer-Encoding header after need_rewrite_ct

Full commit hash
98cdb95bc018b41cbebc8765ee10a1c5577a1110
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
885
                  task:set_milter_reply({
Open commit View diff
885 task:set_milter_reply({
same change 98cdb95

[Rspamd] milter update Content-Type and Content-Transfer-Encoding header after need_rewrite_ct

Full commit hash
98cdb95bc018b41cbebc8765ee10a1c5577a1110
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
886
                    add_headers = {['Content-Transfer-Encoding'] = 'quoted-printable'}
Open commit View diff
886 add_headers = {['Content-Transfer-Encoding'] = 'quoted-printable'}
same change 98cdb95

[Rspamd] milter update Content-Type and Content-Transfer-Encoding header after need_rewrite_ct

Full commit hash
98cdb95bc018b41cbebc8765ee10a1c5577a1110
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
887
                  })
Open commit View diff
887 })
FreddleSpl0it about 3 years ago f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
888
                  seen_cte = true
Open commit View diff
888 seen_cte = true
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
889
                  return
Open commit View diff
889 return
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
890
                end
Open commit View diff
890 end
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
891
              end
Open commit View diff
891 end
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
892
              out[#out + 1] = hdr.raw:gsub('\r?\n?$', '')
Open commit View diff
892 out[#out + 1] = hdr.raw:gsub('\r?\n?$', '')
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
893
            end
Open commit View diff
893 end
FreddleSpl0it 11 months ago 8d7235b

[RSPAMD] Add boundary if present when applying domain-wide footer

Full commit hash
8d7235b5356f61e6a4a822b1bbeffba32b476e57
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
894
Open commit View diff
894
FreddleSpl0it about 3 years ago f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
895
            task:headers_foreach(rewrite_ct_cb, {full = true})
Open commit View diff
895 task:headers_foreach(rewrite_ct_cb, {full = true})
FreddleSpl0it 11 months ago 8d7235b

[RSPAMD] Add boundary if present when applying domain-wide footer

Full commit hash
8d7235b5356f61e6a4a822b1bbeffba32b476e57
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
896
Open commit View diff
896
FreddleSpl0it about 3 years ago f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
897
            if not seen_cte and rewrite.need_rewrite_ct then
Open commit View diff
897 if not seen_cte and rewrite.need_rewrite_ct then
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
898
              out[#out + 1] = string.format('%s: %s', 'Content-Transfer-Encoding', 'quoted-printable')
Open commit View diff
898 out[#out + 1] = string.format('%s: %s', 'Content-Transfer-Encoding', 'quoted-printable')
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
899
            end
Open commit View diff
899 end
FreddleSpl0it 11 months ago 8d7235b

[RSPAMD] Add boundary if present when applying domain-wide footer

Full commit hash
8d7235b5356f61e6a4a822b1bbeffba32b476e57
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
900
Open commit View diff
900
FreddleSpl0it about 3 years ago f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
901
            -- End of headers
Open commit View diff
901 -- End of headers
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
902
            out[#out + 1] = newline_s
Open commit View diff
902 out[#out + 1] = newline_s
FreddleSpl0it 11 months ago 8d7235b

[RSPAMD] Add boundary if present when applying domain-wide footer

Full commit hash
8d7235b5356f61e6a4a822b1bbeffba32b476e57
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
903
Open commit View diff
903
FreddleSpl0it about 3 years ago f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
904
            if rewrite.out then
Open commit View diff
904 if rewrite.out then
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
905
              for _,o in ipairs(rewrite.out) do
Open commit View diff
905 for _,o in ipairs(rewrite.out) do
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
906
                out[#out + 1] = o
Open commit View diff
906 out[#out + 1] = o
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
907
              end
Open commit View diff
907 end
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
908
            else
Open commit View diff
908 else
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
909
              out[#out + 1] = task:get_rawbody()
Open commit View diff
909 out[#out + 1] = task:get_rawbody()
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
910
            end
Open commit View diff
910 end
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
911
            local out_parts = {}
Open commit View diff
911 local out_parts = {}
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
912
            for _,o in ipairs(out) do
Open commit View diff
912 for _,o in ipairs(out) do
FreddleSpl0it over 2 years ago 8ba1e1b

[Rspamd] workaround - remove "--\x0D\x0A" prefix from rewritten cts

Full commit hash
8ba1e1ba9e4bd18fd7044714799b645569eb429c
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
913
              if type(o) ~= 'table' then
Open commit View diff
913 if type(o) ~= 'table' then
same change 8ba1e1b

[Rspamd] workaround - remove "--\x0D\x0A" prefix from rewritten cts

Full commit hash
8ba1e1ba9e4bd18fd7044714799b645569eb429c
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
914
                out_parts[#out_parts + 1] = o
Open commit View diff
914 out_parts[#out_parts + 1] = o
same change 8ba1e1b

[Rspamd] workaround - remove "--\x0D\x0A" prefix from rewritten cts

Full commit hash
8ba1e1ba9e4bd18fd7044714799b645569eb429c
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
915
                out_parts[#out_parts + 1] = newline_s
Open commit View diff
915 out_parts[#out_parts + 1] = newline_s
same change 8ba1e1b

[Rspamd] workaround - remove "--\x0D\x0A" prefix from rewritten cts

Full commit hash
8ba1e1ba9e4bd18fd7044714799b645569eb429c
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
916
              else
Open commit View diff
916 else
same change 8ba1e1b

[Rspamd] workaround - remove "--\x0D\x0A" prefix from rewritten cts

Full commit hash
8ba1e1ba9e4bd18fd7044714799b645569eb429c
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
917
                local removePrefix = "--\x0D\x0AContent-Type"
Open commit View diff
917 local removePrefix = "--\x0D\x0AContent-Type"
same change 8ba1e1b

[Rspamd] workaround - remove "--\x0D\x0A" prefix from rewritten cts

Full commit hash
8ba1e1ba9e4bd18fd7044714799b645569eb429c
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
918
                if string.lower(string.sub(tostring(o[1]), 1, string.len(removePrefix))) == string.lower(removePrefix) then
Open commit View diff
918 if string.lower(string.sub(tostring(o[1]), 1, string.len(removePrefix))) == string.lower(removePrefix) then
same change 8ba1e1b

[Rspamd] workaround - remove "--\x0D\x0A" prefix from rewritten cts

Full commit hash
8ba1e1ba9e4bd18fd7044714799b645569eb429c
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
919
                  o[1] = string.sub(tostring(o[1]), string.len("--\x0D\x0A") + 1)
Open commit View diff
919 o[1] = string.sub(tostring(o[1]), string.len("--\x0D\x0A") + 1)
same change 8ba1e1b

[Rspamd] workaround - remove "--\x0D\x0A" prefix from rewritten cts

Full commit hash
8ba1e1ba9e4bd18fd7044714799b645569eb429c
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
920
                end
Open commit View diff
920 end
same change 8ba1e1b

[Rspamd] workaround - remove "--\x0D\x0A" prefix from rewritten cts

Full commit hash
8ba1e1ba9e4bd18fd7044714799b645569eb429c
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
921
                out_parts[#out_parts + 1] = o[1]
Open commit View diff
921 out_parts[#out_parts + 1] = o[1]
same change 8ba1e1b

[Rspamd] workaround - remove "--\x0D\x0A" prefix from rewritten cts

Full commit hash
8ba1e1ba9e4bd18fd7044714799b645569eb429c
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
922
                if o[2] then
Open commit View diff
922 if o[2] then
same change 8ba1e1b

[Rspamd] workaround - remove "--\x0D\x0A" prefix from rewritten cts

Full commit hash
8ba1e1ba9e4bd18fd7044714799b645569eb429c
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
923
                  out_parts[#out_parts + 1] = newline_s
Open commit View diff
923 out_parts[#out_parts + 1] = newline_s
same change 8ba1e1b

[Rspamd] workaround - remove "--\x0D\x0A" prefix from rewritten cts

Full commit hash
8ba1e1ba9e4bd18fd7044714799b645569eb429c
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
924
                end
Open commit View diff
924 end
same change 8ba1e1b

[Rspamd] workaround - remove "--\x0D\x0A" prefix from rewritten cts

Full commit hash
8ba1e1ba9e4bd18fd7044714799b645569eb429c
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
925
              end
Open commit View diff
925 end
FreddleSpl0it about 3 years ago f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
926
            end
Open commit View diff
926 end
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
927
            task:set_message(out_parts)
Open commit View diff
927 task:set_message(out_parts)
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
928
          else
Open commit View diff
928 else
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
929
            rspamd_logger.infox(rspamd_config, "domain wide footer request for user %s returned invalid or empty data (\"%s\")", uname, data)
Open commit View diff
929 rspamd_logger.infox(rspamd_config, "domain wide footer request for user %s returned invalid or empty data (\"%s\")", uname, data)
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
930
          end
Open commit View diff
930 end
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
931
        end
Open commit View diff
931 end
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
932
      end
Open commit View diff
932 end
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
933
    end
Open commit View diff
933 end
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
934
Open commit View diff
934
FreddleSpl0it over 2 years ago d2e3867

[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer

Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
935
    -- fetch footer
Open commit View diff
935 -- fetch footer
same change d2e3867

[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer

Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
936
    rspamd_http.request({
Open commit View diff
936 rspamd_http.request({
same change d2e3867

[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer

Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
937
      task=task,
Open commit View diff
937 task=task,
same change d2e3867

[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer

Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
938
      url='http://nginx:8081/footer.php',
Open commit View diff
938 url='http://nginx:8081/footer.php',
same change d2e3867

[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer

Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
939
      body='',
Open commit View diff
939 body='',
same change d2e3867

[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer

Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
940
      callback=footer_cb,
Open commit View diff
940 callback=footer_cb,
FreddleSpl0it over 2 years ago b3ac941

[Rspamd] fix excluding alias from domain wide footer

Full commit hash
b3ac94115e9870159acbeae5477fbcc06fe01536
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
941
      headers={Domain=env_from_domain,Username=uname,From=env_from_addr},
Open commit View diff
941 headers={Domain=env_from_domain,Username=uname,From=env_from_addr},
FreddleSpl0it over 2 years ago d2e3867

[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer

Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
942
    })
Open commit View diff
942 })
FreddleSpl0it about 3 years ago f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
943
Open commit View diff
943
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
944
    return true
Open commit View diff
944 return true
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
945
  end,
Open commit View diff
945 end,
same change f295b8c

[Rspamd] add domain wide footer

Full commit hash
f295b8cd91f9d691ad93c53191e6319282dcae55
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
946
  priority = 1
Open commit View diff
946 priority = 1
DocFraggle 5 months ago 5e478a3

Fix lua script sub-addressing (#7037)

Full commit hash
5e478a32df91bac32f9cbb150aad6dd0228f8240
Author
DocFraggle <[email protected]>
Date
5 months ago
Selected line
947
})
Open commit View diff
947 })