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/dynmaps/settings.php

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

settings.php on main
Author Date Commit Line Code
andryyy over 9 years ago 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
1
<?php
Open commit View diff
1 <?php
same change 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
2
/*
Open commit View diff
2 /*
same change 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
3
The match section performs AND operation on different matches: for example, if you have from and rcpt in the same rule,
Open commit View diff
3 The match section performs AND operation on different matches: for example, if you have from and rcpt in the same rule,
same change 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
4
then the rule matches only when from AND rcpt match. For similar matches, the OR rule applies: if you have multiple rcpt matches,
Open commit View diff
4 then the rule matches only when from AND rcpt match. For similar matches, the OR rule applies: if you have multiple rcpt matches,
same change 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
5
then any of these will trigger the rule. If a rule is triggered then no more rules are matched.
Open commit View diff
5 then any of these will trigger the rule. If a rule is triggered then no more rules are matched.
same change 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
6
*/
Open commit View diff
6 */
same change 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
7
header('Content-Type: text/plain');
Open commit View diff
7 header('Content-Type: text/plain');
same change 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
8
require_once "vars.inc.php";
Open commit View diff
8 require_once "vars.inc.php";
andryyy over 7 years ago d124fa1

[Rspamd] Check if filterconf table was changed and return Last-Modified accordingly

Full commit hash
d124fa1d5ba31235d6dd776cc2ceba452be8326a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
9
// Getting headers sent by the client.
Open commit View diff
9 // Getting headers sent by the client.
andryyy about 9 years ago 56a652f

[Rspamd] Set error_reporting to 0

Full commit hash
56a652fbf38a075075b61cb8592c099abb86a5eb
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
10
ini_set('error_reporting', 0);
Open commit View diff
10 ini_set('error_reporting', 0);
andryyy over 9 years ago c21623b

Important fix for Rspamd score settings, LUA tag handling changes

Full commit hash
c21623b4827ce9b399df61dbe32308275359b2ae
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
11
Open commit View diff
11
André almost 8 years ago 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
12
//$dsn = $database_type . ':host=' . $database_host . ';dbname=' . $database_name;
Open commit View diff
12 //$dsn = $database_type . ':host=' . $database_host . ';dbname=' . $database_name;
same change 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
13
$dsn = $database_type . ":unix_socket=" . $database_sock . ";dbname=" . $database_name;
Open commit View diff
13 $dsn = $database_type . ":unix_socket=" . $database_sock . ";dbname=" . $database_name;
andryyy over 9 years ago 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
14
$opt = [
Open commit View diff
14 $opt = [
same change 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
15
    PDO::ATTR_ERRMODE            => PDO::ERRMODE_EXCEPTION,
Open commit View diff
15 PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
same change 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
16
    PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
Open commit View diff
16 PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
same change 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
17
    PDO::ATTR_EMULATE_PREPARES   => false,
Open commit View diff
17 PDO::ATTR_EMULATE_PREPARES => false,
same change 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
18
];
Open commit View diff
18 ];
andryyy over 9 years ago 211e415

Always return settings

Full commit hash
211e4158a22d804905e722067d178e82529f6f94
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
19
try {
Open commit View diff
19 try {
andryyy over 9 years ago 285e295

Fix for settings

Full commit hash
285e295d9118fff947ab81e19b9ea4c2ce0e0304
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
20
  $pdo = new PDO($dsn, $database_user, $database_pass, $opt);
Open commit View diff
20 $pdo = new PDO($dsn, $database_user, $database_pass, $opt);
andre.peters over 8 years ago 873222d

[Rspamd] Remove DKIM forced action, move ratelimit lua, add meta exporter

Full commit hash
873222d5f8f9efc3355b1babe394a543698bcfa4
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
21
  $stmt = $pdo->query("SELECT '1' FROM `filterconf`");
Open commit View diff
21 $stmt = $pdo->query("SELECT '1' FROM `filterconf`");
andryyy over 9 years ago 211e415

Always return settings

Full commit hash
211e4158a22d804905e722067d178e82529f6f94
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
22
}
Open commit View diff
22 }
same change 211e415

Always return settings

Full commit hash
211e4158a22d804905e722067d178e82529f6f94
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
23
catch (PDOException $e) {
Open commit View diff
23 catch (PDOException $e) {
same change 211e415

Always return settings

Full commit hash
211e4158a22d804905e722067d178e82529f6f94
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
24
  echo 'settings { }';
Open commit View diff
24 echo 'settings { }';
same change 211e415

Always return settings

Full commit hash
211e4158a22d804905e722067d178e82529f6f94
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
25
  exit;
Open commit View diff
25 exit;
same change 211e415

Always return settings

Full commit hash
211e4158a22d804905e722067d178e82529f6f94
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
26
}
Open commit View diff
26 }
andryyy over 9 years ago 285e295

Fix for settings

Full commit hash
285e295d9118fff947ab81e19b9ea4c2ce0e0304
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
27
Open commit View diff
27
andryyy over 7 years ago d124fa1

[Rspamd] Check if filterconf table was changed and return Last-Modified accordingly

Full commit hash
d124fa1d5ba31235d6dd776cc2ceba452be8326a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
28
// Check if db changed and return header
Open commit View diff
28 // Check if db changed and return header
andryyy almost 5 years ago 43121b9

[Rspamd] Properly cache Rspamd settings map, save a lot of resources

Full commit hash
43121b9287d13f31c1bc49004d4d0a5e8e1e0c49
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
29
$stmt = $pdo->prepare("SELECT GREATEST(COALESCE(MAX(UNIX_TIMESTAMP(UPDATE_TIME)), 1), COALESCE(MAX(UNIX_TIMESTAMP(CREATE_TIME)), 1)) AS `db_update_time` FROM `information_schema`.`tables`
Open commit View diff
29 $stmt = $pdo->prepare("SELECT GREATEST(COALESCE(MAX(UNIX_TIMESTAMP(UPDATE_TIME)), 1), COALESCE(MAX(UNIX_TIMESTAMP(CREATE_TIME)), 1)) AS `db_update_time` FROM `information_schema`.`tables`
andryyy almost 5 years ago c4f70f3

[Rspamd] Wrong operator: AND should be OR

Full commit hash
c4f70f39b5129a73571e5e50900cde86b9c93ae0
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
30
  WHERE (`TABLE_NAME` = 'filterconf' OR `TABLE_NAME` = 'settingsmap' OR `TABLE_NAME` = 'sogo_quick_contact' OR `TABLE_NAME` = 'alias')
Open commit View diff
30 WHERE (`TABLE_NAME` = 'filterconf' OR `TABLE_NAME` = 'settingsmap' OR `TABLE_NAME` = 'sogo_quick_contact' OR `TABLE_NAME` = 'alias')
andryyy over 7 years ago d124fa1

[Rspamd] Check if filterconf table was changed and return Last-Modified accordingly

Full commit hash
d124fa1d5ba31235d6dd776cc2ceba452be8326a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
31
    AND TABLE_SCHEMA = :dbname;");
Open commit View diff
31 AND TABLE_SCHEMA = :dbname;");
same change d124fa1

[Rspamd] Check if filterconf table was changed and return Last-Modified accordingly

Full commit hash
d124fa1d5ba31235d6dd776cc2ceba452be8326a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
32
$stmt->execute(array(
Open commit View diff
32 $stmt->execute(array(
same change d124fa1

[Rspamd] Check if filterconf table was changed and return Last-Modified accordingly

Full commit hash
d124fa1d5ba31235d6dd776cc2ceba452be8326a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
33
  ':dbname' => $database_name
Open commit View diff
33 ':dbname' => $database_name
same change d124fa1

[Rspamd] Check if filterconf table was changed and return Last-Modified accordingly

Full commit hash
d124fa1d5ba31235d6dd776cc2ceba452be8326a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
34
));
Open commit View diff
34 ));
same change d124fa1

[Rspamd] Check if filterconf table was changed and return Last-Modified accordingly

Full commit hash
d124fa1d5ba31235d6dd776cc2ceba452be8326a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
35
$db_update_time = $stmt->fetch(PDO::FETCH_ASSOC)['db_update_time'];
Open commit View diff
35 $db_update_time = $stmt->fetch(PDO::FETCH_ASSOC)['db_update_time'];
andryyy over 6 years ago 8683e4b

[Rspamd] Use last-modified headers to not read unmodified settings map every 30 seconds

Full commit hash
8683e4bd9aa43cac69d3c1a68e0103dd1946d739
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
36
if (empty($db_update_time)) {
Open commit View diff
36 if (empty($db_update_time)) {
same change 8683e4b

[Rspamd] Use last-modified headers to not read unmodified settings map every 30 seconds

Full commit hash
8683e4bd9aa43cac69d3c1a68e0103dd1946d739
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
37
  $db_update_time = 1572048000;
Open commit View diff
37 $db_update_time = 1572048000;
same change 8683e4b

[Rspamd] Use last-modified headers to not read unmodified settings map every 30 seconds

Full commit hash
8683e4bd9aa43cac69d3c1a68e0103dd1946d739
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
38
}
Open commit View diff
38 }
same change 8683e4b

[Rspamd] Use last-modified headers to not read unmodified settings map every 30 seconds

Full commit hash
8683e4bd9aa43cac69d3c1a68e0103dd1946d739
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
39
if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) && (strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) == $db_update_time)) {
Open commit View diff
39 if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) && (strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) == $db_update_time)) {
andryyy over 7 years ago d124fa1

[Rspamd] Check if filterconf table was changed and return Last-Modified accordingly

Full commit hash
d124fa1d5ba31235d6dd776cc2ceba452be8326a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
40
  header('Last-Modified: '.gmdate('D, d M Y H:i:s', $db_update_time).' GMT', true, 304);
Open commit View diff
40 header('Last-Modified: '.gmdate('D, d M Y H:i:s', $db_update_time).' GMT', true, 304);
same change d124fa1

[Rspamd] Check if filterconf table was changed and return Last-Modified accordingly

Full commit hash
d124fa1d5ba31235d6dd776cc2ceba452be8326a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
41
  exit;
Open commit View diff
41 exit;
same change d124fa1

[Rspamd] Check if filterconf table was changed and return Last-Modified accordingly

Full commit hash
d124fa1d5ba31235d6dd776cc2ceba452be8326a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
42
} else {
Open commit View diff
42 } else {
same change d124fa1

[Rspamd] Check if filterconf table was changed and return Last-Modified accordingly

Full commit hash
d124fa1d5ba31235d6dd776cc2ceba452be8326a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
43
  header('Last-Modified: '.gmdate('D, d M Y H:i:s', $db_update_time).' GMT', true, 200);
Open commit View diff
43 header('Last-Modified: '.gmdate('D, d M Y H:i:s', $db_update_time).' GMT', true, 200);
same change d124fa1

[Rspamd] Check if filterconf table was changed and return Last-Modified accordingly

Full commit hash
d124fa1d5ba31235d6dd776cc2ceba452be8326a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
44
}
Open commit View diff
44 }
same change d124fa1

[Rspamd] Check if filterconf table was changed and return Last-Modified accordingly

Full commit hash
d124fa1d5ba31235d6dd776cc2ceba452be8326a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
45
Open commit View diff
45
andryyy about 9 years ago afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
46
function parse_email($email) {
Open commit View diff
46 function parse_email($email) {
andryyy over 7 years ago 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
47
  if (!filter_var($email, FILTER_VALIDATE_EMAIL)) return false;
Open commit View diff
47 if (!filter_var($email, FILTER_VALIDATE_EMAIL)) return false;
andryyy about 9 years ago afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
48
  $a = strrpos($email, '@');
Open commit View diff
48 $a = strrpos($email, '@');
same change afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
49
  return array('local' => substr($email, 0, $a), 'domain' => substr($email, $a));
Open commit View diff
49 return array('local' => substr($email, 0, $a), 'domain' => substr($email, $a));
same change afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
50
}
Open commit View diff
50 }
same change afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
51
Open commit View diff
51
Dmitriy Alekseev over 4 years ago a26bbff

[Rspamd] Enhance SOGo contacts dynmap (#4245)

Full commit hash
a26bbff63f5e97e1c162572996e2a0a4e0ffd9d9
Author
Dmitriy Alekseev <[email protected]>
Date
over 4 years ago
Selected line
52
function normalize_email($email) {
Open commit View diff
52 function normalize_email($email) {
same change a26bbff

[Rspamd] Enhance SOGo contacts dynmap (#4245)

Full commit hash
a26bbff63f5e97e1c162572996e2a0a4e0ffd9d9
Author
Dmitriy Alekseev <[email protected]>
Date
over 4 years ago
Selected line
53
  $email = strtolower(str_replace('/', '\/', $email));
Open commit View diff
53 $email = strtolower(str_replace('/', '\/', $email));
same change a26bbff

[Rspamd] Enhance SOGo contacts dynmap (#4245)

Full commit hash
a26bbff63f5e97e1c162572996e2a0a4e0ffd9d9
Author
Dmitriy Alekseev <[email protected]>
Date
over 4 years ago
Selected line
54
  $gm = "@gmail.com";
Open commit View diff
54 $gm = "@gmail.com";
same change a26bbff

[Rspamd] Enhance SOGo contacts dynmap (#4245)

Full commit hash
a26bbff63f5e97e1c162572996e2a0a4e0ffd9d9
Author
Dmitriy Alekseev <[email protected]>
Date
over 4 years ago
Selected line
55
  if (substr_compare($email, $gm, -strlen($gm)) == 0) {
Open commit View diff
55 if (substr_compare($email, $gm, -strlen($gm)) == 0) {
same change a26bbff

[Rspamd] Enhance SOGo contacts dynmap (#4245)

Full commit hash
a26bbff63f5e97e1c162572996e2a0a4e0ffd9d9
Author
Dmitriy Alekseev <[email protected]>
Date
over 4 years ago
Selected line
56
    $email = explode('@', $email);
Open commit View diff
56 $email = explode('@', $email);
same change a26bbff

[Rspamd] Enhance SOGo contacts dynmap (#4245)

Full commit hash
a26bbff63f5e97e1c162572996e2a0a4e0ffd9d9
Author
Dmitriy Alekseev <[email protected]>
Date
over 4 years ago
Selected line
57
    $email[0] = str_replace('.', '', $email[0]);
Open commit View diff
57 $email[0] = str_replace('.', '', $email[0]);
same change a26bbff

[Rspamd] Enhance SOGo contacts dynmap (#4245)

Full commit hash
a26bbff63f5e97e1c162572996e2a0a4e0ffd9d9
Author
Dmitriy Alekseev <[email protected]>
Date
over 4 years ago
Selected line
58
    $email = implode('@', $email);
Open commit View diff
58 $email = implode('@', $email);
FreddleSpl0it 11 months ago f67c053

[Rspamd][Web] Internal alias support

Full commit hash
f67c0530f56495d4b7a2c3b8816a8140c2f25586
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
59
  }
Open commit View diff
59 }
Dmitriy Alekseev over 4 years ago a26bbff

[Rspamd] Enhance SOGo contacts dynmap (#4245)

Full commit hash
a26bbff63f5e97e1c162572996e2a0a4e0ffd9d9
Author
Dmitriy Alekseev <[email protected]>
Date
over 4 years ago
Selected line
60
  $gm_alt = "@googlemail.com";
Open commit View diff
60 $gm_alt = "@googlemail.com";
same change a26bbff

[Rspamd] Enhance SOGo contacts dynmap (#4245)

Full commit hash
a26bbff63f5e97e1c162572996e2a0a4e0ffd9d9
Author
Dmitriy Alekseev <[email protected]>
Date
over 4 years ago
Selected line
61
  if (substr_compare($email, $gm_alt, -strlen($gm_alt)) == 0) {
Open commit View diff
61 if (substr_compare($email, $gm_alt, -strlen($gm_alt)) == 0) {
same change a26bbff

[Rspamd] Enhance SOGo contacts dynmap (#4245)

Full commit hash
a26bbff63f5e97e1c162572996e2a0a4e0ffd9d9
Author
Dmitriy Alekseev <[email protected]>
Date
over 4 years ago
Selected line
62
    $email = explode('@', $email);
Open commit View diff
62 $email = explode('@', $email);
same change a26bbff

[Rspamd] Enhance SOGo contacts dynmap (#4245)

Full commit hash
a26bbff63f5e97e1c162572996e2a0a4e0ffd9d9
Author
Dmitriy Alekseev <[email protected]>
Date
over 4 years ago
Selected line
63
    $email[0] = str_replace('.', '', $email[0]);
Open commit View diff
63 $email[0] = str_replace('.', '', $email[0]);
same change a26bbff

[Rspamd] Enhance SOGo contacts dynmap (#4245)

Full commit hash
a26bbff63f5e97e1c162572996e2a0a4e0ffd9d9
Author
Dmitriy Alekseev <[email protected]>
Date
over 4 years ago
Selected line
64
    $email[1] = str_replace('@', '', $gm);
Open commit View diff
64 $email[1] = str_replace('@', '', $gm);
same change a26bbff

[Rspamd] Enhance SOGo contacts dynmap (#4245)

Full commit hash
a26bbff63f5e97e1c162572996e2a0a4e0ffd9d9
Author
Dmitriy Alekseev <[email protected]>
Date
over 4 years ago
Selected line
65
    $email = implode('@', $email);
Open commit View diff
65 $email = implode('@', $email);
same change a26bbff

[Rspamd] Enhance SOGo contacts dynmap (#4245)

Full commit hash
a26bbff63f5e97e1c162572996e2a0a4e0ffd9d9
Author
Dmitriy Alekseev <[email protected]>
Date
over 4 years ago
Selected line
66
  }
Open commit View diff
66 }
same change a26bbff

[Rspamd] Enhance SOGo contacts dynmap (#4245)

Full commit hash
a26bbff63f5e97e1c162572996e2a0a4e0ffd9d9
Author
Dmitriy Alekseev <[email protected]>
Date
over 4 years ago
Selected line
67
  if (str_contains($email, "+")) {
Open commit View diff
67 if (str_contains($email, "+")) {
same change a26bbff

[Rspamd] Enhance SOGo contacts dynmap (#4245)

Full commit hash
a26bbff63f5e97e1c162572996e2a0a4e0ffd9d9
Author
Dmitriy Alekseev <[email protected]>
Date
over 4 years ago
Selected line
68
    $email = explode('@', $email);
Open commit View diff
68 $email = explode('@', $email);
same change a26bbff

[Rspamd] Enhance SOGo contacts dynmap (#4245)

Full commit hash
a26bbff63f5e97e1c162572996e2a0a4e0ffd9d9
Author
Dmitriy Alekseev <[email protected]>
Date
over 4 years ago
Selected line
69
    $user = explode('+', $email[0]);
Open commit View diff
69 $user = explode('+', $email[0]);
same change a26bbff

[Rspamd] Enhance SOGo contacts dynmap (#4245)

Full commit hash
a26bbff63f5e97e1c162572996e2a0a4e0ffd9d9
Author
Dmitriy Alekseev <[email protected]>
Date
over 4 years ago
Selected line
70
    $email[0] = $user[0];
Open commit View diff
70 $email[0] = $user[0];
same change a26bbff

[Rspamd] Enhance SOGo contacts dynmap (#4245)

Full commit hash
a26bbff63f5e97e1c162572996e2a0a4e0ffd9d9
Author
Dmitriy Alekseev <[email protected]>
Date
over 4 years ago
Selected line
71
    $email = implode('@', $email);
Open commit View diff
71 $email = implode('@', $email);
same change a26bbff

[Rspamd] Enhance SOGo contacts dynmap (#4245)

Full commit hash
a26bbff63f5e97e1c162572996e2a0a4e0ffd9d9
Author
Dmitriy Alekseev <[email protected]>
Date
over 4 years ago
Selected line
72
  }
Open commit View diff
72 }
same change a26bbff

[Rspamd] Enhance SOGo contacts dynmap (#4245)

Full commit hash
a26bbff63f5e97e1c162572996e2a0a4e0ffd9d9
Author
Dmitriy Alekseev <[email protected]>
Date
over 4 years ago
Selected line
73
  return $email;
Open commit View diff
73 return $email;
same change a26bbff

[Rspamd] Enhance SOGo contacts dynmap (#4245)

Full commit hash
a26bbff63f5e97e1c162572996e2a0a4e0ffd9d9
Author
Dmitriy Alekseev <[email protected]>
Date
over 4 years ago
Selected line
74
}
Open commit View diff
74 }
same change a26bbff

[Rspamd] Enhance SOGo contacts dynmap (#4245)

Full commit hash
a26bbff63f5e97e1c162572996e2a0a4e0ffd9d9
Author
Dmitriy Alekseev <[email protected]>
Date
over 4 years ago
Selected line
75
Open commit View diff
75
andryyy over 7 years ago 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
76
function wl_by_sogo() {
Open commit View diff
76 function wl_by_sogo() {
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
77
  global $pdo;
Open commit View diff
77 global $pdo;
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
78
  $rcpt = array();
Open commit View diff
78 $rcpt = array();
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
79
  $stmt = $pdo->query("SELECT DISTINCT(`sogo_folder_info`.`c_path2`) AS `user`, GROUP_CONCAT(`sogo_quick_contact`.`c_mail`) AS `contacts` FROM `sogo_folder_info`
Open commit View diff
79 $stmt = $pdo->query("SELECT DISTINCT(`sogo_folder_info`.`c_path2`) AS `user`, GROUP_CONCAT(`sogo_quick_contact`.`c_mail`) AS `contacts` FROM `sogo_folder_info`
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
80
    INNER JOIN `sogo_quick_contact` ON `sogo_quick_contact`.`c_folder_id` = `sogo_folder_info`.`c_folder_id`
Open commit View diff
80 INNER JOIN `sogo_quick_contact` ON `sogo_quick_contact`.`c_folder_id` = `sogo_folder_info`.`c_folder_id`
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
81
      GROUP BY `c_path2`");
Open commit View diff
81 GROUP BY `c_path2`");
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
82
  $sogo_contacts = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
82 $sogo_contacts = $stmt->fetchAll(PDO::FETCH_ASSOC);
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
83
  while ($row = array_shift($sogo_contacts)) {
Open commit View diff
83 while ($row = array_shift($sogo_contacts)) {
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
84
    foreach (explode(',', $row['contacts']) as $contact) {
Open commit View diff
84 foreach (explode(',', $row['contacts']) as $contact) {
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
85
      if (!filter_var($contact, FILTER_VALIDATE_EMAIL)) {
Open commit View diff
85 if (!filter_var($contact, FILTER_VALIDATE_EMAIL)) {
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
86
        continue;
Open commit View diff
86 continue;
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
87
      }
Open commit View diff
87 }
andryyy almost 7 years ago 9bbf9dc

[Rspamd] Fix and improve settings map

Full commit hash
9bbf9dc68e21dc937ca5276ac3fb238b30114cd1
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
88
      // Explicit from, no mime_from, no regex - envelope must match
Open commit View diff
88 // Explicit from, no mime_from, no regex - envelope must match
same change 9bbf9dc

[Rspamd] Fix and improve settings map

Full commit hash
9bbf9dc68e21dc937ca5276ac3fb238b30114cd1
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
89
      // mailcow white and blacklists also cover mime_from
Open commit View diff
89 // mailcow white and blacklists also cover mime_from
Dmitriy Alekseev over 4 years ago a26bbff

[Rspamd] Enhance SOGo contacts dynmap (#4245)

Full commit hash
a26bbff63f5e97e1c162572996e2a0a4e0ffd9d9
Author
Dmitriy Alekseev <[email protected]>
Date
over 4 years ago
Selected line
90
      $rcpt[$row['user']][] = normalize_email($contact);
Open commit View diff
90 $rcpt[$row['user']][] = normalize_email($contact);
andryyy over 7 years ago 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
91
    }
Open commit View diff
91 }
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
92
  }
Open commit View diff
92 }
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
93
  return $rcpt;
Open commit View diff
93 return $rcpt;
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
94
}
Open commit View diff
94 }
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
95
Open commit View diff
95
andryyy about 9 years ago afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
96
function ucl_rcpts($object, $type) {
Open commit View diff
96 function ucl_rcpts($object, $type) {
same change afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
97
  global $pdo;
Open commit View diff
97 global $pdo;
andryyy over 7 years ago 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
98
  $rcpt = array();
Open commit View diff
98 $rcpt = array();
andryyy about 9 years ago afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
99
  if ($type == 'mailbox') {
Open commit View diff
99 if ($type == 'mailbox') {
same change afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
100
    // Standard aliases
Open commit View diff
100 // Standard aliases
same change afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
101
    $stmt = $pdo->prepare("SELECT `address` FROM `alias`
Open commit View diff
101 $stmt = $pdo->prepare("SELECT `address` FROM `alias`
André about 8 years ago 9dc250c

[Rspamd] Important fix for settings map

Full commit hash
9dc250c9f2cb15d93bf70f7324a58fd66ba2643b
Author
André <[email protected]>
Date
about 8 years ago
Selected line
102
      WHERE `goto` = :object_goto
Open commit View diff
102 WHERE `goto` = :object_goto
same change 9dc250c

[Rspamd] Important fix for settings map

Full commit hash
9dc250c9f2cb15d93bf70f7324a58fd66ba2643b
Author
André <[email protected]>
Date
about 8 years ago
Selected line
103
        AND `address` NOT LIKE '@%'");
Open commit View diff
103 AND `address` NOT LIKE '@%'");
andryyy about 9 years ago afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
104
    $stmt->execute(array(
Open commit View diff
104 $stmt->execute(array(
André about 8 years ago 9dc250c

[Rspamd] Important fix for settings map

Full commit hash
9dc250c9f2cb15d93bf70f7324a58fd66ba2643b
Author
André <[email protected]>
Date
about 8 years ago
Selected line
105
      ':object_goto' => $object
Open commit View diff
105 ':object_goto' => $object
andryyy about 9 years ago afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
106
    ));
Open commit View diff
106 ));
same change afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
107
    $standard_aliases = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
107 $standard_aliases = $stmt->fetchAll(PDO::FETCH_ASSOC);
same change afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
108
    while ($row = array_shift($standard_aliases)) {
Open commit View diff
108 while ($row = array_shift($standard_aliases)) {
same change afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
109
      $local = parse_email($row['address'])['local'];
Open commit View diff
109 $local = parse_email($row['address'])['local'];
same change afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
110
      $domain = parse_email($row['address'])['domain'];
Open commit View diff
110 $domain = parse_email($row['address'])['domain'];
same change afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
111
      if (!empty($local) && !empty($domain)) {
Open commit View diff
111 if (!empty($local) && !empty($domain)) {
André about 8 years ago 353af8e

[Rspamd] Set start and end to rcpt matching regex

Full commit hash
353af8e3a41ec00989e8dd173e9d1906bcd3efd6
Author
André <[email protected]>
Date
about 8 years ago
Selected line
112
        $rcpt[] = '/^' . str_replace('/', '\/', $local) . '[+].*' . str_replace('/', '\/', $domain) . '$/i';
Open commit View diff
112 $rcpt[] = '/^' . str_replace('/', '\/', $local) . '[+].*' . str_replace('/', '\/', $domain) . '$/i';
andryyy about 9 years ago afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
113
      }
Open commit View diff
113 }
andryyy almost 7 years ago 9bbf9dc

[Rspamd] Fix and improve settings map

Full commit hash
9bbf9dc68e21dc937ca5276ac3fb238b30114cd1
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
114
      $rcpt[] = str_replace('/', '\/', $row['address']);
Open commit View diff
114 $rcpt[] = str_replace('/', '\/', $row['address']);
andryyy about 9 years ago afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
115
    }
Open commit View diff
115 }
same change afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
116
    // Aliases by alias domains
Open commit View diff
116 // Aliases by alias domains
FreddleSpl0it 11 months ago f67c053

[Rspamd][Web] Internal alias support

Full commit hash
f67c0530f56495d4b7a2c3b8816a8140c2f25586
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
117
    $stmt = $pdo->prepare("SELECT CONCAT(`local_part`, '@', `alias_domain`.`alias_domain`) AS `alias` FROM `mailbox`
Open commit View diff
117 $stmt = $pdo->prepare("SELECT CONCAT(`local_part`, '@', `alias_domain`.`alias_domain`) AS `alias` FROM `mailbox`
andryyy about 9 years ago afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
118
      LEFT OUTER JOIN `alias_domain` ON `mailbox`.`domain` = `alias_domain`.`target_domain`
Open commit View diff
118 LEFT OUTER JOIN `alias_domain` ON `mailbox`.`domain` = `alias_domain`.`target_domain`
same change afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
119
      WHERE `mailbox`.`username` = :object");
Open commit View diff
119 WHERE `mailbox`.`username` = :object");
same change afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
120
    $stmt->execute(array(
Open commit View diff
120 $stmt->execute(array(
same change afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
121
      ':object' => $object
Open commit View diff
121 ':object' => $object
same change afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
122
    ));
Open commit View diff
122 ));
same change afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
123
    $by_domain_aliases = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
123 $by_domain_aliases = $stmt->fetchAll(PDO::FETCH_ASSOC);
same change afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
124
    array_filter($by_domain_aliases);
Open commit View diff
124 array_filter($by_domain_aliases);
same change afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
125
    while ($row = array_shift($by_domain_aliases)) {
Open commit View diff
125 while ($row = array_shift($by_domain_aliases)) {
same change afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
126
      if (!empty($row['alias'])) {
Open commit View diff
126 if (!empty($row['alias'])) {
same change afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
127
        $local = parse_email($row['alias'])['local'];
Open commit View diff
127 $local = parse_email($row['alias'])['local'];
same change afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
128
        $domain = parse_email($row['alias'])['domain'];
Open commit View diff
128 $domain = parse_email($row['alias'])['domain'];
same change afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
129
        if (!empty($local) && !empty($domain)) {
Open commit View diff
129 if (!empty($local) && !empty($domain)) {
André about 8 years ago 353af8e

[Rspamd] Set start and end to rcpt matching regex

Full commit hash
353af8e3a41ec00989e8dd173e9d1906bcd3efd6
Author
André <[email protected]>
Date
about 8 years ago
Selected line
130
          $rcpt[] = '/^' . str_replace('/', '\/', $local) . '[+].*' . str_replace('/', '\/', $domain) . '$/i';
Open commit View diff
130 $rcpt[] = '/^' . str_replace('/', '\/', $local) . '[+].*' . str_replace('/', '\/', $domain) . '$/i';
andryyy about 9 years ago afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
131
        }
Open commit View diff
131 }
andryyy almost 7 years ago 9bbf9dc

[Rspamd] Fix and improve settings map

Full commit hash
9bbf9dc68e21dc937ca5276ac3fb238b30114cd1
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
132
        $rcpt[] = str_replace('/', '\/', $row['alias']);
Open commit View diff
132 $rcpt[] = str_replace('/', '\/', $row['alias']);
andryyy about 9 years ago afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
133
      }
Open commit View diff
133 }
same change afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
134
    }
Open commit View diff
134 }
same change afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
135
  }
Open commit View diff
135 }
same change afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
136
  elseif ($type == 'domain') {
Open commit View diff
136 elseif ($type == 'domain') {
same change afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
137
    // Domain self
Open commit View diff
137 // Domain self
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
138
    $rcpt[] = '/.*@' . $object . '/i';
Open commit View diff
138 $rcpt[] = '/.*@' . $object . '/i';
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
139
    $stmt = $pdo->prepare("SELECT `alias_domain` FROM `alias_domain`
Open commit View diff
139 $stmt = $pdo->prepare("SELECT `alias_domain` FROM `alias_domain`
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
140
      WHERE `target_domain` = :object");
Open commit View diff
140 WHERE `target_domain` = :object");
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
141
    $stmt->execute(array(':object' => $object));
Open commit View diff
141 $stmt->execute(array(':object' => $object));
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
142
    $alias_domains = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
142 $alias_domains = $stmt->fetchAll(PDO::FETCH_ASSOC);
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
143
    array_filter($alias_domains);
Open commit View diff
143 array_filter($alias_domains);
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
144
    while ($row = array_shift($alias_domains)) {
Open commit View diff
144 while ($row = array_shift($alias_domains)) {
Michael Kuron almost 9 years ago e178ca3

Rspamd user settings: make regexes case-insensitive

Full commit hash
e178ca36de6960de3979b66ac99373675f3f9f9d
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
145
      $rcpt[] = '/.*@' . $row['alias_domain'] . '/i';
Open commit View diff
145 $rcpt[] = '/.*@' . $row['alias_domain'] . '/i';
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
146
    }
Open commit View diff
146 }
andryyy about 9 years ago afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
147
  }
Open commit View diff
147 }
andryyy over 7 years ago 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
148
  return $rcpt;
Open commit View diff
148 return $rcpt;
andryyy about 9 years ago afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
149
}
Open commit View diff
149 }
andryyy over 9 years ago 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
150
?>
Open commit View diff
150 ?>
same change 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
151
settings {
Open commit View diff
151 settings {
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
152
  watchdog {
Open commit View diff
152 watchdog {
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
153
    priority = 10;
Open commit View diff
153 priority = 10;
andryyy over 7 years ago e04e15e

[Rspamd] Mime from and rcpt can now be checked by from_mime and rcpt_mime

Full commit hash
e04e15ed23ef9e5314a0aad9c46555a501b128dd
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
154
    rcpt_mime = "/null@localhost/i";
Open commit View diff
154 rcpt_mime = "/null@localhost/i";
same change e04e15e

[Rspamd] Mime from and rcpt can now be checked by from_mime and rcpt_mime

Full commit hash
e04e15ed23ef9e5314a0aad9c46555a501b128dd
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
155
    from_mime = "/watchdog@localhost/i";
Open commit View diff
155 from_mime = "/watchdog@localhost/i";
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
156
    apply "default" {
Open commit View diff
156 apply "default" {
andryyy almost 7 years ago be40991

[Rspamd] Do not log watchdog mails

Full commit hash
be4099182bb803c273fe17a9da9263673e6fccf4
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
157
      symbols_disabled = ["HISTORY_SAVE", "ARC", "ARC_SIGNED", "DKIM", "DKIM_SIGNED", "CLAM_VIRUS"];
Open commit View diff
157 symbols_disabled = ["HISTORY_SAVE", "ARC", "ARC_SIGNED", "DKIM", "DKIM_SIGNED", "CLAM_VIRUS"];
same change be40991

[Rspamd] Do not log watchdog mails

Full commit hash
be4099182bb803c273fe17a9da9263673e6fccf4
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
158
      want_spam = yes;
Open commit View diff
158 want_spam = yes;
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
159
      actions {
Open commit View diff
159 actions {
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
160
        reject = 9999.0;
Open commit View diff
160 reject = 9999.0;
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
161
        greylist = 9998.0;
Open commit View diff
161 greylist = 9998.0;
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
162
        "add header" = 9997.0;
Open commit View diff
162 "add header" = 9997.0;
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
163
      }
Open commit View diff
163 }
andryyy almost 7 years ago d5ee7de

[Rspamd] Disable info logging, re-enable silent logging, only apply MILTER_HEADERS symbol to watchdog Rspamd settings map

Full commit hash
d5ee7de66af4bf6f56c39e7b90b762dbee596104
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
164
Open commit View diff
164
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
165
    }
Open commit View diff
165 }
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
166
  }
Open commit View diff
166 }
Michael Kuron about 9 years ago ae6d7d6

Optionally enable spam filter for forwarding hosts

Full commit hash
ae6d7d63fcd92252037c3f3664d3c19c20de2549
Author
Michael Kuron <[email protected]>
Date
about 9 years ago
Selected line
167
<?php
Open commit View diff
167 <?php
andryyy about 9 years ago b3a161f

Keep format

Full commit hash
b3a161f930a1ac714915acc0e5fdfda14e57a38b
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
168
Open commit View diff
168
same change b3a161f

Keep format

Full commit hash
b3a161f930a1ac714915acc0e5fdfda14e57a38b
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
169
/*
Open commit View diff
169 /*
same change b3a161f

Keep format

Full commit hash
b3a161f930a1ac714915acc0e5fdfda14e57a38b
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
170
// Start custom scores for users
Open commit View diff
170 // Start custom scores for users
same change b3a161f

Keep format

Full commit hash
b3a161f930a1ac714915acc0e5fdfda14e57a38b
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
171
*/
Open commit View diff
171 */
same change b3a161f

Keep format

Full commit hash
b3a161f930a1ac714915acc0e5fdfda14e57a38b
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
172
Open commit View diff
172
andryyy over 9 years ago 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
173
$stmt = $pdo->query("SELECT DISTINCT `object` FROM `filterconf` WHERE `option` = 'highspamlevel' OR `option` = 'lowspamlevel'");
Open commit View diff
173 $stmt = $pdo->query("SELECT DISTINCT `object` FROM `filterconf` WHERE `option` = 'highspamlevel' OR `option` = 'lowspamlevel'");
same change 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
174
$rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
174 $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
same change 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
175
Open commit View diff
175
same change 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
176
while ($row = array_shift($rows)) {
Open commit View diff
176 while ($row = array_shift($rows)) {
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
177
  $username_sane = preg_replace("/[^a-zA-Z0-9]+/", "", $row['object']);
Open commit View diff
177 $username_sane = preg_replace("/[^a-zA-Z0-9]+/", "", $row['object']);
andryyy over 9 years ago 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
178
?>
Open commit View diff
178 ?>
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
179
  score_<?=$username_sane;?> {
Open commit View diff
179 score_<?=$username_sane;?> {
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
180
    priority = 4;
Open commit View diff
180 priority = 4;
andryyy about 9 years ago afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
181
<?php
Open commit View diff
181 <?php
Michael Kuron almost 9 years ago fcd8cfa

Rspamd user settings: don't print all email addresses of a domain

Full commit hash
fcd8cfa4f49dccefabaf55db6fbfe5285c64f2bd
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
182
  foreach (ucl_rcpts($row['object'], strpos($row['object'], '@') === FALSE ? 'domain' : 'mailbox') as $rcpt) {
Open commit View diff
182 foreach (ucl_rcpts($row['object'], strpos($row['object'], '@') === FALSE ? 'domain' : 'mailbox') as $rcpt) {
andryyy about 9 years ago afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
183
?>
Open commit View diff
183 ?>
André about 8 years ago 9dc250c

[Rspamd] Important fix for settings map

Full commit hash
9dc250c9f2cb15d93bf70f7324a58fd66ba2643b
Author
André <[email protected]>
Date
about 8 years ago
Selected line
184
    rcpt = <?=json_encode($rcpt, JSON_UNESCAPED_SLASHES);?>;
Open commit View diff
184 rcpt = <?=json_encode($rcpt, JSON_UNESCAPED_SLASHES);?>;
andryyy over 9 years ago 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
185
<?php
Open commit View diff
185 <?php
andryyy about 9 years ago afc8c93

[Rspamd] Cleanup settings map

Full commit hash
afc8c93c07ecfa60723b7ad0918fe8707919f9cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
186
  }
Open commit View diff
186 }
FreddleSpl0it 11 months ago f67c053

[Rspamd][Web] Internal alias support

Full commit hash
f67c0530f56495d4b7a2c3b8816a8140c2f25586
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
187
  $stmt = $pdo->prepare("SELECT `option`, `value` FROM `filterconf`
Open commit View diff
187 $stmt = $pdo->prepare("SELECT `option`, `value` FROM `filterconf`
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
188
    WHERE (`option` = 'highspamlevel' OR `option` = 'lowspamlevel')
Open commit View diff
188 WHERE (`option` = 'highspamlevel' OR `option` = 'lowspamlevel')
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
189
      AND `object`= :object");
Open commit View diff
189 AND `object`= :object");
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
190
  $stmt->execute(array(':object' => $row['object']));
Open commit View diff
190 $stmt->execute(array(':object' => $row['object']));
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
191
  $spamscore = $stmt->fetchAll(PDO::FETCH_COLUMN|PDO::FETCH_GROUP);
Open commit View diff
191 $spamscore = $stmt->fetchAll(PDO::FETCH_COLUMN|PDO::FETCH_GROUP);
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
192
?>
Open commit View diff
192 ?>
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
193
    apply "default" {
Open commit View diff
193 apply "default" {
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
194
      actions {
Open commit View diff
194 actions {
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
195
        reject = <?=$spamscore['highspamlevel'][0];?>;
Open commit View diff
195 reject = <?=$spamscore['highspamlevel'][0];?>;
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
196
        greylist = <?=$spamscore['lowspamlevel'][0] - 1;?>;
Open commit View diff
196 greylist = <?=$spamscore['lowspamlevel'][0] - 1;?>;
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
197
        "add header" = <?=$spamscore['lowspamlevel'][0];?>;
Open commit View diff
197 "add header" = <?=$spamscore['lowspamlevel'][0];?>;
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
198
      }
Open commit View diff
198 }
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
199
    }
Open commit View diff
199 }
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
200
  }
Open commit View diff
200 }
andryyy over 9 years ago 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
201
<?php
Open commit View diff
201 <?php
same change 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
202
}
Open commit View diff
202 }
andryyy over 9 years ago 4adcb28

Fix rspamd dynamic map

Full commit hash
4adcb287bbbcebb399cbb7973cba4ec715355110
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
203
Open commit View diff
203
andryyy over 7 years ago 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
204
/*
Open commit View diff
204 /*
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
205
// Start SOGo contacts whitelist
Open commit View diff
205 // Start SOGo contacts whitelist
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
206
// Priority 4, lower than a domain whitelist (5) and lower than a mailbox whitelist (6)
Open commit View diff
206 // Priority 4, lower than a domain whitelist (5) and lower than a mailbox whitelist (6)
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
207
*/
Open commit View diff
207 */
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
208
Open commit View diff
208
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
209
foreach (wl_by_sogo() as $user => $contacts) {
Open commit View diff
209 foreach (wl_by_sogo() as $user => $contacts) {
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
210
  $username_sane = preg_replace("/[^a-zA-Z0-9]+/", "", $user);
Open commit View diff
210 $username_sane = preg_replace("/[^a-zA-Z0-9]+/", "", $user);
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
211
?>
Open commit View diff
211 ?>
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
212
  whitelist_sogo_<?=$username_sane;?> {
Open commit View diff
212 whitelist_sogo_<?=$username_sane;?> {
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
213
<?php
Open commit View diff
213 <?php
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
214
  foreach ($contacts as $contact) {
Open commit View diff
214 foreach ($contacts as $contact) {
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
215
?>
Open commit View diff
215 ?>
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
216
    from = <?=json_encode($contact, JSON_UNESCAPED_SLASHES);?>;
Open commit View diff
216 from = <?=json_encode($contact, JSON_UNESCAPED_SLASHES);?>;
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
217
<?php
Open commit View diff
217 <?php
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
218
  }
Open commit View diff
218 }
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
219
?>
Open commit View diff
219 ?>
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
220
    priority = 4;
Open commit View diff
220 priority = 4;
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
221
<?php
Open commit View diff
221 <?php
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
222
    foreach (ucl_rcpts($user, 'mailbox') as $rcpt) {
Open commit View diff
222 foreach (ucl_rcpts($user, 'mailbox') as $rcpt) {
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
223
?>
Open commit View diff
223 ?>
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
224
    rcpt = <?=json_encode($rcpt, JSON_UNESCAPED_SLASHES);?>;
Open commit View diff
224 rcpt = <?=json_encode($rcpt, JSON_UNESCAPED_SLASHES);?>;
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
225
<?php
Open commit View diff
225 <?php
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
226
    }
Open commit View diff
226 }
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
227
?>
Open commit View diff
227 ?>
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
228
    apply "default" {
Open commit View diff
228 apply "default" {
andryyy over 7 years ago 108e808

[Rspamd] Reduce SOGO_CONTACT score to -99

Full commit hash
108e808d06f5de51a4dce1612c6e3fe4834b9cbe
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
229
      SOGO_CONTACT = -99.0;
Open commit View diff
229 SOGO_CONTACT = -99.0;
andryyy over 7 years ago 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
230
    }
Open commit View diff
230 }
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
231
    symbols [
Open commit View diff
231 symbols [
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
232
      "SOGO_CONTACT"
Open commit View diff
232 "SOGO_CONTACT"
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
233
    ]
Open commit View diff
233 ]
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
234
  }
Open commit View diff
234 }
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
235
<?php
Open commit View diff
235 <?php
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
236
}
Open commit View diff
236 }
same change 4f7f493

[Rspamd] Add SOGo contacts to whitelist

Full commit hash
4f7f493490b573badc62e7d543952d9a94f23db1
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
237
Open commit View diff
237
andryyy over 9 years ago 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
238
/*
Open commit View diff
238 /*
same change 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
239
// Start whitelist
Open commit View diff
239 // Start whitelist
same change 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
240
*/
Open commit View diff
240 */
same change 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
241
Open commit View diff
241
same change 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
242
$stmt = $pdo->query("SELECT DISTINCT `object` FROM `filterconf` WHERE `option` = 'whitelist_from'");
Open commit View diff
242 $stmt = $pdo->query("SELECT DISTINCT `object` FROM `filterconf` WHERE `option` = 'whitelist_from'");
same change 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
243
$rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
243 $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
same change 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
244
while ($row = array_shift($rows)) {
Open commit View diff
244 while ($row = array_shift($rows)) {
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
245
  $username_sane = preg_replace("/[^a-zA-Z0-9]+/", "", $row['object']);
Open commit View diff
245 $username_sane = preg_replace("/[^a-zA-Z0-9]+/", "", $row['object']);
andryyy over 9 years ago 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
246
?>
Open commit View diff
246 ?>
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
247
  whitelist_<?=$username_sane;?> {
Open commit View diff
247 whitelist_<?=$username_sane;?> {
andryyy over 9 years ago 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
248
<?php
Open commit View diff
248 <?php
andryyy over 7 years ago e04e15e

[Rspamd] Mime from and rcpt can now be checked by from_mime and rcpt_mime

Full commit hash
e04e15ed23ef9e5314a0aad9c46555a501b128dd
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
249
  $list_items = array();
Open commit View diff
249 $list_items = array();
andryyy over 7 years ago 2baf407

[Rspamd] preg_quote filter objects, only translate * to .* - fixes #2152

Full commit hash
2baf40733121a69e35cd51af5383d9dc6b523855
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
250
  $stmt = $pdo->prepare("SELECT `value` FROM `filterconf`
Open commit View diff
250 $stmt = $pdo->prepare("SELECT `value` FROM `filterconf`
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
251
    WHERE `object`= :object
Open commit View diff
251 WHERE `object`= :object
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
252
      AND `option` = 'whitelist_from'");
Open commit View diff
252 AND `option` = 'whitelist_from'");
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
253
  $stmt->execute(array(':object' => $row['object']));
Open commit View diff
253 $stmt->execute(array(':object' => $row['object']));
andryyy over 7 years ago 2baf407

[Rspamd] preg_quote filter objects, only translate * to .* - fixes #2152

Full commit hash
2baf40733121a69e35cd51af5383d9dc6b523855
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
254
  $list_items = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
254 $list_items = $stmt->fetchAll(PDO::FETCH_ASSOC);
andryyy over 7 years ago e04e15e

[Rspamd] Mime from and rcpt can now be checked by from_mime and rcpt_mime

Full commit hash
e04e15ed23ef9e5314a0aad9c46555a501b128dd
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
255
  foreach ($list_items as $item) {
Open commit View diff
255 foreach ($list_items as $item) {
andryyy over 9 years ago 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
256
?>
Open commit View diff
256 ?>
andryyy over 7 years ago 2baf407

[Rspamd] preg_quote filter objects, only translate * to .* - fixes #2152

Full commit hash
2baf40733121a69e35cd51af5383d9dc6b523855
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
257
    from = "/<?='^' . str_replace('\*', '.*', preg_quote($item['value'], '/')) . '$' ;?>/i";
Open commit View diff
257 from = "/<?='^' . str_replace('\*', '.*', preg_quote($item['value'], '/')) . '$' ;?>/i";
andryyy over 9 years ago 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
258
<?php
Open commit View diff
258 <?php
andryyy over 7 years ago 2baf407

[Rspamd] preg_quote filter objects, only translate * to .* - fixes #2152

Full commit hash
2baf40733121a69e35cd51af5383d9dc6b523855
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
259
  }
Open commit View diff
259 }
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
260
  if (!filter_var(trim($row['object']), FILTER_VALIDATE_EMAIL)) {
Open commit View diff
260 if (!filter_var(trim($row['object']), FILTER_VALIDATE_EMAIL)) {
andryyy over 9 years ago 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
261
?>
Open commit View diff
261 ?>
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
262
    priority = 5;
Open commit View diff
262 priority = 5;
andryyy over 9 years ago 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
263
<?php
Open commit View diff
263 <?php
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
264
    foreach (ucl_rcpts($row['object'], strpos($row['object'], '@') === FALSE ? 'domain' : 'mailbox') as $rcpt) {
Open commit View diff
264 foreach (ucl_rcpts($row['object'], strpos($row['object'], '@') === FALSE ? 'domain' : 'mailbox') as $rcpt) {
andryyy over 9 years ago 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
265
?>
Open commit View diff
265 ?>
André about 8 years ago 9dc250c

[Rspamd] Important fix for settings map

Full commit hash
9dc250c9f2cb15d93bf70f7324a58fd66ba2643b
Author
André <[email protected]>
Date
about 8 years ago
Selected line
266
    rcpt = <?=json_encode($rcpt, JSON_UNESCAPED_SLASHES);?>;
Open commit View diff
266 rcpt = <?=json_encode($rcpt, JSON_UNESCAPED_SLASHES);?>;
andryyy over 9 years ago 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
267
<?php
Open commit View diff
267 <?php
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
268
    }
Open commit View diff
268 }
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
269
  }
Open commit View diff
269 }
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
270
  else {
Open commit View diff
270 else {
andryyy over 9 years ago 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
271
?>
Open commit View diff
271 ?>
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
272
    priority = 6;
Open commit View diff
272 priority = 6;
andryyy over 9 years ago 2d08642

Fix settings for aliases, alias domains

Full commit hash
2d086424fa1e86cc43a1a97dab4b592f747cde33
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
273
<?php
Open commit View diff
273 <?php
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
274
    foreach (ucl_rcpts($row['object'], strpos($row['object'], '@') === FALSE ? 'domain' : 'mailbox') as $rcpt) {
Open commit View diff
274 foreach (ucl_rcpts($row['object'], strpos($row['object'], '@') === FALSE ? 'domain' : 'mailbox') as $rcpt) {
andryyy over 9 years ago 2d08642

Fix settings for aliases, alias domains

Full commit hash
2d086424fa1e86cc43a1a97dab4b592f747cde33
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
275
?>
Open commit View diff
275 ?>
André about 8 years ago 9dc250c

[Rspamd] Important fix for settings map

Full commit hash
9dc250c9f2cb15d93bf70f7324a58fd66ba2643b
Author
André <[email protected]>
Date
about 8 years ago
Selected line
276
    rcpt = <?=json_encode($rcpt, JSON_UNESCAPED_SLASHES);?>;
Open commit View diff
276 rcpt = <?=json_encode($rcpt, JSON_UNESCAPED_SLASHES);?>;
andryyy over 9 years ago 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
277
<?php
Open commit View diff
277 <?php
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
278
    }
Open commit View diff
278 }
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
279
  }
Open commit View diff
279 }
Michael Kuron almost 9 years ago 93a092e

Rspamd user settings: also match From header

Full commit hash
93a092e6273217b4c8d226adea075fbb1168fd0a
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
280
?>
Open commit View diff
280 ?>
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
281
    apply "default" {
Open commit View diff
281 apply "default" {
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
282
      MAILCOW_WHITE = -999.0;
Open commit View diff
282 MAILCOW_WHITE = -999.0;
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
283
    }
Open commit View diff
283 }
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
284
    symbols [
Open commit View diff
284 symbols [
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
285
      "MAILCOW_WHITE"
Open commit View diff
285 "MAILCOW_WHITE"
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
286
    ]
Open commit View diff
286 ]
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
287
  }
Open commit View diff
287 }
andryyy over 7 years ago e04e15e

[Rspamd] Mime from and rcpt can now be checked by from_mime and rcpt_mime

Full commit hash
e04e15ed23ef9e5314a0aad9c46555a501b128dd
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
288
  whitelist_mime_<?=$username_sane;?> {
Open commit View diff
288 whitelist_mime_<?=$username_sane;?> {
Michael Kuron almost 9 years ago 93a092e

Rspamd user settings: also match From header

Full commit hash
93a092e6273217b4c8d226adea075fbb1168fd0a
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
289
<?php
Open commit View diff
289 <?php
andryyy over 7 years ago e04e15e

[Rspamd] Mime from and rcpt can now be checked by from_mime and rcpt_mime

Full commit hash
e04e15ed23ef9e5314a0aad9c46555a501b128dd
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
290
  foreach ($list_items as $item) {
Open commit View diff
290 foreach ($list_items as $item) {
Michael Kuron almost 9 years ago 93a092e

Rspamd user settings: also match From header

Full commit hash
93a092e6273217b4c8d226adea075fbb1168fd0a
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
291
?>
Open commit View diff
291 ?>
andryyy over 7 years ago e04e15e

[Rspamd] Mime from and rcpt can now be checked by from_mime and rcpt_mime

Full commit hash
e04e15ed23ef9e5314a0aad9c46555a501b128dd
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
292
    from_mime = "/<?='^' . str_replace('\*', '.*', preg_quote($item['value'], '/')) . '$' ;?>/i";
Open commit View diff
292 from_mime = "/<?='^' . str_replace('\*', '.*', preg_quote($item['value'], '/')) . '$' ;?>/i";
andryyy over 7 years ago 2baf407

[Rspamd] preg_quote filter objects, only translate * to .* - fixes #2152

Full commit hash
2baf40733121a69e35cd51af5383d9dc6b523855
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
293
<?php
Open commit View diff
293 <?php
same change 2baf407

[Rspamd] preg_quote filter objects, only translate * to .* - fixes #2152

Full commit hash
2baf40733121a69e35cd51af5383d9dc6b523855
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
294
  }
Open commit View diff
294 }
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
295
  if (!filter_var(trim($row['object']), FILTER_VALIDATE_EMAIL)) {
Open commit View diff
295 if (!filter_var(trim($row['object']), FILTER_VALIDATE_EMAIL)) {
Michael Kuron almost 9 years ago 93a092e

Rspamd user settings: also match From header

Full commit hash
93a092e6273217b4c8d226adea075fbb1168fd0a
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
296
?>
Open commit View diff
296 ?>
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
297
    priority = 5;
Open commit View diff
297 priority = 5;
Michael Kuron almost 9 years ago 93a092e

Rspamd user settings: also match From header

Full commit hash
93a092e6273217b4c8d226adea075fbb1168fd0a
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
298
<?php
Open commit View diff
298 <?php
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
299
    foreach (ucl_rcpts($row['object'], strpos($row['object'], '@') === FALSE ? 'domain' : 'mailbox') as $rcpt) {
Open commit View diff
299 foreach (ucl_rcpts($row['object'], strpos($row['object'], '@') === FALSE ? 'domain' : 'mailbox') as $rcpt) {
Michael Kuron almost 9 years ago 93a092e

Rspamd user settings: also match From header

Full commit hash
93a092e6273217b4c8d226adea075fbb1168fd0a
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
300
?>
Open commit View diff
300 ?>
André about 8 years ago 9dc250c

[Rspamd] Important fix for settings map

Full commit hash
9dc250c9f2cb15d93bf70f7324a58fd66ba2643b
Author
André <[email protected]>
Date
about 8 years ago
Selected line
301
    rcpt = <?=json_encode($rcpt, JSON_UNESCAPED_SLASHES);?>;
Open commit View diff
301 rcpt = <?=json_encode($rcpt, JSON_UNESCAPED_SLASHES);?>;
Michael Kuron almost 9 years ago 93a092e

Rspamd user settings: also match From header

Full commit hash
93a092e6273217b4c8d226adea075fbb1168fd0a
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
302
<?php
Open commit View diff
302 <?php
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
303
    }
Open commit View diff
303 }
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
304
  }
Open commit View diff
304 }
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
305
  else {
Open commit View diff
305 else {
Michael Kuron almost 9 years ago 93a092e

Rspamd user settings: also match From header

Full commit hash
93a092e6273217b4c8d226adea075fbb1168fd0a
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
306
?>
Open commit View diff
306 ?>
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
307
    priority = 6;
Open commit View diff
307 priority = 6;
Michael Kuron almost 9 years ago 93a092e

Rspamd user settings: also match From header

Full commit hash
93a092e6273217b4c8d226adea075fbb1168fd0a
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
308
<?php
Open commit View diff
308 <?php
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
309
    foreach (ucl_rcpts($row['object'], strpos($row['object'], '@') === FALSE ? 'domain' : 'mailbox') as $rcpt) {
Open commit View diff
309 foreach (ucl_rcpts($row['object'], strpos($row['object'], '@') === FALSE ? 'domain' : 'mailbox') as $rcpt) {
Michael Kuron almost 9 years ago 93a092e

Rspamd user settings: also match From header

Full commit hash
93a092e6273217b4c8d226adea075fbb1168fd0a
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
310
?>
Open commit View diff
310 ?>
André about 8 years ago 9dc250c

[Rspamd] Important fix for settings map

Full commit hash
9dc250c9f2cb15d93bf70f7324a58fd66ba2643b
Author
André <[email protected]>
Date
about 8 years ago
Selected line
311
    rcpt = <?=json_encode($rcpt, JSON_UNESCAPED_SLASHES);?>;
Open commit View diff
311 rcpt = <?=json_encode($rcpt, JSON_UNESCAPED_SLASHES);?>;
Michael Kuron almost 9 years ago 93a092e

Rspamd user settings: also match From header

Full commit hash
93a092e6273217b4c8d226adea075fbb1168fd0a
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
312
<?php
Open commit View diff
312 <?php
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
313
    }
Open commit View diff
313 }
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
314
  }
Open commit View diff
314 }
andryyy over 9 years ago 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
315
?>
Open commit View diff
315 ?>
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
316
    apply "default" {
Open commit View diff
316 apply "default" {
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
317
      MAILCOW_WHITE = -999.0;
Open commit View diff
317 MAILCOW_WHITE = -999.0;
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
318
    }
Open commit View diff
318 }
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
319
    symbols [
Open commit View diff
319 symbols [
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
320
      "MAILCOW_WHITE"
Open commit View diff
320 "MAILCOW_WHITE"
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
321
    ]
Open commit View diff
321 ]
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
322
  }
Open commit View diff
322 }
andryyy over 9 years ago 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
323
<?php
Open commit View diff
323 <?php
same change 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
324
}
Open commit View diff
324 }
same change 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
325
Open commit View diff
325
same change 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
326
/*
Open commit View diff
326 /*
same change 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
327
// Start blacklist
Open commit View diff
327 // Start blacklist
same change 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
328
*/
Open commit View diff
328 */
same change 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
329
Open commit View diff
329
same change 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
330
$stmt = $pdo->query("SELECT DISTINCT `object` FROM `filterconf` WHERE `option` = 'blacklist_from'");
Open commit View diff
330 $stmt = $pdo->query("SELECT DISTINCT `object` FROM `filterconf` WHERE `option` = 'blacklist_from'");
same change 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
331
$rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
331 $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
same change 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
332
while ($row = array_shift($rows)) {
Open commit View diff
332 while ($row = array_shift($rows)) {
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
333
  $username_sane = preg_replace("/[^a-zA-Z0-9]+/", "", $row['object']);
Open commit View diff
333 $username_sane = preg_replace("/[^a-zA-Z0-9]+/", "", $row['object']);
andryyy over 9 years ago 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
334
?>
Open commit View diff
334 ?>
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
335
  blacklist_<?=$username_sane;?> {
Open commit View diff
335 blacklist_<?=$username_sane;?> {
andryyy over 9 years ago 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
336
<?php
Open commit View diff
336 <?php
andryyy over 7 years ago e04e15e

[Rspamd] Mime from and rcpt can now be checked by from_mime and rcpt_mime

Full commit hash
e04e15ed23ef9e5314a0aad9c46555a501b128dd
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
337
  $list_items = array();
Open commit View diff
337 $list_items = array();
andryyy over 7 years ago 2baf407

[Rspamd] preg_quote filter objects, only translate * to .* - fixes #2152

Full commit hash
2baf40733121a69e35cd51af5383d9dc6b523855
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
338
  $stmt = $pdo->prepare("SELECT `value` FROM `filterconf`
Open commit View diff
338 $stmt = $pdo->prepare("SELECT `value` FROM `filterconf`
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
339
    WHERE `object`= :object
Open commit View diff
339 WHERE `object`= :object
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
340
      AND `option` = 'blacklist_from'");
Open commit View diff
340 AND `option` = 'blacklist_from'");
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
341
  $stmt->execute(array(':object' => $row['object']));
Open commit View diff
341 $stmt->execute(array(':object' => $row['object']));
andryyy over 7 years ago 2baf407

[Rspamd] preg_quote filter objects, only translate * to .* - fixes #2152

Full commit hash
2baf40733121a69e35cd51af5383d9dc6b523855
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
342
  $list_items = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
342 $list_items = $stmt->fetchAll(PDO::FETCH_ASSOC);
andryyy over 7 years ago e04e15e

[Rspamd] Mime from and rcpt can now be checked by from_mime and rcpt_mime

Full commit hash
e04e15ed23ef9e5314a0aad9c46555a501b128dd
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
343
  foreach ($list_items as $item) {
Open commit View diff
343 foreach ($list_items as $item) {
andryyy over 9 years ago 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
344
?>
Open commit View diff
344 ?>
andryyy over 7 years ago 2baf407

[Rspamd] preg_quote filter objects, only translate * to .* - fixes #2152

Full commit hash
2baf40733121a69e35cd51af5383d9dc6b523855
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
345
    from = "/<?='^' . str_replace('\*', '.*', preg_quote($item['value'], '/')) . '$' ;?>/i";
Open commit View diff
345 from = "/<?='^' . str_replace('\*', '.*', preg_quote($item['value'], '/')) . '$' ;?>/i";
andryyy over 9 years ago 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
346
<?php
Open commit View diff
346 <?php
andryyy over 7 years ago 2baf407

[Rspamd] preg_quote filter objects, only translate * to .* - fixes #2152

Full commit hash
2baf40733121a69e35cd51af5383d9dc6b523855
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
347
  }
Open commit View diff
347 }
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
348
  if (!filter_var(trim($row['object']), FILTER_VALIDATE_EMAIL)) {
Open commit View diff
348 if (!filter_var(trim($row['object']), FILTER_VALIDATE_EMAIL)) {
andryyy over 9 years ago 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
349
?>
Open commit View diff
349 ?>
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
350
    priority = 5;
Open commit View diff
350 priority = 5;
andryyy over 9 years ago 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
351
<?php
Open commit View diff
351 <?php
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
352
    foreach (ucl_rcpts($row['object'], strpos($row['object'], '@') === FALSE ? 'domain' : 'mailbox') as $rcpt) {
Open commit View diff
352 foreach (ucl_rcpts($row['object'], strpos($row['object'], '@') === FALSE ? 'domain' : 'mailbox') as $rcpt) {
andryyy over 9 years ago 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
353
?>
Open commit View diff
353 ?>
André about 8 years ago 9dc250c

[Rspamd] Important fix for settings map

Full commit hash
9dc250c9f2cb15d93bf70f7324a58fd66ba2643b
Author
André <[email protected]>
Date
about 8 years ago
Selected line
354
    rcpt = <?=json_encode($rcpt, JSON_UNESCAPED_SLASHES);?>;
Open commit View diff
354 rcpt = <?=json_encode($rcpt, JSON_UNESCAPED_SLASHES);?>;
andryyy over 9 years ago 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
355
<?php
Open commit View diff
355 <?php
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
356
    }
Open commit View diff
356 }
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
357
  }
Open commit View diff
357 }
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
358
  else {
Open commit View diff
358 else {
andryyy over 9 years ago 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
359
?>
Open commit View diff
359 ?>
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
360
    priority = 6;
Open commit View diff
360 priority = 6;
andryyy over 9 years ago 2d08642

Fix settings for aliases, alias domains

Full commit hash
2d086424fa1e86cc43a1a97dab4b592f747cde33
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
361
<?php
Open commit View diff
361 <?php
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
362
    foreach (ucl_rcpts($row['object'], strpos($row['object'], '@') === FALSE ? 'domain' : 'mailbox') as $rcpt) {
Open commit View diff
362 foreach (ucl_rcpts($row['object'], strpos($row['object'], '@') === FALSE ? 'domain' : 'mailbox') as $rcpt) {
andryyy over 9 years ago 2d08642

Fix settings for aliases, alias domains

Full commit hash
2d086424fa1e86cc43a1a97dab4b592f747cde33
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
363
?>
Open commit View diff
363 ?>
André about 8 years ago 9dc250c

[Rspamd] Important fix for settings map

Full commit hash
9dc250c9f2cb15d93bf70f7324a58fd66ba2643b
Author
André <[email protected]>
Date
about 8 years ago
Selected line
364
    rcpt = <?=json_encode($rcpt, JSON_UNESCAPED_SLASHES);?>;
Open commit View diff
364 rcpt = <?=json_encode($rcpt, JSON_UNESCAPED_SLASHES);?>;
andryyy over 9 years ago 2d08642

Fix settings for aliases, alias domains

Full commit hash
2d086424fa1e86cc43a1a97dab4b592f747cde33
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
365
<?php
Open commit View diff
365 <?php
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
366
    }
Open commit View diff
366 }
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
367
  }
Open commit View diff
367 }
Michael Kuron almost 9 years ago 93a092e

Rspamd user settings: also match From header

Full commit hash
93a092e6273217b4c8d226adea075fbb1168fd0a
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
368
?>
Open commit View diff
368 ?>
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
369
    apply "default" {
Open commit View diff
369 apply "default" {
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
370
      MAILCOW_BLACK = 999.0;
Open commit View diff
370 MAILCOW_BLACK = 999.0;
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
371
    }
Open commit View diff
371 }
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
372
    symbols [
Open commit View diff
372 symbols [
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
373
      "MAILCOW_BLACK"
Open commit View diff
373 "MAILCOW_BLACK"
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
374
    ]
Open commit View diff
374 ]
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
375
  }
Open commit View diff
375 }
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
376
  blacklist_header_<?=$username_sane;?> {
Open commit View diff
376 blacklist_header_<?=$username_sane;?> {
Michael Kuron almost 9 years ago 93a092e

Rspamd user settings: also match From header

Full commit hash
93a092e6273217b4c8d226adea075fbb1168fd0a
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
377
<?php
Open commit View diff
377 <?php
andryyy over 7 years ago e04e15e

[Rspamd] Mime from and rcpt can now be checked by from_mime and rcpt_mime

Full commit hash
e04e15ed23ef9e5314a0aad9c46555a501b128dd
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
378
  foreach ($list_items as $item) {
Open commit View diff
378 foreach ($list_items as $item) {
Michael Kuron almost 9 years ago 93a092e

Rspamd user settings: also match From header

Full commit hash
93a092e6273217b4c8d226adea075fbb1168fd0a
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
379
?>
Open commit View diff
379 ?>
andryyy over 7 years ago e04e15e

[Rspamd] Mime from and rcpt can now be checked by from_mime and rcpt_mime

Full commit hash
e04e15ed23ef9e5314a0aad9c46555a501b128dd
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
380
    from_mime = "/<?='^' . str_replace('\*', '.*', preg_quote($item['value'], '/')) . '$' ;?>/i";
Open commit View diff
380 from_mime = "/<?='^' . str_replace('\*', '.*', preg_quote($item['value'], '/')) . '$' ;?>/i";
andryyy over 7 years ago 2baf407

[Rspamd] preg_quote filter objects, only translate * to .* - fixes #2152

Full commit hash
2baf40733121a69e35cd51af5383d9dc6b523855
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
381
<?php
Open commit View diff
381 <?php
same change 2baf407

[Rspamd] preg_quote filter objects, only translate * to .* - fixes #2152

Full commit hash
2baf40733121a69e35cd51af5383d9dc6b523855
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
382
  }
Open commit View diff
382 }
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
383
  if (!filter_var(trim($row['object']), FILTER_VALIDATE_EMAIL)) {
Open commit View diff
383 if (!filter_var(trim($row['object']), FILTER_VALIDATE_EMAIL)) {
Michael Kuron almost 9 years ago 93a092e

Rspamd user settings: also match From header

Full commit hash
93a092e6273217b4c8d226adea075fbb1168fd0a
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
384
?>
Open commit View diff
384 ?>
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
385
    priority = 5;
Open commit View diff
385 priority = 5;
Michael Kuron almost 9 years ago 93a092e

Rspamd user settings: also match From header

Full commit hash
93a092e6273217b4c8d226adea075fbb1168fd0a
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
386
<?php
Open commit View diff
386 <?php
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
387
    foreach (ucl_rcpts($row['object'], strpos($row['object'], '@') === FALSE ? 'domain' : 'mailbox') as $rcpt) {
Open commit View diff
387 foreach (ucl_rcpts($row['object'], strpos($row['object'], '@') === FALSE ? 'domain' : 'mailbox') as $rcpt) {
Michael Kuron almost 9 years ago 93a092e

Rspamd user settings: also match From header

Full commit hash
93a092e6273217b4c8d226adea075fbb1168fd0a
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
388
?>
Open commit View diff
388 ?>
André about 8 years ago 9dc250c

[Rspamd] Important fix for settings map

Full commit hash
9dc250c9f2cb15d93bf70f7324a58fd66ba2643b
Author
André <[email protected]>
Date
about 8 years ago
Selected line
389
    rcpt = <?=json_encode($rcpt, JSON_UNESCAPED_SLASHES);?>;
Open commit View diff
389 rcpt = <?=json_encode($rcpt, JSON_UNESCAPED_SLASHES);?>;
Michael Kuron almost 9 years ago 93a092e

Rspamd user settings: also match From header

Full commit hash
93a092e6273217b4c8d226adea075fbb1168fd0a
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
390
<?php
Open commit View diff
390 <?php
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
391
    }
Open commit View diff
391 }
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
392
  }
Open commit View diff
392 }
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
393
  else {
Open commit View diff
393 else {
Michael Kuron almost 9 years ago 93a092e

Rspamd user settings: also match From header

Full commit hash
93a092e6273217b4c8d226adea075fbb1168fd0a
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
394
?>
Open commit View diff
394 ?>
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
395
    priority = 6;
Open commit View diff
395 priority = 6;
Michael Kuron almost 9 years ago 93a092e

Rspamd user settings: also match From header

Full commit hash
93a092e6273217b4c8d226adea075fbb1168fd0a
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
396
<?php
Open commit View diff
396 <?php
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
397
    foreach (ucl_rcpts($row['object'], strpos($row['object'], '@') === FALSE ? 'domain' : 'mailbox') as $rcpt) {
Open commit View diff
397 foreach (ucl_rcpts($row['object'], strpos($row['object'], '@') === FALSE ? 'domain' : 'mailbox') as $rcpt) {
Michael Kuron almost 9 years ago 93a092e

Rspamd user settings: also match From header

Full commit hash
93a092e6273217b4c8d226adea075fbb1168fd0a
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
398
?>
Open commit View diff
398 ?>
André about 8 years ago 9dc250c

[Rspamd] Important fix for settings map

Full commit hash
9dc250c9f2cb15d93bf70f7324a58fd66ba2643b
Author
André <[email protected]>
Date
about 8 years ago
Selected line
399
    rcpt = <?=json_encode($rcpt, JSON_UNESCAPED_SLASHES);?>;
Open commit View diff
399 rcpt = <?=json_encode($rcpt, JSON_UNESCAPED_SLASHES);?>;
Michael Kuron almost 9 years ago 93a092e

Rspamd user settings: also match From header

Full commit hash
93a092e6273217b4c8d226adea075fbb1168fd0a
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
400
<?php
Open commit View diff
400 <?php
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
401
    }
Open commit View diff
401 }
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
402
  }
Open commit View diff
402 }
andryyy over 9 years ago 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
403
?>
Open commit View diff
403 ?>
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
404
    apply "default" {
Open commit View diff
404 apply "default" {
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
405
      MAILCOW_BLACK = 999.0;
Open commit View diff
405 MAILCOW_BLACK = 999.0;
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
406
    }
Open commit View diff
406 }
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
407
    symbols [
Open commit View diff
407 symbols [
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
408
      "MAILCOW_BLACK"
Open commit View diff
408 "MAILCOW_BLACK"
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
409
    ]
Open commit View diff
409 ]
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
410
  }
Open commit View diff
410 }
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
411
<?php
Open commit View diff
411 <?php
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
412
}
Open commit View diff
412 }
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
413
Open commit View diff
413
André almost 8 years ago d8f86ae

[Rspamd] Add local fuzzy worker

Full commit hash
d8f86ae488c109900cdc6a093a3deaa48296b09d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
414
/*
Open commit View diff
414 /*
same change d8f86ae

[Rspamd] Add local fuzzy worker

Full commit hash
d8f86ae488c109900cdc6a093a3deaa48296b09d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
415
// Start traps
Open commit View diff
415 // Start traps
same change d8f86ae

[Rspamd] Add local fuzzy worker

Full commit hash
d8f86ae488c109900cdc6a093a3deaa48296b09d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
416
*/
Open commit View diff
416 */
same change d8f86ae

[Rspamd] Add local fuzzy worker

Full commit hash
d8f86ae488c109900cdc6a093a3deaa48296b09d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
417
Open commit View diff
417
same change d8f86ae

[Rspamd] Add local fuzzy worker

Full commit hash
d8f86ae488c109900cdc6a093a3deaa48296b09d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
418
?>
Open commit View diff
418 ?>
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
419
  ham_trap {
Open commit View diff
419 ham_trap {
André almost 8 years ago d8f86ae

[Rspamd] Add local fuzzy worker

Full commit hash
d8f86ae488c109900cdc6a093a3deaa48296b09d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
420
<?php
Open commit View diff
420 <?php
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
421
  foreach (ucl_rcpts('ham@localhost', 'mailbox') as $rcpt) {
Open commit View diff
421 foreach (ucl_rcpts('ham@localhost', 'mailbox') as $rcpt) {
André almost 8 years ago d8f86ae

[Rspamd] Add local fuzzy worker

Full commit hash
d8f86ae488c109900cdc6a093a3deaa48296b09d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
422
?>
Open commit View diff
422 ?>
same change d8f86ae

[Rspamd] Add local fuzzy worker

Full commit hash
d8f86ae488c109900cdc6a093a3deaa48296b09d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
423
    rcpt = <?=json_encode($rcpt, JSON_UNESCAPED_SLASHES);?>;
Open commit View diff
423 rcpt = <?=json_encode($rcpt, JSON_UNESCAPED_SLASHES);?>;
same change d8f86ae

[Rspamd] Add local fuzzy worker

Full commit hash
d8f86ae488c109900cdc6a093a3deaa48296b09d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
424
<?php
Open commit View diff
424 <?php
same change d8f86ae

[Rspamd] Add local fuzzy worker

Full commit hash
d8f86ae488c109900cdc6a093a3deaa48296b09d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
425
  }
Open commit View diff
425 }
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
426
?>
Open commit View diff
426 ?>
same change 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
427
    priority = 9;
Open commit View diff
427 priority = 9;
same change 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
428
    apply "default" {
Open commit View diff
428 apply "default" {
same change 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
429
      symbols_enabled = ["HISTORY_SAVE"];
Open commit View diff
429 symbols_enabled = ["HISTORY_SAVE"];
same change 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
430
    }
Open commit View diff
430 }
same change 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
431
    symbols [
Open commit View diff
431 symbols [
same change 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
432
      "HAM_TRAP"
Open commit View diff
432 "HAM_TRAP"
same change 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
433
    ]
Open commit View diff
433 ]
same change 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
434
  }
Open commit View diff
434 }
same change 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
435
Open commit View diff
435
same change 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
436
  spam_trap {
Open commit View diff
436 spam_trap {
same change 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
437
<?php
Open commit View diff
437 <?php
same change 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
438
  foreach (ucl_rcpts('spam@localhost', 'mailbox') as $rcpt) {
Open commit View diff
438 foreach (ucl_rcpts('spam@localhost', 'mailbox') as $rcpt) {
André almost 8 years ago d8f86ae

[Rspamd] Add local fuzzy worker

Full commit hash
d8f86ae488c109900cdc6a093a3deaa48296b09d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
439
?>
Open commit View diff
439 ?>
same change d8f86ae

[Rspamd] Add local fuzzy worker

Full commit hash
d8f86ae488c109900cdc6a093a3deaa48296b09d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
440
    rcpt = <?=json_encode($rcpt, JSON_UNESCAPED_SLASHES);?>;
Open commit View diff
440 rcpt = <?=json_encode($rcpt, JSON_UNESCAPED_SLASHES);?>;
same change d8f86ae

[Rspamd] Add local fuzzy worker

Full commit hash
d8f86ae488c109900cdc6a093a3deaa48296b09d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
441
<?php
Open commit View diff
441 <?php
same change d8f86ae

[Rspamd] Add local fuzzy worker

Full commit hash
d8f86ae488c109900cdc6a093a3deaa48296b09d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
442
  }
Open commit View diff
442 }
same change d8f86ae

[Rspamd] Add local fuzzy worker

Full commit hash
d8f86ae488c109900cdc6a093a3deaa48296b09d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
443
?>
Open commit View diff
443 ?>
same change d8f86ae

[Rspamd] Add local fuzzy worker

Full commit hash
d8f86ae488c109900cdc6a093a3deaa48296b09d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
444
    priority = 9;
Open commit View diff
444 priority = 9;
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
445
    apply "default" {
Open commit View diff
445 apply "default" {
same change 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
446
      symbols_enabled = ["HISTORY_SAVE"];
Open commit View diff
446 symbols_enabled = ["HISTORY_SAVE"];
same change 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
447
    }
Open commit View diff
447 }
same change 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
448
    symbols [
Open commit View diff
448 symbols [
same change 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
449
      "SPAM_TRAP"
Open commit View diff
449 "SPAM_TRAP"
same change 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
450
    ]
Open commit View diff
450 ]
André almost 8 years ago d8f86ae

[Rspamd] Add local fuzzy worker

Full commit hash
d8f86ae488c109900cdc6a093a3deaa48296b09d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
451
  }
Open commit View diff
451 }
same change d8f86ae

[Rspamd] Add local fuzzy worker

Full commit hash
d8f86ae488c109900cdc6a093a3deaa48296b09d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
452
<?php
Open commit View diff
452 <?php
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
453
// Start additional content
Open commit View diff
453 // Start additional content
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
454
Open commit View diff
454
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
455
$stmt = $pdo->query("SELECT `id`, `content` FROM `settingsmap` WHERE `active` = '1'");
Open commit View diff
455 $stmt = $pdo->query("SELECT `id`, `content` FROM `settingsmap` WHERE `active` = '1'");
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
456
$rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
456 $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
457
while ($row = array_shift($rows)) {
Open commit View diff
457 while ($row = array_shift($rows)) {
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
458
  $username_sane = preg_replace("/[^a-zA-Z0-9]+/", "", $row['id']);
Open commit View diff
458 $username_sane = preg_replace("/[^a-zA-Z0-9]+/", "", $row['id']);
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
459
?>
Open commit View diff
459 ?>
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
460
  additional_settings_<?=intval($row['id']);?> {
Open commit View diff
460 additional_settings_<?=intval($row['id']);?> {
andryyy over 9 years ago 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
461
<?php
Open commit View diff
461 <?php
André about 8 years ago 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
462
    $content = preg_split('/\r\n|\r|\n/', $row['content']);
Open commit View diff
462 $content = preg_split('/\r\n|\r|\n/', $row['content']);
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
463
    foreach ($content as $line) {
Open commit View diff
463 foreach ($content as $line) {
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
464
      echo '    ' . $line . PHP_EOL;
Open commit View diff
464 echo ' ' . $line . PHP_EOL;
same change 8bb24a9

[Rspamd] Load additional settings defined in web ui

Full commit hash
8bb24a98665bc45969ccc23a5e7bf025cf2db0fa
Author
André <[email protected]>
Date
about 8 years ago
Selected line
465
    }
Open commit View diff
465 }
André Peters almost 8 years ago 68f2a1c

[Rspamd] Properly close additional Rspamd maps

Full commit hash
68f2a1c5fc4234ecba0abefea86fa6f2f7d888d5
Author
André Peters <[email protected]>
Date
almost 8 years ago
Selected line
466
?>
Open commit View diff
466 ?>
same change 68f2a1c

[Rspamd] Properly close additional Rspamd maps

Full commit hash
68f2a1c5fc4234ecba0abefea86fa6f2f7d888d5
Author
André Peters <[email protected]>
Date
almost 8 years ago
Selected line
467
  }
Open commit View diff
467 }
same change 68f2a1c

[Rspamd] Properly close additional Rspamd maps

Full commit hash
68f2a1c5fc4234ecba0abefea86fa6f2f7d888d5
Author
André Peters <[email protected]>
Date
almost 8 years ago
Selected line
468
<?php
Open commit View diff
468 <?php
andryyy over 9 years ago 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
469
}
Open commit View diff
469 }
same change 7d6c5ff

First commit for rspamd settings

Full commit hash
7d6c5ff0718920f1b65a8ab306e52e7892b5e927
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
470
?>
Open commit View diff
470 ?>
FreddleSpl0it 11 months ago f67c053

[Rspamd][Web] Internal alias support

Full commit hash
f67c0530f56495d4b7a2c3b8816a8140c2f25586
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
471
Open commit View diff
471
same change f67c053

[Rspamd][Web] Internal alias support

Full commit hash
f67c0530f56495d4b7a2c3b8816a8140c2f25586
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
472
<?php
Open commit View diff
472 <?php
same change f67c053

[Rspamd][Web] Internal alias support

Full commit hash
f67c0530f56495d4b7a2c3b8816a8140c2f25586
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
473
// Start internal aliases
Open commit View diff
473 // Start internal aliases
same change f67c053

[Rspamd][Web] Internal alias support

Full commit hash
f67c0530f56495d4b7a2c3b8816a8140c2f25586
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
474
Open commit View diff
474
same change f67c053

[Rspamd][Web] Internal alias support

Full commit hash
f67c0530f56495d4b7a2c3b8816a8140c2f25586
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
475
$stmt = $pdo->query("SELECT `id`, `address`, `domain` FROM `alias` WHERE `active` = '1' AND `internal` = '1'");
Open commit View diff
475 $stmt = $pdo->query("SELECT `id`, `address`, `domain` FROM `alias` WHERE `active` = '1' AND `internal` = '1'");
same change f67c053

[Rspamd][Web] Internal alias support

Full commit hash
f67c0530f56495d4b7a2c3b8816a8140c2f25586
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
476
$aliases = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
476 $aliases = $stmt->fetchAll(PDO::FETCH_ASSOC);
same change f67c053

[Rspamd][Web] Internal alias support

Full commit hash
f67c0530f56495d4b7a2c3b8816a8140c2f25586
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
477
while ($alias = array_shift($aliases)) {
Open commit View diff
477 while ($alias = array_shift($aliases)) {
same change f67c053

[Rspamd][Web] Internal alias support

Full commit hash
f67c0530f56495d4b7a2c3b8816a8140c2f25586
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
478
  // build allowed_domains regex and add target domain and alias domains
Open commit View diff
478 // build allowed_domains regex and add target domain and alias domains
same change f67c053

[Rspamd][Web] Internal alias support

Full commit hash
f67c0530f56495d4b7a2c3b8816a8140c2f25586
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
479
  $stmt = $pdo->prepare("SELECT `alias_domain` FROM `alias_domain` WHERE `active` = '1' AND `target_domain` = :target_domain");
Open commit View diff
479 $stmt = $pdo->prepare("SELECT `alias_domain` FROM `alias_domain` WHERE `active` = '1' AND `target_domain` = :target_domain");
same change f67c053

[Rspamd][Web] Internal alias support

Full commit hash
f67c0530f56495d4b7a2c3b8816a8140c2f25586
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
480
  $stmt->execute(array(':target_domain' => $alias['domain']));
Open commit View diff
480 $stmt->execute(array(':target_domain' => $alias['domain']));
same change f67c053

[Rspamd][Web] Internal alias support

Full commit hash
f67c0530f56495d4b7a2c3b8816a8140c2f25586
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
481
  $allowed_domains = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
481 $allowed_domains = $stmt->fetchAll(PDO::FETCH_ASSOC);
same change f67c053

[Rspamd][Web] Internal alias support

Full commit hash
f67c0530f56495d4b7a2c3b8816a8140c2f25586
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
482
  $allowed_domains = array_map(function($item) {
Open commit View diff
482 $allowed_domains = array_map(function($item) {
same change f67c053

[Rspamd][Web] Internal alias support

Full commit hash
f67c0530f56495d4b7a2c3b8816a8140c2f25586
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
483
    return str_replace('.', '\.', $item['alias_domain']);
Open commit View diff
483 return str_replace('.', '\.', $item['alias_domain']);
same change f67c053

[Rspamd][Web] Internal alias support

Full commit hash
f67c0530f56495d4b7a2c3b8816a8140c2f25586
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
484
  }, $allowed_domains);
Open commit View diff
484 }, $allowed_domains);
same change f67c053

[Rspamd][Web] Internal alias support

Full commit hash
f67c0530f56495d4b7a2c3b8816a8140c2f25586
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
485
  $allowed_domains[] = str_replace('.', '\.', $alias['domain']);
Open commit View diff
485 $allowed_domains[] = str_replace('.', '\.', $alias['domain']);
same change f67c053

[Rspamd][Web] Internal alias support

Full commit hash
f67c0530f56495d4b7a2c3b8816a8140c2f25586
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
486
  $allowed_domains = implode('|', $allowed_domains);
Open commit View diff
486 $allowed_domains = implode('|', $allowed_domains);
same change f67c053

[Rspamd][Web] Internal alias support

Full commit hash
f67c0530f56495d4b7a2c3b8816a8140c2f25586
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
487
?>
Open commit View diff
487 ?>
same change f67c053

[Rspamd][Web] Internal alias support

Full commit hash
f67c0530f56495d4b7a2c3b8816a8140c2f25586
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
488
  internal_alias_<?=$alias['id'];?> {
Open commit View diff
488 internal_alias_<?=$alias['id'];?> {
same change f67c053

[Rspamd][Web] Internal alias support

Full commit hash
f67c0530f56495d4b7a2c3b8816a8140c2f25586
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
489
    priority = 10;
Open commit View diff
489 priority = 10;
same change f67c053

[Rspamd][Web] Internal alias support

Full commit hash
f67c0530f56495d4b7a2c3b8816a8140c2f25586
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
490
    rcpt = "<?=$alias['address'];?>";
Open commit View diff
490 rcpt = "<?=$alias['address'];?>";
same change f67c053

[Rspamd][Web] Internal alias support

Full commit hash
f67c0530f56495d4b7a2c3b8816a8140c2f25586
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
491
    from = "/^((?!.*@(<?=$allowed_domains;?>)).)*$/";
Open commit View diff
491 from = "/^((?!.*@(<?=$allowed_domains;?>)).)*$/";
same change f67c053

[Rspamd][Web] Internal alias support

Full commit hash
f67c0530f56495d4b7a2c3b8816a8140c2f25586
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
492
    apply "default" {
Open commit View diff
492 apply "default" {
same change f67c053

[Rspamd][Web] Internal alias support

Full commit hash
f67c0530f56495d4b7a2c3b8816a8140c2f25586
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
493
      MAILCOW_INTERNAL_ALIAS = 9999.0;
Open commit View diff
493 MAILCOW_INTERNAL_ALIAS = 9999.0;
same change f67c053

[Rspamd][Web] Internal alias support

Full commit hash
f67c0530f56495d4b7a2c3b8816a8140c2f25586
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
494
    }
Open commit View diff
494 }
same change f67c053

[Rspamd][Web] Internal alias support

Full commit hash
f67c0530f56495d4b7a2c3b8816a8140c2f25586
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
495
    symbols [
Open commit View diff
495 symbols [
same change f67c053

[Rspamd][Web] Internal alias support

Full commit hash
f67c0530f56495d4b7a2c3b8816a8140c2f25586
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
496
      "MAILCOW_INTERNAL_ALIAS"
Open commit View diff
496 "MAILCOW_INTERNAL_ALIAS"
same change f67c053

[Rspamd][Web] Internal alias support

Full commit hash
f67c0530f56495d4b7a2c3b8816a8140c2f25586
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
497
    ]
Open commit View diff
497 ]
same change f67c053

[Rspamd][Web] Internal alias support

Full commit hash
f67c0530f56495d4b7a2c3b8816a8140c2f25586
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
498
  }
Open commit View diff
498 }
same change f67c053

[Rspamd][Web] Internal alias support

Full commit hash
f67c0530f56495d4b7a2c3b8816a8140c2f25586
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
499
<?php
Open commit View diff
499 <?php
same change f67c053

[Rspamd][Web] Internal alias support

Full commit hash
f67c0530f56495d4b7a2c3b8816a8140c2f25586
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
500
}
Open commit View diff
500 }
same change f67c053

[Rspamd][Web] Internal alias support

Full commit hash
f67c0530f56495d4b7a2c3b8816a8140c2f25586
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
501
?>
Open commit View diff
501 ?>
same change f67c053

[Rspamd][Web] Internal alias support

Full commit hash
f67c0530f56495d4b7a2c3b8816a8140c2f25586
Author
FreddleSpl0it <[email protected]>
Date
11 months ago
Selected line
502
Open commit View diff
502
andryyy over 7 years ago 108e808

[Rspamd] Reduce SOGO_CONTACT score to -99

Full commit hash
108e808d06f5de51a4dce1612c6e3fe4834b9cbe
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
503
}
Open commit View diff
503 }