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/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
Open commit View diff
1 <?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
Open commit View diff
2 // 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
Open commit View diff
3 // 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');
Open commit View diff
4 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";
Open commit View diff
5 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
Open commit View diff
6 // 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);
Open commit View diff
7 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
Open commit View diff
8 // 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;
Open commit View diff
9 //$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;
Open commit View diff
10 $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 = [
Open commit View diff
11 $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,
Open commit View diff
12 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,
Open commit View diff
13 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,
Open commit View diff
14 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
];
Open commit View diff
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 {
Open commit View diff
16 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);
Open commit View diff
17 $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
}
Open commit View diff
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) {
Open commit View diff
19 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);
Open commit View diff
20 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);
Open commit View diff
21 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;
Open commit View diff
22 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
}
Open commit View diff
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
Open commit View diff
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'))  {
Open commit View diff
25 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() {
Open commit View diff
26 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)) {
Open commit View diff
27 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();
Open commit View diff
28 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
    }
Open commit View diff
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();
Open commit View diff
30 $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) {
Open commit View diff
31 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_') {
Open commit View diff
32 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;
Open commit View diff
33 $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
      }
Open commit View diff
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
    }
Open commit View diff
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;
Open commit View diff
36 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
  }
Open commit View diff
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
}
Open commit View diff
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
Open commit View diff
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
Open commit View diff
40 // 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();
Open commit View diff
41 $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
Open commit View diff
42 // 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'];
Open commit View diff
43 $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
Open commit View diff
44 // 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'];
Open commit View diff
45 $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
Open commit View diff
46 // 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'];
Open commit View diff
47 $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
Open commit View diff
48 // 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(
Open commit View diff
49 $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' => '',
Open commit View diff
50 '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' => '',
Open commit View diff
51 '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,
Open commit View diff
52 '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()
Open commit View diff
53 '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
));
Open commit View diff
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
Open commit View diff
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);
Open commit View diff
56 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
Open commit View diff
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 {
Open commit View diff
58 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
Open commit View diff
59 // 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` 
Open commit View diff
60 $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");
Open commit View diff
61 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(
Open commit View diff
62 $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
Open commit View diff
63 ':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
  ));
Open commit View diff
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);
Open commit View diff
65 $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) {
Open commit View diff
66 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;
Open commit View diff
67 $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 {
Open commit View diff
68 } 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'];
Open commit View diff
69 $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
  }
Open commit View diff
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
Open commit View diff
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
Open commit View diff
72 // 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` 
Open commit View diff
73 $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");
Open commit View diff
74 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(
Open commit View diff
75 $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
Open commit View diff
76 ':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
  ));
Open commit View diff
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);
Open commit View diff
78 $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
Open commit View diff
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
Open commit View diff
80 // 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']))){
Open commit View diff
81 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;
Open commit View diff
82 $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
  }
Open commit View diff
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']))){
Open commit View diff
84 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;
Open commit View diff
85 $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
  }
Open commit View diff
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)){
Open commit View diff
87 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;
Open commit View diff
88 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;
Open commit View diff
89 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
  }
Open commit View diff
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);
Open commit View diff
91 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
Open commit View diff
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
Open commit View diff
93 // 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
Open commit View diff
94 // 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");
Open commit View diff
95 $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(
Open commit View diff
96 $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
Open commit View diff
97 ':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
  ));
Open commit View diff
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'];
Open commit View diff
99 $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)){
Open commit View diff
100 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();
Open commit View diff
101 $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
  }
Open commit View diff
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
}
Open commit View diff
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) {
Open commit View diff
104 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);
Open commit View diff
105 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);
Open commit View diff
106 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;
Open commit View diff
107 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
}
Open commit View diff
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
Open commit View diff
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
Open commit View diff
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
Open commit View diff
111 // 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;
Open commit View diff
112 $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);
Open commit View diff
113 echo json_encode($footer);