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/bcc.php

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

bcc.php on main
Author Date Commit Line Code
andryyy about 5 years ago c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
1
<?php
Open commit View diff
1 <?php
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 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 c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 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 c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
4
header('Content-Type: text/plain');
Open commit View diff
4 header('Content-Type: text/plain');
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
5
require_once "vars.inc.php";
Open commit View diff
5 require_once "vars.inc.php";
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 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 c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
7
ini_set('error_reporting', 0);
Open commit View diff
7 ini_set('error_reporting', 0);
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
8
// Init database
Open commit View diff
8 // Init database
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 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 c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 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 c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
11
$opt = [
Open commit View diff
11 $opt = [
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
12
    PDO::ATTR_ERRMODE            => PDO::ERRMODE_EXCEPTION,
Open commit View diff
12 PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 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 c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
14
    PDO::ATTR_EMULATE_PREPARES   => false,
Open commit View diff
14 PDO::ATTR_EMULATE_PREPARES => false,
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
15
];
Open commit View diff
15 ];
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
16
try {
Open commit View diff
16 try {
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 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 c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
18
}
Open commit View diff
18 }
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
19
catch (PDOException $e) {
Open commit View diff
19 catch (PDOException $e) {
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
20
  error_log("BCC MAP SQL ERROR: " . $e . PHP_EOL);
Open commit View diff
20 error_log("BCC MAP SQL ERROR: " . $e . PHP_EOL);
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
21
  http_response_code(501);
Open commit View diff
21 http_response_code(501);
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
22
  exit;
Open commit View diff
22 exit;
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
23
}
Open commit View diff
23 }
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
24
Open commit View diff
24
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
25
function parse_email($email) {
Open commit View diff
25 function parse_email($email) {
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
26
  if(!filter_var($email, FILTER_VALIDATE_EMAIL)) return false;
Open commit View diff
26 if(!filter_var($email, FILTER_VALIDATE_EMAIL)) return false;
same change c895528

[Rspamd] Create BCC plugin

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

[Rspamd] Create BCC plugin

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

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
29
}
Open commit View diff
29 }
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
30
if (!function_exists('getallheaders'))  {
Open commit View diff
30 if (!function_exists('getallheaders')) {
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
31
  function getallheaders() {
Open commit View diff
31 function getallheaders() {
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
32
    if (!is_array($_SERVER)) {
Open commit View diff
32 if (!is_array($_SERVER)) {
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
33
      return array();
Open commit View diff
33 return array();
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
34
    }
Open commit View diff
34 }
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
35
    $headers = array();
Open commit View diff
35 $headers = array();
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
36
    foreach ($_SERVER as $name => $value) {
Open commit View diff
36 foreach ($_SERVER as $name => $value) {
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
37
      if (substr($name, 0, 5) == 'HTTP_') {
Open commit View diff
37 if (substr($name, 0, 5) == 'HTTP_') {
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
38
        $headers[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value;
Open commit View diff
38 $headers[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value;
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
39
      }
Open commit View diff
39 }
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
40
    }
Open commit View diff
40 }
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
41
    return $headers;
Open commit View diff
41 return $headers;
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
42
  }
Open commit View diff
42 }
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
43
}
Open commit View diff
43 }
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
44
Open commit View diff
44
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
45
// Read headers
Open commit View diff
45 // Read headers
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
46
$headers = getallheaders();
Open commit View diff
46 $headers = getallheaders();
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
47
// Get rcpt
Open commit View diff
47 // Get rcpt
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
48
$rcpt = $headers['Rcpt'];
Open commit View diff
48 $rcpt = $headers['Rcpt'];
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
49
// Get from
Open commit View diff
49 // Get from
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
50
$from = $headers['From'];
Open commit View diff
50 $from = $headers['From'];
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
51
// Remove tags
Open commit View diff
51 // Remove tags
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
52
$rcpt = preg_replace('/^(.*?)\+.*(@.*)$/', '$1$2', $rcpt);
Open commit View diff
52 $rcpt = preg_replace('/^(.*?)\+.*(@.*)$/', '$1$2', $rcpt);
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
53
$from = preg_replace('/^(.*?)\+.*(@.*)$/', '$1$2', $from);
Open commit View diff
53 $from = preg_replace('/^(.*?)\+.*(@.*)$/', '$1$2', $from);
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
54
Open commit View diff
54
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
55
try {
Open commit View diff
55 try {
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
56
  if (!empty($rcpt)) {
Open commit View diff
56 if (!empty($rcpt)) {
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
57
    $stmt = $pdo->prepare("SELECT `bcc_dest` FROM `bcc_maps` WHERE `type` = 'rcpt' AND `local_dest` = :local_dest AND `active` = '1'");
Open commit View diff
57 $stmt = $pdo->prepare("SELECT `bcc_dest` FROM `bcc_maps` WHERE `type` = 'rcpt' AND `local_dest` = :local_dest AND `active` = '1'");
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
58
    $stmt->execute(array(
Open commit View diff
58 $stmt->execute(array(
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
59
      ':local_dest' => $rcpt
Open commit View diff
59 ':local_dest' => $rcpt
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
60
    ));
Open commit View diff
60 ));
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
61
    $bcc_dest = $stmt->fetch(PDO::FETCH_ASSOC)['bcc_dest'];
Open commit View diff
61 $bcc_dest = $stmt->fetch(PDO::FETCH_ASSOC)['bcc_dest'];
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
62
    if (!empty($bcc_dest) && filter_var($bcc_dest, FILTER_VALIDATE_EMAIL)) {
Open commit View diff
62 if (!empty($bcc_dest) && filter_var($bcc_dest, FILTER_VALIDATE_EMAIL)) {
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
63
      error_log("BCC MAP: returning ". $bcc_dest . " for " . $rcpt . PHP_EOL);
Open commit View diff
63 error_log("BCC MAP: returning ". $bcc_dest . " for " . $rcpt . PHP_EOL);
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
64
      http_response_code(201);
Open commit View diff
64 http_response_code(201);
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
65
      echo trim($bcc_dest);
Open commit View diff
65 echo trim($bcc_dest);
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
66
      exit;
Open commit View diff
66 exit;
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
67
    }
Open commit View diff
67 }
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
68
  }
Open commit View diff
68 }
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
69
  if (!empty($from)) {
Open commit View diff
69 if (!empty($from)) {
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
70
    $stmt = $pdo->prepare("SELECT `bcc_dest` FROM `bcc_maps` WHERE `type` = 'sender' AND `local_dest` = :local_dest AND `active` = '1'");
Open commit View diff
70 $stmt = $pdo->prepare("SELECT `bcc_dest` FROM `bcc_maps` WHERE `type` = 'sender' AND `local_dest` = :local_dest AND `active` = '1'");
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
71
    $stmt->execute(array(
Open commit View diff
71 $stmt->execute(array(
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
72
      ':local_dest' => $from
Open commit View diff
72 ':local_dest' => $from
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
73
    ));
Open commit View diff
73 ));
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
74
    $bcc_dest = $stmt->fetch(PDO::FETCH_ASSOC)['bcc_dest'];
Open commit View diff
74 $bcc_dest = $stmt->fetch(PDO::FETCH_ASSOC)['bcc_dest'];
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
75
    if (!empty($bcc_dest) && filter_var($bcc_dest, FILTER_VALIDATE_EMAIL)) {
Open commit View diff
75 if (!empty($bcc_dest) && filter_var($bcc_dest, FILTER_VALIDATE_EMAIL)) {
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
76
      error_log("BCC MAP: returning ". $bcc_dest . " for " . $from . PHP_EOL);
Open commit View diff
76 error_log("BCC MAP: returning ". $bcc_dest . " for " . $from . PHP_EOL);
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
77
      http_response_code(201);
Open commit View diff
77 http_response_code(201);
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
78
      echo trim($bcc_dest);
Open commit View diff
78 echo trim($bcc_dest);
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
79
      exit;
Open commit View diff
79 exit;
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
80
    }
Open commit View diff
80 }
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
81
  }
Open commit View diff
81 }
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
82
}
Open commit View diff
82 }
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
83
catch (PDOException $e) {
Open commit View diff
83 catch (PDOException $e) {
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
84
  error_log("BCC MAP SQL ERROR: " . $e->getMessage() . PHP_EOL);
Open commit View diff
84 error_log("BCC MAP SQL ERROR: " . $e->getMessage() . PHP_EOL);
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
85
  http_response_code(502);
Open commit View diff
85 http_response_code(502);
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
86
  exit;
Open commit View diff
86 exit;
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
87
}
Open commit View diff
87 }
same change c895528

[Rspamd] Create BCC plugin

Full commit hash
c8955284a2159f529ae108eb70ce1f9b3bbf061a
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
88
Open commit View diff
88