public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
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/footer.php
Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.
footer.php
on main
Author
Date
Commit
Line
Code
FreddleSpl0it
over 2 years ago
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 1
<?php
<?php
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 2
// File size is limited by Nginx site to 10M
// File size is limited by Nginx site to 10M
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 3
// To speed things up, we do not include prerequisites
// To speed things up, we do not include prerequisites
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 4
header('Content-Type: text/plain');
header('Content-Type: text/plain');
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 5
require_once "vars.inc.php";
require_once "vars.inc.php";
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 6
// Do not show errors, we log to using error_log
// Do not show errors, we log to using error_log
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 7
ini_set('error_reporting', 0);
ini_set('error_reporting', 0);
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 8
// Init database
// Init database
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 9
//$dsn = $database_type . ':host=' . $database_host . ';dbname=' . $database_name;
//$dsn = $database_type . ':host=' . $database_host . ';dbname=' . $database_name;
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 10
$dsn = $database_type . ":unix_socket=" . $database_sock . ";dbname=" . $database_name;
$dsn = $database_type . ":unix_socket=" . $database_sock . ";dbname=" . $database_name;
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 11
$opt = [
$opt = [
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 12
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 13
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 14
PDO::ATTR_EMULATE_PREPARES => false,
PDO::ATTR_EMULATE_PREPARES => false,
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 15
];
];
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 16
try {
try {
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 17
$pdo = new PDO($dsn, $database_user, $database_pass, $opt);
$pdo = new PDO($dsn, $database_user, $database_pass, $opt);
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 18
}
}
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 19
catch (PDOException $e) {
catch (PDOException $e) {
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 20
error_log("FOOTER: " . $e . PHP_EOL);
error_log("FOOTER: " . $e . PHP_EOL);
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 21
http_response_code(501);
http_response_code(501);
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 22
exit;
exit;
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 23
}
}
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 24
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 25
if (!function_exists('getallheaders')) {
if (!function_exists('getallheaders')) {
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 26
function getallheaders() {
function getallheaders() {
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 27
if (!is_array($_SERVER)) {
if (!is_array($_SERVER)) {
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 28
return array();
return array();
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 29
}
}
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 30
$headers = array();
$headers = array();
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 31
foreach ($_SERVER as $name => $value) {
foreach ($_SERVER as $name => $value) {
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 32
if (substr($name, 0, 5) == 'HTTP_') {
if (substr($name, 0, 5) == 'HTTP_') {
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 33
$headers[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value;
$headers[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value;
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 34
}
}
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 35
}
}
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 36
return $headers;
return $headers;
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 37
}
}
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 38
}
}
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 39
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 40
// Read headers
// Read headers
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 41
$headers = getallheaders();
$headers = getallheaders();
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 42
// Get Domain
// Get Domain
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 43
$domain = $headers['Domain'];
$domain = $headers['Domain'];
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 44
// Get Username
// Get Username
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 45
$username = $headers['Username'];
$username = $headers['Username'];
FreddleSpl0it
over 2 years ago
b3ac941
[Rspamd] fix excluding alias from domain wide footer
- Full commit hash
b3ac94115e9870159acbeae5477fbcc06fe01536- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 46
// Get From
// Get From
same change
b3ac941
[Rspamd] fix excluding alias from domain wide footer
- Full commit hash
b3ac94115e9870159acbeae5477fbcc06fe01536- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 47
$from = $headers['From'];
$from = $headers['From'];
FreddleSpl0it
over 2 years ago
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 48
// define empty footer
// define empty footer
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 49
$empty_footer = json_encode(array(
$empty_footer = json_encode(array(
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 50
'html' => '',
'html' => '',
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 51
'plain' => '',
'plain' => '',
FreddleSpl0it
over 2 years ago
efab117
add option to skip footer on reply e-mails
- Full commit hash
efab11720dd144d800ca0bf127c3410516e6bbb3- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 52
'skip_replies' => 0,
'skip_replies' => 0,
FreddleSpl0it
over 2 years ago
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 53
'vars' => array()
'vars' => array()
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 54
));
));
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 55
FreddleSpl0it
over 2 years ago
b3ac941
[Rspamd] fix excluding alias from domain wide footer
- Full commit hash
b3ac94115e9870159acbeae5477fbcc06fe01536- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 56
error_log("FOOTER: checking for domain " . $domain . ", user " . $username . " and address " . $from . PHP_EOL);
error_log("FOOTER: checking for domain " . $domain . ", user " . $username . " and address " . $from . PHP_EOL);
FreddleSpl0it
over 2 years ago
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 57
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 58
try {
try {
FreddleSpl0it
over 2 years ago
86ba019
[Rspamd] apply domain wide footer to alias domains
- Full commit hash
86ba019ca09b7e09c59ec8a1e4f562493947510a- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 59
// try get $target_domain if $domain is an alias_domain
// try get $target_domain if $domain is an alias_domain
same change
86ba019
[Rspamd] apply domain wide footer to alias domains
- Full commit hash
86ba019ca09b7e09c59ec8a1e4f562493947510a- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 60
$stmt = $pdo->prepare("SELECT `target_domain` FROM `alias_domain`
$stmt = $pdo->prepare("SELECT `target_domain` FROM `alias_domain`
same change
86ba019
[Rspamd] apply domain wide footer to alias domains
- Full commit hash
86ba019ca09b7e09c59ec8a1e4f562493947510a- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 61
WHERE `alias_domain` = :alias_domain");
WHERE `alias_domain` = :alias_domain");
same change
86ba019
[Rspamd] apply domain wide footer to alias domains
- Full commit hash
86ba019ca09b7e09c59ec8a1e4f562493947510a- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 62
$stmt->execute(array(
$stmt->execute(array(
same change
86ba019
[Rspamd] apply domain wide footer to alias domains
- Full commit hash
86ba019ca09b7e09c59ec8a1e4f562493947510a- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 63
':alias_domain' => $domain
':alias_domain' => $domain
same change
86ba019
[Rspamd] apply domain wide footer to alias domains
- Full commit hash
86ba019ca09b7e09c59ec8a1e4f562493947510a- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 64
));
));
same change
86ba019
[Rspamd] apply domain wide footer to alias domains
- Full commit hash
86ba019ca09b7e09c59ec8a1e4f562493947510a- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 65
$alias_domain = $stmt->fetch(PDO::FETCH_ASSOC);
$alias_domain = $stmt->fetch(PDO::FETCH_ASSOC);
same change
86ba019
[Rspamd] apply domain wide footer to alias domains
- Full commit hash
86ba019ca09b7e09c59ec8a1e4f562493947510a- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 66
if (!$alias_domain) {
if (!$alias_domain) {
same change
86ba019
[Rspamd] apply domain wide footer to alias domains
- Full commit hash
86ba019ca09b7e09c59ec8a1e4f562493947510a- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 67
$target_domain = $domain;
$target_domain = $domain;
same change
86ba019
[Rspamd] apply domain wide footer to alias domains
- Full commit hash
86ba019ca09b7e09c59ec8a1e4f562493947510a- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 68
} else {
} else {
same change
86ba019
[Rspamd] apply domain wide footer to alias domains
- Full commit hash
86ba019ca09b7e09c59ec8a1e4f562493947510a- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 69
$target_domain = $alias_domain['target_domain'];
$target_domain = $alias_domain['target_domain'];
same change
86ba019
[Rspamd] apply domain wide footer to alias domains
- Full commit hash
86ba019ca09b7e09c59ec8a1e4f562493947510a- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 70
}
}
same change
86ba019
[Rspamd] apply domain wide footer to alias domains
- Full commit hash
86ba019ca09b7e09c59ec8a1e4f562493947510a- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 71
same change
86ba019
[Rspamd] apply domain wide footer to alias domains
- Full commit hash
86ba019ca09b7e09c59ec8a1e4f562493947510a- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 72
// get footer associated with the domain
// get footer associated with the domain
same change
86ba019
[Rspamd] apply domain wide footer to alias domains
- Full commit hash
86ba019ca09b7e09c59ec8a1e4f562493947510a- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 73
$stmt = $pdo->prepare("SELECT `plain`, `html`, `mbox_exclude`, `alias_domain_exclude`, `skip_replies` FROM `domain_wide_footer`
$stmt = $pdo->prepare("SELECT `plain`, `html`, `mbox_exclude`, `alias_domain_exclude`, `skip_replies` FROM `domain_wide_footer`
FreddleSpl0it
over 2 years ago
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 74
WHERE `domain` = :domain");
WHERE `domain` = :domain");
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 75
$stmt->execute(array(
$stmt->execute(array(
FreddleSpl0it
over 2 years ago
86ba019
[Rspamd] apply domain wide footer to alias domains
- Full commit hash
86ba019ca09b7e09c59ec8a1e4f562493947510a- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 76
':domain' => $target_domain
':domain' => $target_domain
FreddleSpl0it
over 2 years ago
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 77
));
));
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 78
$footer = $stmt->fetch(PDO::FETCH_ASSOC);
$footer = $stmt->fetch(PDO::FETCH_ASSOC);
FreddleSpl0it
over 2 years ago
86ba019
[Rspamd] apply domain wide footer to alias domains
- Full commit hash
86ba019ca09b7e09c59ec8a1e4f562493947510a- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 79
same change
86ba019
[Rspamd] apply domain wide footer to alias domains
- Full commit hash
86ba019ca09b7e09c59ec8a1e4f562493947510a- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 80
// check if the sender is excluded
// check if the sender is excluded
FreddleSpl0it
over 2 years ago
b3ac941
[Rspamd] fix excluding alias from domain wide footer
- Full commit hash
b3ac94115e9870159acbeae5477fbcc06fe01536- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 81
if (in_array($from, json_decode($footer['mbox_exclude']))){
if (in_array($from, json_decode($footer['mbox_exclude']))){
FreddleSpl0it
over 2 years ago
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 82
$footer = false;
$footer = false;
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 83
}
}
FreddleSpl0it
over 2 years ago
86ba019
[Rspamd] apply domain wide footer to alias domains
- Full commit hash
86ba019ca09b7e09c59ec8a1e4f562493947510a- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 84
if (in_array($domain, json_decode($footer['alias_domain_exclude']))){
if (in_array($domain, json_decode($footer['alias_domain_exclude']))){
same change
86ba019
[Rspamd] apply domain wide footer to alias domains
- Full commit hash
86ba019ca09b7e09c59ec8a1e4f562493947510a- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 85
$footer = false;
$footer = false;
same change
86ba019
[Rspamd] apply domain wide footer to alias domains
- Full commit hash
86ba019ca09b7e09c59ec8a1e4f562493947510a- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 86
}
}
FreddleSpl0it
over 2 years ago
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 87
if (empty($footer)){
if (empty($footer)){
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 88
echo $empty_footer;
echo $empty_footer;
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 89
exit;
exit;
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 90
}
}
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 91
error_log("FOOTER: " . json_encode($footer) . PHP_EOL);
error_log("FOOTER: " . json_encode($footer) . PHP_EOL);
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 92
FreddleSpl0it
over 2 years ago
86ba019
[Rspamd] apply domain wide footer to alias domains
- Full commit hash
86ba019ca09b7e09c59ec8a1e4f562493947510a- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 93
// footer will be applied
// footer will be applied
same change
86ba019
[Rspamd] apply domain wide footer to alias domains
- Full commit hash
86ba019ca09b7e09c59ec8a1e4f562493947510a- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 94
// get custom mailbox attributes to insert into the footer
// get custom mailbox attributes to insert into the footer
FreddleSpl0it
over 2 years ago
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 95
$stmt = $pdo->prepare("SELECT `custom_attributes` FROM `mailbox` WHERE `username` = :username");
$stmt = $pdo->prepare("SELECT `custom_attributes` FROM `mailbox` WHERE `username` = :username");
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 96
$stmt->execute(array(
$stmt->execute(array(
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 97
':username' => $username
':username' => $username
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 98
));
));
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 99
$custom_attributes = $stmt->fetch(PDO::FETCH_ASSOC)['custom_attributes'];
$custom_attributes = $stmt->fetch(PDO::FETCH_ASSOC)['custom_attributes'];
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 100
if (empty($custom_attributes)){
if (empty($custom_attributes)){
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 101
$custom_attributes = (object)array();
$custom_attributes = (object)array();
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 102
}
}
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 103
}
}
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 104
catch (Exception $e) {
catch (Exception $e) {
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 105
error_log("FOOTER: " . $e->getMessage() . PHP_EOL);
error_log("FOOTER: " . $e->getMessage() . PHP_EOL);
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 106
http_response_code(502);
http_response_code(502);
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 107
exit;
exit;
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 108
}
}
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 109
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 110
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 111
// return footer
// return footer
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 112
$footer["vars"] = $custom_attributes;
$footer["vars"] = $custom_attributes;
same change
d2e3867
[Web][Rspamd] implement custom mailbox attributes and improve domain wide footer
- Full commit hash
d2e38678936158637fae1f9518248cc10099bf7f- Author
- FreddleSpl0it <[email protected]>
- Date
- over 2 years ago
- Selected line
- 113
echo json_encode($footer);
echo json_encode($footer);