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/web/inc/functions.quarantine.inc.php

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

functions.quarantine.inc.php on main
Author Date Commit Line Code
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
1
<?php
Open commit View diff
1 <?php
andryyy about 6 years ago 2aa11ba

[Web] Add PHPMailer to quarantine file

Full commit hash
2aa11ba37d5c9d73a498e58ce312d7f7c9079aa6
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
2
use PHPMailer\PHPMailer\PHPMailer;
Open commit View diff
2 use PHPMailer\PHPMailer\PHPMailer;
same change 2aa11ba

[Web] Add PHPMailer to quarantine file

Full commit hash
2aa11ba37d5c9d73a498e58ce312d7f7c9079aa6
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
3
use PHPMailer\PHPMailer\SMTP;
Open commit View diff
3 use PHPMailer\PHPMailer\SMTP;
same change 2aa11ba

[Web] Add PHPMailer to quarantine file

Full commit hash
2aa11ba37d5c9d73a498e58ce312d7f7c9079aa6
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
4
use PHPMailer\PHPMailer\Exception;
Open commit View diff
4 use PHPMailer\PHPMailer\Exception;
André Peters over 8 years ago a500364

[Web] Mind was set to french, reverting to english

Full commit hash
a50036477eee7d80d58c3147c5b1dfbe013f4380
Author
André Peters <[email protected]>
Date
over 8 years ago
Selected line
5
function quarantine($_action, $_data = null) {
Open commit View diff
5 function quarantine($_action, $_data = null) {
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
6
	global $pdo;
Open commit View diff
6 global $pdo;
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
7
	global $redis;
Open commit View diff
7 global $redis;
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
8
	global $lang;
Open commit View diff
8 global $lang;
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
9
	$_data_log = $_data;
Open commit View diff
9 $_data_log = $_data;
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
10
  switch ($_action) {
Open commit View diff
10 switch ($_action) {
andryyy over 7 years ago e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
11
    case 'quick_delete':
Open commit View diff
11 case 'quick_delete':
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
12
      // Dont return results, just log
Open commit View diff
12 // Dont return results, just log
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
13
      $hash = trim($_data);
Open commit View diff
13 $hash = trim($_data);
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
14
      if (preg_match("/^([a-f0-9]{64})$/", $hash) === false) {
Open commit View diff
14 if (preg_match("/^([a-f0-9]{64})$/", $hash) === false) {
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
15
        logger(array('return' => array(
Open commit View diff
15 logger(array('return' => array(
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
16
          array(
Open commit View diff
16 array(
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
17
            'type' => 'danger',
Open commit View diff
17 'type' => 'danger',
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
18
            'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
18 'log' => array(__FUNCTION__, $_action, $_data_log),
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
19
            'msg' => 'access_denied'
Open commit View diff
19 'msg' => 'access_denied'
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
20
          )
Open commit View diff
20 )
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
21
        )));
Open commit View diff
21 )));
andryyy about 6 years ago b93371c

[Web] Add smtp and header from to quarantine items, add more info to qhandler, allow to open qhandler links from qitem details

Full commit hash
b93371ca0aaf8cb416f1952351d52ffd46ad8091
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
22
        return false;
Open commit View diff
22 return false;
andryyy over 7 years ago e140979

[Web] Add quick release/delete functions

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

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
24
      $stmt = $pdo->prepare('SELECT `id` FROM `quarantine` LEFT OUTER JOIN `user_acl` ON `user_acl`.`username` = `rcpt`
Open commit View diff
24 $stmt = $pdo->prepare('SELECT `id` FROM `quarantine` LEFT OUTER JOIN `user_acl` ON `user_acl`.`username` = `rcpt`
Christoph Lechleitner 12 months ago 2b2da16

[DB][Web] optimize qhandler by keeping SHA2 in new column qhash (#6556)

Full commit hash
2b2da1679e7f05a61c268db208c5e1fbacb70a78
Author
Christoph Lechleitner <[email protected]>
Date
12 months ago
Selected line
25
        WHERE `qhash` = :hash
Open commit View diff
25 WHERE `qhash` = :hash
andryyy over 7 years ago e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
26
          AND user_acl.quarantine = 1
Open commit View diff
26 AND user_acl.quarantine = 1
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
27
          AND rcpt IN (SELECT username FROM mailbox)');
Open commit View diff
27 AND rcpt IN (SELECT username FROM mailbox)');
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
28
      $stmt->execute(array(':hash' => $hash));
Open commit View diff
28 $stmt->execute(array(':hash' => $hash));
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
29
      $row = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
29 $row = $stmt->fetch(PDO::FETCH_ASSOC);
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
30
      if (empty($row['id']) || !is_numeric($row['id'])) {
Open commit View diff
30 if (empty($row['id']) || !is_numeric($row['id'])) {
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
31
        logger(array('return' => array(
Open commit View diff
31 logger(array('return' => array(
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
32
          array(
Open commit View diff
32 array(
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
33
            'type' => 'danger',
Open commit View diff
33 'type' => 'danger',
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
34
            'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
34 'log' => array(__FUNCTION__, $_action, $_data_log),
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
35
            'msg' => 'access_denied'
Open commit View diff
35 'msg' => 'access_denied'
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
36
          )
Open commit View diff
36 )
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
37
        )));
Open commit View diff
37 )));
andryyy about 6 years ago b93371c

[Web] Add smtp and header from to quarantine items, add more info to qhandler, allow to open qhandler links from qitem details

Full commit hash
b93371ca0aaf8cb416f1952351d52ffd46ad8091
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
38
        return false;
Open commit View diff
38 return false;
andryyy over 7 years ago e140979

[Web] Add quick release/delete functions

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

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
40
      else {
Open commit View diff
40 else {
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
41
        $stmt = $pdo->prepare("DELETE FROM `quarantine` WHERE id = :id");
Open commit View diff
41 $stmt = $pdo->prepare("DELETE FROM `quarantine` WHERE id = :id");
same change e140979

[Web] Add quick release/delete functions

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

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
43
          ':id' => $row['id']
Open commit View diff
43 ':id' => $row['id']
same change e140979

[Web] Add quick release/delete functions

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

[Web] Add quick release/delete functions

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

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
46
      logger(array('return' => array(
Open commit View diff
46 logger(array('return' => array(
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
47
        array(
Open commit View diff
47 array(
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
48
          'type' => 'success',
Open commit View diff
48 'type' => 'success',
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
49
          'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
49 'log' => array(__FUNCTION__, $_action, $_data_log),
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
50
          'msg' => array('item_deleted', $row['id'])
Open commit View diff
50 'msg' => array('item_deleted', $row['id'])
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
51
        )
Open commit View diff
51 )
same change e140979

[Web] Add quick release/delete functions

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

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
53
    break;
Open commit View diff
53 break;
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
54
    case 'quick_release':
Open commit View diff
54 case 'quick_release':
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
55
      // Dont return results, just log
Open commit View diff
55 // Dont return results, just log
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
56
      $hash = trim($_data);
Open commit View diff
56 $hash = trim($_data);
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
57
      if (preg_match("/^([a-f0-9]{64})$/", $hash) === false) {
Open commit View diff
57 if (preg_match("/^([a-f0-9]{64})$/", $hash) === false) {
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
58
        logger(array('return' => array(
Open commit View diff
58 logger(array('return' => array(
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
59
          array(
Open commit View diff
59 array(
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
60
            'type' => 'danger',
Open commit View diff
60 'type' => 'danger',
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
61
            'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
61 'log' => array(__FUNCTION__, $_action, $_data_log),
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
62
            'msg' => 'access_denied'
Open commit View diff
62 'msg' => 'access_denied'
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
63
          )
Open commit View diff
63 )
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
64
        )));
Open commit View diff
64 )));
andryyy about 6 years ago b93371c

[Web] Add smtp and header from to quarantine items, add more info to qhandler, allow to open qhandler links from qitem details

Full commit hash
b93371ca0aaf8cb416f1952351d52ffd46ad8091
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
65
        return false;
Open commit View diff
65 return false;
andryyy over 7 years ago e140979

[Web] Add quick release/delete functions

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

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
67
      $stmt = $pdo->prepare('SELECT `id` FROM `quarantine` LEFT OUTER JOIN `user_acl` ON `user_acl`.`username` = `rcpt`
Open commit View diff
67 $stmt = $pdo->prepare('SELECT `id` FROM `quarantine` LEFT OUTER JOIN `user_acl` ON `user_acl`.`username` = `rcpt`
Christoph Lechleitner 12 months ago 2b2da16

[DB][Web] optimize qhandler by keeping SHA2 in new column qhash (#6556)

Full commit hash
2b2da1679e7f05a61c268db208c5e1fbacb70a78
Author
Christoph Lechleitner <[email protected]>
Date
12 months ago
Selected line
68
        WHERE `qhash` = :hash
Open commit View diff
68 WHERE `qhash` = :hash
andryyy over 7 years ago e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
69
          AND `user_acl`.`quarantine` = 1
Open commit View diff
69 AND `user_acl`.`quarantine` = 1
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
70
          AND `username` IN (SELECT `username` FROM `mailbox`)');
Open commit View diff
70 AND `username` IN (SELECT `username` FROM `mailbox`)');
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
71
      $stmt->execute(array(':hash' => $hash));
Open commit View diff
71 $stmt->execute(array(':hash' => $hash));
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
72
      $row = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
72 $row = $stmt->fetch(PDO::FETCH_ASSOC);
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
73
      if (empty($row['id']) || !is_numeric($row['id'])) {
Open commit View diff
73 if (empty($row['id']) || !is_numeric($row['id'])) {
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
74
        logger(array('return' => array(
Open commit View diff
74 logger(array('return' => array(
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
75
          array(
Open commit View diff
75 array(
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
76
            'type' => 'danger',
Open commit View diff
76 'type' => 'danger',
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
77
            'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
77 'log' => array(__FUNCTION__, $_action, $_data_log),
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
78
            'msg' => 'access_denied'
Open commit View diff
78 'msg' => 'access_denied'
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
79
          )
Open commit View diff
79 )
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
80
        )));
Open commit View diff
80 )));
andryyy about 6 years ago b93371c

[Web] Add smtp and header from to quarantine items, add more info to qhandler, allow to open qhandler links from qitem details

Full commit hash
b93371ca0aaf8cb416f1952351d52ffd46ad8091
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
81
        return false;
Open commit View diff
81 return false;
andryyy over 7 years ago e140979

[Web] Add quick release/delete functions

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

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
83
      else {
Open commit View diff
83 else {
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
84
        $stmt = $pdo->prepare('SELECT `msg`, `qid`, `sender`, `rcpt` FROM `quarantine` WHERE `id` = :id');
Open commit View diff
84 $stmt = $pdo->prepare('SELECT `msg`, `qid`, `sender`, `rcpt` FROM `quarantine` WHERE `id` = :id');
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
85
        $stmt->execute(array(':id' => $row['id']));
Open commit View diff
85 $stmt->execute(array(':id' => $row['id']));
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
86
        $detail_row = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
86 $detail_row = $stmt->fetch(PDO::FETCH_ASSOC);
Kristian Feldsam over 6 years ago 1e2bcfb

Quarantine release - fix when sender is empty (#3445)

Full commit hash
1e2bcfb946e93a4096068da7a582a78f84b988d0
Author
Kristian Feldsam <[email protected]>
Date
over 6 years ago
Selected line
87
        $sender = !empty($detail_row['sender']) ? $detail_row['sender'] : 'sender-unknown@rspamd';
Open commit View diff
87 $sender = !empty($detail_row['sender']) ? $detail_row['sender'] : 'sender-unknown@rspamd';
andryyy over 7 years ago e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
88
        if (!empty(gethostbynamel('postfix-mailcow'))) {
Open commit View diff
88 if (!empty(gethostbynamel('postfix-mailcow'))) {
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
89
          $postfix = 'postfix-mailcow';
Open commit View diff
89 $postfix = 'postfix-mailcow';
same change e140979

[Web] Add quick release/delete functions

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

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
91
        if (!empty(gethostbynamel('postfix'))) {
Open commit View diff
91 if (!empty(gethostbynamel('postfix'))) {
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
92
          $postfix = 'postfix';
Open commit View diff
92 $postfix = 'postfix';
same change e140979

[Web] Add quick release/delete functions

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

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
94
        else {
Open commit View diff
94 else {
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
95
          logger(array('return' => array(
Open commit View diff
95 logger(array('return' => array(
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
96
            array(
Open commit View diff
96 array(
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
97
              'type' => 'warning',
Open commit View diff
97 'type' => 'warning',
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
98
              'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
98 'log' => array(__FUNCTION__, $_action, $_data_log),
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
99
              'msg' => array('release_send_failed', 'Cannot determine Postfix host')
Open commit View diff
99 'msg' => array('release_send_failed', 'Cannot determine Postfix host')
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
100
            )
Open commit View diff
100 )
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
101
          )));
Open commit View diff
101 )));
andryyy about 6 years ago b93371c

[Web] Add smtp and header from to quarantine items, add more info to qhandler, allow to open qhandler links from qitem details

Full commit hash
b93371ca0aaf8cb416f1952351d52ffd46ad8091
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
102
        return false;
Open commit View diff
102 return false;
andryyy over 7 years ago e140979

[Web] Add quick release/delete functions

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

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
104
        try {
Open commit View diff
104 try {
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
105
          $release_format = $redis->Get('Q_RELEASE_FORMAT');
Open commit View diff
105 $release_format = $redis->Get('Q_RELEASE_FORMAT');
same change e140979

[Web] Add quick release/delete functions

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

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
107
        catch (RedisException $e) {
Open commit View diff
107 catch (RedisException $e) {
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
108
          logger(array('return' => array(
Open commit View diff
108 logger(array('return' => array(
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
109
            array(
Open commit View diff
109 array(
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
110
              'type' => 'danger',
Open commit View diff
110 'type' => 'danger',
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
111
              'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
111 'log' => array(__FUNCTION__, $_action, $_data_log),
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
112
              'msg' => array('redis_error', $e)
Open commit View diff
112 'msg' => array('redis_error', $e)
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
113
            )
Open commit View diff
113 )
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
114
          )));
Open commit View diff
114 )));
andryyy about 6 years ago b93371c

[Web] Add smtp and header from to quarantine items, add more info to qhandler, allow to open qhandler links from qitem details

Full commit hash
b93371ca0aaf8cb416f1952351d52ffd46ad8091
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
115
          return false;
Open commit View diff
115 return false;
andryyy over 7 years ago e140979

[Web] Add quick release/delete functions

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

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
117
        if ($release_format == 'attachment') {
Open commit View diff
117 if ($release_format == 'attachment') {
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
118
          try {
Open commit View diff
118 try {
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
119
            $mail = new PHPMailer(true);
Open commit View diff
119 $mail = new PHPMailer(true);
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
120
            $mail->isSMTP();
Open commit View diff
120 $mail->isSMTP();
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
121
            $mail->SMTPDebug = 0;
Open commit View diff
121 $mail->SMTPDebug = 0;
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
122
            $mail->SMTPOptions = array(
Open commit View diff
122 $mail->SMTPOptions = array(
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
123
              'ssl' => array(
Open commit View diff
123 'ssl' => array(
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
124
                  'verify_peer' => false,
Open commit View diff
124 'verify_peer' => false,
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
125
                  'verify_peer_name' => false,
Open commit View diff
125 'verify_peer_name' => false,
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
126
                  'allow_self_signed' => true
Open commit View diff
126 'allow_self_signed' => true
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
127
              )
Open commit View diff
127 )
same change e140979

[Web] Add quick release/delete functions

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

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
129
            if (!empty(gethostbynamel('postfix-mailcow'))) {
Open commit View diff
129 if (!empty(gethostbynamel('postfix-mailcow'))) {
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
130
              $postfix = 'postfix-mailcow';
Open commit View diff
130 $postfix = 'postfix-mailcow';
same change e140979

[Web] Add quick release/delete functions

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

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
132
            if (!empty(gethostbynamel('postfix'))) {
Open commit View diff
132 if (!empty(gethostbynamel('postfix'))) {
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
133
              $postfix = 'postfix';
Open commit View diff
133 $postfix = 'postfix';
same change e140979

[Web] Add quick release/delete functions

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

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
135
            else {
Open commit View diff
135 else {
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
136
              logger(array('return' => array(
Open commit View diff
136 logger(array('return' => array(
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
137
                array(
Open commit View diff
137 array(
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
138
                  'type' => 'warning',
Open commit View diff
138 'type' => 'warning',
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
139
                  'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
139 'log' => array(__FUNCTION__, $_action, $_data_log),
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
140
                  'msg' => array('release_send_failed', 'Cannot determine Postfix host')
Open commit View diff
140 'msg' => array('release_send_failed', 'Cannot determine Postfix host')
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
141
                )
Open commit View diff
141 )
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
142
              )));
Open commit View diff
142 )));
andryyy about 6 years ago b93371c

[Web] Add smtp and header from to quarantine items, add more info to qhandler, allow to open qhandler links from qitem details

Full commit hash
b93371ca0aaf8cb416f1952351d52ffd46ad8091
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
143
              return false;
Open commit View diff
143 return false;
andryyy over 7 years ago e140979

[Web] Add quick release/delete functions

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

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
145
            $mail->Host = $postfix;
Open commit View diff
145 $mail->Host = $postfix;
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
146
            $mail->Port = 590;
Open commit View diff
146 $mail->Port = 590;
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
147
            $mail->setFrom($sender);
Open commit View diff
147 $mail->setFrom($sender);
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
148
            $mail->CharSet = 'UTF-8';
Open commit View diff
148 $mail->CharSet = 'UTF-8';
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
149
            $mail->Subject = sprintf($lang['quarantine']['release_subject'], $detail_row['qid']);
Open commit View diff
149 $mail->Subject = sprintf($lang['quarantine']['release_subject'], $detail_row['qid']);
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
150
            $mail->addAddress($detail_row['rcpt']);
Open commit View diff
150 $mail->addAddress($detail_row['rcpt']);
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
151
            $mail->IsHTML(false);
Open commit View diff
151 $mail->IsHTML(false);
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
152
            $msg_tmpf = tempnam("/tmp", $detail_row['qid']);
Open commit View diff
152 $msg_tmpf = tempnam("/tmp", $detail_row['qid']);
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
153
            file_put_contents($msg_tmpf, $detail_row['msg']);
Open commit View diff
153 file_put_contents($msg_tmpf, $detail_row['msg']);
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
154
            $mail->addAttachment($msg_tmpf, $detail_row['qid'] . '.eml');
Open commit View diff
154 $mail->addAttachment($msg_tmpf, $detail_row['qid'] . '.eml');
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
155
            $mail->Body = sprintf($lang['quarantine']['release_body']);
Open commit View diff
155 $mail->Body = sprintf($lang['quarantine']['release_body']);
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
156
            $mail->send();
Open commit View diff
156 $mail->send();
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
157
            unlink($msg_tmpf);
Open commit View diff
157 unlink($msg_tmpf);
same change e140979

[Web] Add quick release/delete functions

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

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
159
          catch (phpmailerException $e) {
Open commit View diff
159 catch (phpmailerException $e) {
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
160
            unlink($msg_tmpf);
Open commit View diff
160 unlink($msg_tmpf);
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
161
            logger(array('return' => array(
Open commit View diff
161 logger(array('return' => array(
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
162
              array(
Open commit View diff
162 array(
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
163
                'type' => 'warning',
Open commit View diff
163 'type' => 'warning',
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
164
                'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
164 'log' => array(__FUNCTION__, $_action, $_data_log),
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
165
                'msg' => array('release_send_failed', $e->errorMessage())
Open commit View diff
165 'msg' => array('release_send_failed', $e->errorMessage())
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
166
              )
Open commit View diff
166 )
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
167
            )));
Open commit View diff
167 )));
andryyy about 6 years ago b93371c

[Web] Add smtp and header from to quarantine items, add more info to qhandler, allow to open qhandler links from qitem details

Full commit hash
b93371ca0aaf8cb416f1952351d52ffd46ad8091
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
168
            return false;
Open commit View diff
168 return false;
andryyy over 7 years ago e140979

[Web] Add quick release/delete functions

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

[Web] Add quick release/delete functions

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

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
171
        elseif ($release_format == 'raw') {
Open commit View diff
171 elseif ($release_format == 'raw') {
Marcel Schuster about 1 year ago d55f0fc

Update functions.quarantine.inc.php

Full commit hash
d55f0fc36618a41ae68a9475826d003ee11a89e7
Author
Marcel Schuster <[email protected]>
Date
about 1 year ago
Selected line
172
          $detail_row['msg'] = preg_replace('/^X-Spam-Flag: (.*)/m', 'X-Pre-Release-Spam-Flag: $1', $detail_row['msg']);
Open commit View diff
172 $detail_row['msg'] = preg_replace('/^X-Spam-Flag: (.*)/m', 'X-Pre-Release-Spam-Flag: $1', $detail_row['msg']);
andryyy over 7 years ago e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
173
          $postfix_talk = array(
Open commit View diff
173 $postfix_talk = array(
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
174
            array('220', 'HELO quarantine' . chr(10)),
Open commit View diff
174 array('220', 'HELO quarantine' . chr(10)),
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
175
            array('250', 'MAIL FROM: ' . $sender . chr(10)),
Open commit View diff
175 array('250', 'MAIL FROM: ' . $sender . chr(10)),
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
176
            array('250', 'RCPT TO: ' . $detail_row['rcpt'] . chr(10)),
Open commit View diff
176 array('250', 'RCPT TO: ' . $detail_row['rcpt'] . chr(10)),
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
177
            array('250', 'DATA' . chr(10)),
Open commit View diff
177 array('250', 'DATA' . chr(10)),
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
178
            array('354', $detail_row['msg'] . chr(10) . '.' . chr(10)),
Open commit View diff
178 array('354', $detail_row['msg'] . chr(10) . '.' . chr(10)),
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
179
            array('250', 'QUIT' . chr(10)),
Open commit View diff
179 array('250', 'QUIT' . chr(10)),
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
180
            array('221', '')
Open commit View diff
180 array('221', '')
same change e140979

[Web] Add quick release/delete functions

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

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
182
          // Thanks to https://stackoverflow.com/questions/6632399/given-an-email-as-raw-text-how-can-i-send-it-using-php
Open commit View diff
182 // Thanks to https://stackoverflow.com/questions/6632399/given-an-email-as-raw-text-how-can-i-send-it-using-php
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
183
          $smtp_connection = fsockopen($postfix, 590, $errno, $errstr, 1); 
Open commit View diff
183 $smtp_connection = fsockopen($postfix, 590, $errno, $errstr, 1);
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
184
          if (!$smtp_connection) {
Open commit View diff
184 if (!$smtp_connection) {
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
185
            logger(array('return' => array(
Open commit View diff
185 logger(array('return' => array(
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
186
              array(
Open commit View diff
186 array(
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
187
                'type' => 'warning',
Open commit View diff
187 'type' => 'warning',
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
188
                'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
188 'log' => array(__FUNCTION__, $_action, $_data_log),
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
189
                'msg' => 'Cannot connect to Postfix'
Open commit View diff
189 'msg' => 'Cannot connect to Postfix'
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
190
              )
Open commit View diff
190 )
same change e140979

[Web] Add quick release/delete functions

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

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
192
            return false;
Open commit View diff
192 return false;
same change e140979

[Web] Add quick release/delete functions

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

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
194
          for ($i=0; $i < count($postfix_talk); $i++) {
Open commit View diff
194 for ($i=0; $i < count($postfix_talk); $i++) {
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
195
            $smtp_resource = fgets($smtp_connection, 256); 
Open commit View diff
195 $smtp_resource = fgets($smtp_connection, 256);
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
196
            if (substr($smtp_resource, 0, 3) !== $postfix_talk[$i][0]) {
Open commit View diff
196 if (substr($smtp_resource, 0, 3) !== $postfix_talk[$i][0]) {
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
197
              $ret = substr($smtp_resource, 0, 3);
Open commit View diff
197 $ret = substr($smtp_resource, 0, 3);
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
198
              $ret = (empty($ret)) ? '-' : $ret;
Open commit View diff
198 $ret = (empty($ret)) ? '-' : $ret;
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
199
              logger(array('return' => array(
Open commit View diff
199 logger(array('return' => array(
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
200
                array(
Open commit View diff
200 array(
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
201
                  'type' => 'warning',
Open commit View diff
201 'type' => 'warning',
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
202
                  'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
202 'log' => array(__FUNCTION__, $_action, $_data_log),
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
203
                  'msg' => 'Postfix returned SMTP code ' . $smtp_resource . ', expected ' . $postfix_talk[$i][0]
Open commit View diff
203 'msg' => 'Postfix returned SMTP code ' . $smtp_resource . ', expected ' . $postfix_talk[$i][0]
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
204
                )
Open commit View diff
204 )
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
205
              )));
Open commit View diff
205 )));
andryyy about 6 years ago b93371c

[Web] Add smtp and header from to quarantine items, add more info to qhandler, allow to open qhandler links from qitem details

Full commit hash
b93371ca0aaf8cb416f1952351d52ffd46ad8091
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
206
            return false;
Open commit View diff
206 return false;
andryyy over 7 years ago e140979

[Web] Add quick release/delete functions

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

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
208
            if ($postfix_talk[$i][1] !== '')  {
Open commit View diff
208 if ($postfix_talk[$i][1] !== '') {
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
209
              fputs($smtp_connection, $postfix_talk[$i][1]);
Open commit View diff
209 fputs($smtp_connection, $postfix_talk[$i][1]);
same change e140979

[Web] Add quick release/delete functions

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

[Web] Add quick release/delete functions

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

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
212
          fclose($smtp_connection);
Open commit View diff
212 fclose($smtp_connection);
same change e140979

[Web] Add quick release/delete functions

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

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
214
        $stmt = $pdo->prepare("DELETE FROM `quarantine` WHERE id = :id");
Open commit View diff
214 $stmt = $pdo->prepare("DELETE FROM `quarantine` WHERE id = :id");
same change e140979

[Web] Add quick release/delete functions

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

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
216
          ':id' => $row['id']
Open commit View diff
216 ':id' => $row['id']
same change e140979

[Web] Add quick release/delete functions

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

[Web] Add quick release/delete functions

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

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
219
    logger(array('return' => array(
Open commit View diff
219 logger(array('return' => array(
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
220
      array(
Open commit View diff
220 array(
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
221
        'type' => 'success',
Open commit View diff
221 'type' => 'success',
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
222
        'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
222 'log' => array(__FUNCTION__, $_action, $_data_log),
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
223
        'msg' => array('item_released', $hash)
Open commit View diff
223 'msg' => array('item_released', $hash)
same change e140979

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
224
      )
Open commit View diff
224 )
same change e140979

[Web] Add quick release/delete functions

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

[Web] Add quick release/delete functions

Full commit hash
e140979aac39ac7ada477e068cb82122ddaef66f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
226
    break;
Open commit View diff
226 break;
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
227
    case 'delete':
Open commit View diff
227 case 'delete':
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
228
      if (!is_array($_data['id'])) {
Open commit View diff
228 if (!is_array($_data['id'])) {
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
229
        $ids = array();
Open commit View diff
229 $ids = array();
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
230
        $ids[] = $_data['id'];
Open commit View diff
230 $ids[] = $_data['id'];
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
231
      }
Open commit View diff
231 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
232
      else {
Open commit View diff
232 else {
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
233
        $ids = $_data['id'];
Open commit View diff
233 $ids = $_data['id'];
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
234
      }
Open commit View diff
234 }
André Peters over 8 years ago a500364

[Web] Mind was set to french, reverting to english

Full commit hash
a50036477eee7d80d58c3147c5b1dfbe013f4380
Author
André Peters <[email protected]>
Date
over 8 years ago
Selected line
235
      if (!isset($_SESSION['acl']['quarantine']) || $_SESSION['acl']['quarantine'] != "1" ) {
Open commit View diff
235 if (!isset($_SESSION['acl']['quarantine']) || $_SESSION['acl']['quarantine'] != "1" ) {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
236
        $_SESSION['return'][] = array(
Open commit View diff
236 $_SESSION['return'][] = array(
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
237
          'type' => 'danger',
Open commit View diff
237 'type' => 'danger',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
238
          'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
238 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
239
          'msg' => 'access_denied'
Open commit View diff
239 'msg' => 'access_denied'
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
240
        );
Open commit View diff
240 );
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
241
        return false;
Open commit View diff
241 return false;
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
242
      }
Open commit View diff
242 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
243
      foreach ($ids as $id) {
Open commit View diff
243 foreach ($ids as $id) {
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
244
        if (!is_numeric($id)) {
Open commit View diff
244 if (!is_numeric($id)) {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
245
          $_SESSION['return'][] = array(
Open commit View diff
245 $_SESSION['return'][] = array(
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
246
            'type' => 'danger',
Open commit View diff
246 'type' => 'danger',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
247
            'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
247 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
248
            'msg' => 'access_denied'
Open commit View diff
248 'msg' => 'access_denied'
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
249
          );
Open commit View diff
249 );
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
250
          continue;
Open commit View diff
250 continue;
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
251
        }
Open commit View diff
251 }
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
252
        $stmt = $pdo->prepare('SELECT `rcpt` FROM `quarantine` WHERE `id` = :id');
Open commit View diff
252 $stmt = $pdo->prepare('SELECT `rcpt` FROM `quarantine` WHERE `id` = :id');
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
253
        $stmt->execute(array(':id' => $id));
Open commit View diff
253 $stmt->execute(array(':id' => $id));
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
254
        $row = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
254 $row = $stmt->fetch(PDO::FETCH_ASSOC);
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
255
        if (!hasMailboxObjectAccess($_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role'], $row['rcpt']) && $_SESSION['mailcow_cc_role'] != 'admin') {
Open commit View diff
255 if (!hasMailboxObjectAccess($_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role'], $row['rcpt']) && $_SESSION['mailcow_cc_role'] != 'admin') {
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
256
          $_SESSION['return'][] = array(
Open commit View diff
256 $_SESSION['return'][] = array(
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
257
            'type' => 'danger',
Open commit View diff
257 'type' => 'danger',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
258
            'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
258 'log' => array(__FUNCTION__, $_action, $_data_log),
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
259
            'msg' => 'access_denied'
Open commit View diff
259 'msg' => 'access_denied'
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
260
          );
Open commit View diff
260 );
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
261
          continue;
Open commit View diff
261 continue;
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
262
        }
Open commit View diff
262 }
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
263
        else {
Open commit View diff
263 else {
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
264
          $stmt = $pdo->prepare("DELETE FROM `quarantine` WHERE `id` = :id");
Open commit View diff
264 $stmt = $pdo->prepare("DELETE FROM `quarantine` WHERE `id` = :id");
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
265
          $stmt->execute(array(
Open commit View diff
265 $stmt->execute(array(
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
266
            ':id' => $id
Open commit View diff
266 ':id' => $id
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
267
          ));
Open commit View diff
267 ));
same change a11cce6

[Web] Fixes for BCC map input fields

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

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
269
        $_SESSION['return'][] = array(
Open commit View diff
269 $_SESSION['return'][] = array(
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
270
          'type' => 'success',
Open commit View diff
270 'type' => 'success',
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
271
          'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
271 'log' => array(__FUNCTION__, $_action, $_data_log),
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
272
          'msg' => array('item_deleted', $id)
Open commit View diff
272 'msg' => array('item_deleted', $id)
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
273
        );
Open commit View diff
273 );
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
274
      }
Open commit View diff
274 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
275
    break;
Open commit View diff
275 break;
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
276
    case 'edit':
Open commit View diff
276 case 'edit':
André Peters over 8 years ago a500364

[Web] Mind was set to french, reverting to english

Full commit hash
a50036477eee7d80d58c3147c5b1dfbe013f4380
Author
André Peters <[email protected]>
Date
over 8 years ago
Selected line
277
      if (!isset($_SESSION['acl']['quarantine']) || $_SESSION['acl']['quarantine'] != "1" ) {
Open commit View diff
277 if (!isset($_SESSION['acl']['quarantine']) || $_SESSION['acl']['quarantine'] != "1" ) {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
278
        $_SESSION['return'][] = array(
Open commit View diff
278 $_SESSION['return'][] = array(
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
279
          'type' => 'danger',
Open commit View diff
279 'type' => 'danger',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
280
          'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
280 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
281
          'msg' => 'access_denied'
Open commit View diff
281 'msg' => 'access_denied'
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
282
        );
Open commit View diff
282 );
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
283
        return false;
Open commit View diff
283 return false;
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
284
      }
Open commit View diff
284 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
285
      // Edit settings
Open commit View diff
285 // Edit settings
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
286
      if ($_data['action'] == 'settings') {
Open commit View diff
286 if ($_data['action'] == 'settings') {
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
287
        if ($_SESSION['mailcow_cc_role'] != "admin") {
Open commit View diff
287 if ($_SESSION['mailcow_cc_role'] != "admin") {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
288
          $_SESSION['return'][] = array(
Open commit View diff
288 $_SESSION['return'][] = array(
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
289
            'type' => 'danger',
Open commit View diff
289 'type' => 'danger',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
290
            'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
290 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
291
            'msg' => 'access_denied'
Open commit View diff
291 'msg' => 'access_denied'
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
292
          );
Open commit View diff
292 );
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
293
          return false;
Open commit View diff
293 return false;
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
294
        }
Open commit View diff
294 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
295
        $retention_size = $_data['retention_size'];
Open commit View diff
295 $retention_size = $_data['retention_size'];
andryyy over 7 years ago 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
296
        if ($_data['release_format'] == 'attachment' || $_data['release_format'] == 'raw') {
Open commit View diff
296 if ($_data['release_format'] == 'attachment' || $_data['release_format'] == 'raw') {
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
297
          $release_format = $_data['release_format'];
Open commit View diff
297 $release_format = $_data['release_format'];
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
298
        }
Open commit View diff
298 }
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
299
        else {
Open commit View diff
299 else {
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
300
          $release_format = 'raw';
Open commit View diff
300 $release_format = 'raw';
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
301
        }
Open commit View diff
301 }
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
302
        $max_size = $_data['max_size'];
Open commit View diff
302 $max_size = $_data['max_size'];
andryyy over 5 years ago 6c697f3

[Web, Quarantine] Allow to set the max score of a message up to which a quarantine notification will be sent

Full commit hash
6c697f3f3f1ad54c242a8f06748025ebc0e5dda1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
303
        if ($_data['max_score'] == "") {
Open commit View diff
303 if ($_data['max_score'] == "") {
same change 6c697f3

[Web, Quarantine] Allow to set the max score of a message up to which a quarantine notification will be sent

Full commit hash
6c697f3f3f1ad54c242a8f06748025ebc0e5dda1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
304
          $max_score = '';
Open commit View diff
304 $max_score = '';
same change 6c697f3

[Web, Quarantine] Allow to set the max score of a message up to which a quarantine notification will be sent

Full commit hash
6c697f3f3f1ad54c242a8f06748025ebc0e5dda1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
305
        }
Open commit View diff
305 }
same change 6c697f3

[Web, Quarantine] Allow to set the max score of a message up to which a quarantine notification will be sent

Full commit hash
6c697f3f3f1ad54c242a8f06748025ebc0e5dda1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
306
        else {
Open commit View diff
306 else {
same change 6c697f3

[Web, Quarantine] Allow to set the max score of a message up to which a quarantine notification will be sent

Full commit hash
6c697f3f3f1ad54c242a8f06748025ebc0e5dda1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
307
          $max_score = floatval($_data['max_score']);
Open commit View diff
307 $max_score = floatval($_data['max_score']);
same change 6c697f3

[Web, Quarantine] Allow to set the max score of a message up to which a quarantine notification will be sent

Full commit hash
6c697f3f3f1ad54c242a8f06748025ebc0e5dda1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
308
        }
Open commit View diff
308 }
andryyy about 7 years ago 176f2a3

[Web] Allow to set max_age for quarantine items

Full commit hash
176f2a3f34f6a028b22172b2803b92eacc314379
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
309
        $max_age = intval($_data['max_age']);
Open commit View diff
309 $max_age = intval($_data['max_age']);
andryyy over 7 years ago 07392b7

[Watchdog] Use stackoverflow.com for DNS check

Full commit hash
07392b7437cddbbe937c259bc91bbb1267c93ca2
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
310
        $subject = $_data['subject'];
Open commit View diff
310 $subject = $_data['subject'];
andryyy over 6 years ago 157d257

[Web] Complain about non-email email fields

Full commit hash
157d2579e486adb9e29bc2fb78b011bb3d5051fb
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
311
        if (!filter_var($_data['bcc'], FILTER_VALIDATE_EMAIL)) {
Open commit View diff
311 if (!filter_var($_data['bcc'], FILTER_VALIDATE_EMAIL)) {
same change 157d257

[Web] Complain about non-email email fields

Full commit hash
157d2579e486adb9e29bc2fb78b011bb3d5051fb
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
312
          $bcc = '';
Open commit View diff
312 $bcc = '';
andryyy over 6 years ago 12b0140

[Web] Allow to set bcc for quarantine messages

Full commit hash
12b014082d2be691481d04d6686dc6bfcfef2f37
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
313
        }
Open commit View diff
313 }
same change 12b0140

[Web] Allow to set bcc for quarantine messages

Full commit hash
12b014082d2be691481d04d6686dc6bfcfef2f37
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
314
        else {
Open commit View diff
314 else {
andryyy over 6 years ago 157d257

[Web] Complain about non-email email fields

Full commit hash
157d2579e486adb9e29bc2fb78b011bb3d5051fb
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
315
          $bcc = $_data['bcc'];
Open commit View diff
315 $bcc = $_data['bcc'];
andryyy over 6 years ago 12b0140

[Web] Allow to set bcc for quarantine messages

Full commit hash
12b014082d2be691481d04d6686dc6bfcfef2f37
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
316
        }
Open commit View diff
316 }
andryyy about 6 years ago 6c92688

[Quarantine] Allow to redirect all quarantine messages to a specific address

Full commit hash
6c92688ff682e9e2b7ef1cea64dc8c7369f0702f
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
317
        if (!filter_var($_data['redirect'], FILTER_VALIDATE_EMAIL)) {
Open commit View diff
317 if (!filter_var($_data['redirect'], FILTER_VALIDATE_EMAIL)) {
same change 6c92688

[Quarantine] Allow to redirect all quarantine messages to a specific address

Full commit hash
6c92688ff682e9e2b7ef1cea64dc8c7369f0702f
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
318
          $redirect = '';
Open commit View diff
318 $redirect = '';
same change 6c92688

[Quarantine] Allow to redirect all quarantine messages to a specific address

Full commit hash
6c92688ff682e9e2b7ef1cea64dc8c7369f0702f
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
319
        }
Open commit View diff
319 }
same change 6c92688

[Quarantine] Allow to redirect all quarantine messages to a specific address

Full commit hash
6c92688ff682e9e2b7ef1cea64dc8c7369f0702f
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
320
        else {
Open commit View diff
320 else {
same change 6c92688

[Quarantine] Allow to redirect all quarantine messages to a specific address

Full commit hash
6c92688ff682e9e2b7ef1cea64dc8c7369f0702f
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
321
          $redirect = $_data['redirect'];
Open commit View diff
321 $redirect = $_data['redirect'];
same change 6c92688

[Quarantine] Allow to redirect all quarantine messages to a specific address

Full commit hash
6c92688ff682e9e2b7ef1cea64dc8c7369f0702f
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
322
        }
Open commit View diff
322 }
andryyy almost 7 years ago 62a386f

[Web] Remove invalid chars from sender for quota and quarantine notifications

Full commit hash
62a386f94e4c17b49a661b57a65ea90a8e8b1054
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
323
        if (!filter_var($_data['sender'], FILTER_VALIDATE_EMAIL)) {
Open commit View diff
323 if (!filter_var($_data['sender'], FILTER_VALIDATE_EMAIL)) {
same change 62a386f

[Web] Remove invalid chars from sender for quota and quarantine notifications

Full commit hash
62a386f94e4c17b49a661b57a65ea90a8e8b1054
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
324
          $sender = '';
Open commit View diff
324 $sender = '';
same change 62a386f

[Web] Remove invalid chars from sender for quota and quarantine notifications

Full commit hash
62a386f94e4c17b49a661b57a65ea90a8e8b1054
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
325
        }
Open commit View diff
325 }
andryyy almost 7 years ago 3124226

[Web] Fix for broken setting in quarantine (sender)

Full commit hash
3124226607f67abbcbfcdb59048705763eea37ec
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
326
        else {
Open commit View diff
326 else {
same change 3124226

[Web] Fix for broken setting in quarantine (sender)

Full commit hash
3124226607f67abbcbfcdb59048705763eea37ec
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
327
          $sender = $_data['sender'];
Open commit View diff
327 $sender = $_data['sender'];
same change 3124226

[Web] Fix for broken setting in quarantine (sender)

Full commit hash
3124226607f67abbcbfcdb59048705763eea37ec
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
328
        }
Open commit View diff
328 }
andryyy over 7 years ago 1e76400

[Web] Use INTL_IDNA_VARIANT_UTS46 in idn_to_ascii (thanks to @Knight1 !)

Full commit hash
1e764009bf2c71f6a18f8ef4e303f7a63cb5a653
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
329
        $html = $_data['html_tmpl'];
Open commit View diff
329 $html = $_data['html_tmpl'];
andryyy about 7 years ago 176f2a3

[Web] Allow to set max_age for quarantine items

Full commit hash
176f2a3f34f6a028b22172b2803b92eacc314379
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
330
        if ($max_age <= 0) {
Open commit View diff
330 if ($max_age <= 0) {
same change 176f2a3

[Web] Allow to set max_age for quarantine items

Full commit hash
176f2a3f34f6a028b22172b2803b92eacc314379
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
331
          $max_age = 365;
Open commit View diff
331 $max_age = 365;
same change 176f2a3

[Web] Allow to set max_age for quarantine items

Full commit hash
176f2a3f34f6a028b22172b2803b92eacc314379
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
332
        }
Open commit View diff
332 }
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
333
        $exclude_domains = (array)$_data['exclude_domains'];
Open commit View diff
333 $exclude_domains = (array)$_data['exclude_domains'];
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
334
        try {
Open commit View diff
334 try {
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
335
          $redis->Set('Q_RETENTION_SIZE', intval($retention_size));
Open commit View diff
335 $redis->Set('Q_RETENTION_SIZE', intval($retention_size));
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
336
          $redis->Set('Q_MAX_SIZE', intval($max_size));
Open commit View diff
336 $redis->Set('Q_MAX_SIZE', intval($max_size));
andryyy over 5 years ago 6c697f3

[Web, Quarantine] Allow to set the max score of a message up to which a quarantine notification will be sent

Full commit hash
6c697f3f3f1ad54c242a8f06748025ebc0e5dda1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
337
          $redis->Set('Q_MAX_SCORE', $max_score);
Open commit View diff
337 $redis->Set('Q_MAX_SCORE', $max_score);
andryyy about 7 years ago 176f2a3

[Web] Allow to set max_age for quarantine items

Full commit hash
176f2a3f34f6a028b22172b2803b92eacc314379
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
338
          $redis->Set('Q_MAX_AGE', $max_age);
Open commit View diff
338 $redis->Set('Q_MAX_AGE', $max_age);
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
339
          $redis->Set('Q_EXCLUDE_DOMAINS', json_encode($exclude_domains));
Open commit View diff
339 $redis->Set('Q_EXCLUDE_DOMAINS', json_encode($exclude_domains));
andryyy over 7 years ago 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
340
          $redis->Set('Q_RELEASE_FORMAT', $release_format);
Open commit View diff
340 $redis->Set('Q_RELEASE_FORMAT', $release_format);
andryyy over 7 years ago 07392b7

[Watchdog] Use stackoverflow.com for DNS check

Full commit hash
07392b7437cddbbe937c259bc91bbb1267c93ca2
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
341
          $redis->Set('Q_SENDER', $sender);
Open commit View diff
341 $redis->Set('Q_SENDER', $sender);
andryyy over 6 years ago 157d257

[Web] Complain about non-email email fields

Full commit hash
157d2579e486adb9e29bc2fb78b011bb3d5051fb
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
342
          $redis->Set('Q_BCC', $bcc);
Open commit View diff
342 $redis->Set('Q_BCC', $bcc);
andryyy about 6 years ago 6c92688

[Quarantine] Allow to redirect all quarantine messages to a specific address

Full commit hash
6c92688ff682e9e2b7ef1cea64dc8c7369f0702f
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
343
          $redis->Set('Q_REDIRECT', $redirect);
Open commit View diff
343 $redis->Set('Q_REDIRECT', $redirect);
andryyy over 7 years ago 635e694

[Web] Fix quarantine subject

Full commit hash
635e694ffaa01921f07bc1fe1009ad526547ad52
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
344
          $redis->Set('Q_SUBJ', $subject);
Open commit View diff
344 $redis->Set('Q_SUBJ', $subject);
andryyy over 7 years ago 07392b7

[Watchdog] Use stackoverflow.com for DNS check

Full commit hash
07392b7437cddbbe937c259bc91bbb1267c93ca2
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
345
          $redis->Set('Q_HTML', $html);
Open commit View diff
345 $redis->Set('Q_HTML', $html);
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
346
        }
Open commit View diff
346 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
347
        catch (RedisException $e) {
Open commit View diff
347 catch (RedisException $e) {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
348
          $_SESSION['return'][] = array(
Open commit View diff
348 $_SESSION['return'][] = array(
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
349
            'type' => 'danger',
Open commit View diff
349 'type' => 'danger',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
350
            'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
350 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
351
            'msg' => array('redis_error', $e)
Open commit View diff
351 'msg' => array('redis_error', $e)
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
352
          );
Open commit View diff
352 );
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
353
          return false;
Open commit View diff
353 return false;
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
354
        }
Open commit View diff
354 }
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
355
        $_SESSION['return'][] = array(
Open commit View diff
355 $_SESSION['return'][] = array(
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
356
          'type' => 'success',
Open commit View diff
356 'type' => 'success',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
357
          'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
357 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
358
          'msg' => 'saved_settings'
Open commit View diff
358 'msg' => 'saved_settings'
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
359
        );
Open commit View diff
359 );
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
360
      }
Open commit View diff
360 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
361
      // Release item
Open commit View diff
361 // Release item
andryyy over 6 years ago 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
362
      elseif ($_data['action'] == 'release' || $_data['action'] == 'learnham') {
Open commit View diff
362 elseif ($_data['action'] == 'release' || $_data['action'] == 'learnham') {
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
363
        if (!is_array($_data['id'])) {
Open commit View diff
363 if (!is_array($_data['id'])) {
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
364
          $ids = array();
Open commit View diff
364 $ids = array();
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
365
          $ids[] = $_data['id'];
Open commit View diff
365 $ids[] = $_data['id'];
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
366
        }
Open commit View diff
366 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
367
        else {
Open commit View diff
367 else {
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
368
          $ids = $_data['id'];
Open commit View diff
368 $ids = $_data['id'];
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
369
        }
Open commit View diff
369 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
370
        foreach ($ids as $id) {
Open commit View diff
370 foreach ($ids as $id) {
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
371
          if (!is_numeric($id)) {
Open commit View diff
371 if (!is_numeric($id)) {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
372
            $_SESSION['return'][] = array(
Open commit View diff
372 $_SESSION['return'][] = array(
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
373
              'type' => 'danger',
Open commit View diff
373 'type' => 'danger',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
374
              'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
374 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
375
              'msg' => 'access_denied'
Open commit View diff
375 'msg' => 'access_denied'
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
376
            );
Open commit View diff
376 );
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
377
            continue;
Open commit View diff
377 continue;
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
378
          }
Open commit View diff
378 }
andryyy over 5 years ago b9a8b8a

[Web] More custom_params

Full commit hash
b9a8b8a3e79646409f91e2cdcd09ca44752cb5f5
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
379
          $stmt = $pdo->prepare('SELECT `msg`, `action`, `qid`, `sender`, `rcpt` FROM `quarantine` WHERE `id` = :id');
Open commit View diff
379 $stmt = $pdo->prepare('SELECT `msg`, `action`, `qid`, `sender`, `rcpt` FROM `quarantine` WHERE `id` = :id');
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
380
          $stmt->execute(array(':id' => $id));
Open commit View diff
380 $stmt->execute(array(':id' => $id));
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
381
          $row = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
381 $row = $stmt->fetch(PDO::FETCH_ASSOC);
andryyy over 5 years ago b9a8b8a

[Web] More custom_params

Full commit hash
b9a8b8a3e79646409f91e2cdcd09ca44752cb5f5
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
382
          if (!hasMailboxObjectAccess($_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role'], $row['rcpt']) && $_SESSION['mailcow_cc_role'] != 'admin' || empty($row['rcpt'])) {
Open commit View diff
382 if (!hasMailboxObjectAccess($_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role'], $row['rcpt']) && $_SESSION['mailcow_cc_role'] != 'admin' || empty($row['rcpt'])) {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
383
            $_SESSION['return'][] = array(
Open commit View diff
383 $_SESSION['return'][] = array(
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
384
              'type' => 'danger',
Open commit View diff
384 'type' => 'danger',
andryyy over 5 years ago b9a8b8a

[Web] More custom_params

Full commit hash
b9a8b8a3e79646409f91e2cdcd09ca44752cb5f5
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
385
              'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
385 'log' => array(__FUNCTION__, $_action, $_data_log),
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
386
              'msg' => 'access_denied'
Open commit View diff
386 'msg' => 'access_denied'
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
387
            );
Open commit View diff
387 );
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
388
            continue;
Open commit View diff
388 continue;
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
389
          }
Open commit View diff
389 }
Kristian Feldsam over 6 years ago 1e2bcfb

Quarantine release - fix when sender is empty (#3445)

Full commit hash
1e2bcfb946e93a4096068da7a582a78f84b988d0
Author
Kristian Feldsam <[email protected]>
Date
over 6 years ago
Selected line
390
          $sender = !empty($row['sender']) ? $row['sender'] : 'sender-unknown@rspamd';
Open commit View diff
390 $sender = !empty($row['sender']) ? $row['sender'] : 'sender-unknown@rspamd';
andryyy over 7 years ago 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
391
          if (!empty(gethostbynamel('postfix-mailcow'))) {
Open commit View diff
391 if (!empty(gethostbynamel('postfix-mailcow'))) {
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
392
            $postfix = 'postfix-mailcow';
Open commit View diff
392 $postfix = 'postfix-mailcow';
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
393
          }
Open commit View diff
393 }
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
394
          if (!empty(gethostbynamel('postfix'))) {
Open commit View diff
394 if (!empty(gethostbynamel('postfix'))) {
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
395
            $postfix = 'postfix';
Open commit View diff
395 $postfix = 'postfix';
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
396
          }
Open commit View diff
396 }
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
397
          else {
Open commit View diff
397 else {
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
398
            $_SESSION['return'][] = array(
Open commit View diff
398 $_SESSION['return'][] = array(
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
399
              'type' => 'warning',
Open commit View diff
399 'type' => 'warning',
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
400
              'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
400 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
401
              'msg' => array('release_send_failed', 'Cannot determine Postfix host')
Open commit View diff
401 'msg' => array('release_send_failed', 'Cannot determine Postfix host')
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
402
            );
Open commit View diff
402 );
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
403
            continue;
Open commit View diff
403 continue;
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
404
          }
Open commit View diff
404 }
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
405
          try {
Open commit View diff
405 try {
andryyy over 7 years ago 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
406
            $release_format = $redis->Get('Q_RELEASE_FORMAT');
Open commit View diff
406 $release_format = $redis->Get('Q_RELEASE_FORMAT');
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
407
          }
Open commit View diff
407 }
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
408
          catch (RedisException $e) {
Open commit View diff
408 catch (RedisException $e) {
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
409
            $_SESSION['return'][] = array(
Open commit View diff
409 $_SESSION['return'][] = array(
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
410
              'type' => 'danger',
Open commit View diff
410 'type' => 'danger',
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
411
              'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
411 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
412
              'msg' => array('redis_error', $e)
Open commit View diff
412 'msg' => array('redis_error', $e)
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
413
            );
Open commit View diff
413 );
andryyy over 7 years ago 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
414
            return false;
Open commit View diff
414 return false;
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
415
          }
Open commit View diff
415 }
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
416
          if ($release_format == 'attachment') {
Open commit View diff
416 if ($release_format == 'attachment') {
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
417
            try {
Open commit View diff
417 try {
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
418
              $mail = new PHPMailer(true);
Open commit View diff
418 $mail = new PHPMailer(true);
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
419
              $mail->isSMTP();
Open commit View diff
419 $mail->isSMTP();
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
420
              $mail->SMTPDebug = 0;
Open commit View diff
420 $mail->SMTPDebug = 0;
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
421
              $mail->SMTPOptions = array(
Open commit View diff
421 $mail->SMTPOptions = array(
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
422
                'ssl' => array(
Open commit View diff
422 'ssl' => array(
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
423
                    'verify_peer' => false,
Open commit View diff
423 'verify_peer' => false,
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
424
                    'verify_peer_name' => false,
Open commit View diff
424 'verify_peer_name' => false,
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
425
                    'allow_self_signed' => true
Open commit View diff
425 'allow_self_signed' => true
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
426
                )
Open commit View diff
426 )
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
427
              );
Open commit View diff
427 );
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
428
              if (!empty(gethostbynamel('postfix-mailcow'))) {
Open commit View diff
428 if (!empty(gethostbynamel('postfix-mailcow'))) {
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
429
                $postfix = 'postfix-mailcow';
Open commit View diff
429 $postfix = 'postfix-mailcow';
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
430
              }
Open commit View diff
430 }
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
431
              if (!empty(gethostbynamel('postfix'))) {
Open commit View diff
431 if (!empty(gethostbynamel('postfix'))) {
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
432
                $postfix = 'postfix';
Open commit View diff
432 $postfix = 'postfix';
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
433
              }
Open commit View diff
433 }
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
434
              else {
Open commit View diff
434 else {
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
435
                $_SESSION['return'][] = array(
Open commit View diff
435 $_SESSION['return'][] = array(
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
436
                  'type' => 'warning',
Open commit View diff
436 'type' => 'warning',
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
437
                  'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
437 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
438
                  'msg' => array('release_send_failed', 'Cannot determine Postfix host')
Open commit View diff
438 'msg' => array('release_send_failed', 'Cannot determine Postfix host')
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
439
                );
Open commit View diff
439 );
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
440
                continue;
Open commit View diff
440 continue;
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
441
              }
Open commit View diff
441 }
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
442
              $mail->Host = $postfix;
Open commit View diff
442 $mail->Host = $postfix;
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
443
              $mail->Port = 590;
Open commit View diff
443 $mail->Port = 590;
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
444
              $mail->setFrom($sender);
Open commit View diff
444 $mail->setFrom($sender);
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
445
              $mail->CharSet = 'UTF-8';
Open commit View diff
445 $mail->CharSet = 'UTF-8';
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
446
              $mail->Subject = sprintf($lang['quarantine']['release_subject'], $row['qid']);
Open commit View diff
446 $mail->Subject = sprintf($lang['quarantine']['release_subject'], $row['qid']);
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
447
              $mail->addAddress($row['rcpt']);
Open commit View diff
447 $mail->addAddress($row['rcpt']);
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
448
              $mail->IsHTML(false);
Open commit View diff
448 $mail->IsHTML(false);
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
449
              $msg_tmpf = tempnam("/tmp", $row['qid']);
Open commit View diff
449 $msg_tmpf = tempnam("/tmp", $row['qid']);
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
450
              file_put_contents($msg_tmpf, $row['msg']);
Open commit View diff
450 file_put_contents($msg_tmpf, $row['msg']);
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
451
              $mail->addAttachment($msg_tmpf, $row['qid'] . '.eml');
Open commit View diff
451 $mail->addAttachment($msg_tmpf, $row['qid'] . '.eml');
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
452
              $mail->Body = sprintf($lang['quarantine']['release_body']);
Open commit View diff
452 $mail->Body = sprintf($lang['quarantine']['release_body']);
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
453
              $mail->send();
Open commit View diff
453 $mail->send();
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
454
              unlink($msg_tmpf);
Open commit View diff
454 unlink($msg_tmpf);
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
455
            }
Open commit View diff
455 }
andryyy over 7 years ago 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
456
            catch (phpmailerException $e) {
Open commit View diff
456 catch (phpmailerException $e) {
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
457
              unlink($msg_tmpf);
Open commit View diff
457 unlink($msg_tmpf);
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
458
              $_SESSION['return'][] = array(
Open commit View diff
458 $_SESSION['return'][] = array(
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
459
                'type' => 'warning',
Open commit View diff
459 'type' => 'warning',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
460
                'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
460 'log' => array(__FUNCTION__, $_action, $_data_log),
andryyy over 7 years ago 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
461
                'msg' => array('release_send_failed', $e->errorMessage())
Open commit View diff
461 'msg' => array('release_send_failed', $e->errorMessage())
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
462
              );
Open commit View diff
462 );
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
463
              continue;
Open commit View diff
463 continue;
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
464
            }
Open commit View diff
464 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
465
          }
Open commit View diff
465 }
andryyy over 7 years ago 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
466
          elseif ($release_format == 'raw') {
Open commit View diff
466 elseif ($release_format == 'raw') {
Marcel Schuster about 1 year ago d55f0fc

Update functions.quarantine.inc.php

Full commit hash
d55f0fc36618a41ae68a9475826d003ee11a89e7
Author
Marcel Schuster <[email protected]>
Date
about 1 year ago
Selected line
467
            $row['msg'] = preg_replace('/^X-Spam-Flag: (.*)/m', 'X-Pre-Release-Spam-Flag: $1', $row['msg']);
Open commit View diff
467 $row['msg'] = preg_replace('/^X-Spam-Flag: (.*)/m', 'X-Pre-Release-Spam-Flag: $1', $row['msg']);
andryyy over 7 years ago 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
468
            $postfix_talk = array(
Open commit View diff
468 $postfix_talk = array(
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
469
              array('220', 'HELO quarantine' . chr(10)),
Open commit View diff
469 array('220', 'HELO quarantine' . chr(10)),
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
470
              array('250', 'MAIL FROM: ' . $sender . chr(10)),
Open commit View diff
470 array('250', 'MAIL FROM: ' . $sender . chr(10)),
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
471
              array('250', 'RCPT TO: ' . $row['rcpt'] . chr(10)),
Open commit View diff
471 array('250', 'RCPT TO: ' . $row['rcpt'] . chr(10)),
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
472
              array('250', 'DATA' . chr(10)),
Open commit View diff
472 array('250', 'DATA' . chr(10)),
andryyy over 6 years ago 7fed117

[Web] Fix quarantine for sneaky dots, also fixes #3263

Full commit hash
7fed117aacad722192ed027486339ec601371450
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
473
              array('354', str_replace("\n.", '', $row['msg']) . chr(10) . '.' . chr(10)),
Open commit View diff
473 array('354', str_replace("\n.", '', $row['msg']) . chr(10) . '.' . chr(10)),
andryyy over 7 years ago 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
474
              array('250', 'QUIT' . chr(10)),
Open commit View diff
474 array('250', 'QUIT' . chr(10)),
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
475
              array('221', '')
Open commit View diff
475 array('221', '')
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
476
            );
Open commit View diff
476 );
andryyy over 7 years ago 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
477
            // Thanks to https://stackoverflow.com/questions/6632399/given-an-email-as-raw-text-how-can-i-send-it-using-php
Open commit View diff
477 // Thanks to https://stackoverflow.com/questions/6632399/given-an-email-as-raw-text-how-can-i-send-it-using-php
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
478
            $smtp_connection = fsockopen($postfix, 590, $errno, $errstr, 1); 
Open commit View diff
478 $smtp_connection = fsockopen($postfix, 590, $errno, $errstr, 1);
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
479
            if (!$smtp_connection) {
Open commit View diff
479 if (!$smtp_connection) {
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
480
              $_SESSION['return'][] = array(
Open commit View diff
480 $_SESSION['return'][] = array(
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
481
                'type' => 'warning',
Open commit View diff
481 'type' => 'warning',
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
482
                'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
482 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
483
                'msg' => 'Cannot connect to Postfix'
Open commit View diff
483 'msg' => 'Cannot connect to Postfix'
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
484
              );
Open commit View diff
484 );
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
485
              return false;
Open commit View diff
485 return false;
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
486
            }
Open commit View diff
486 }
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
487
            for ($i=0; $i < count($postfix_talk); $i++) {
Open commit View diff
487 for ($i=0; $i < count($postfix_talk); $i++) {
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
488
              $smtp_resource = fgets($smtp_connection, 256); 
Open commit View diff
488 $smtp_resource = fgets($smtp_connection, 256);
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
489
              if (substr($smtp_resource, 0, 3) !== $postfix_talk[$i][0]) {
Open commit View diff
489 if (substr($smtp_resource, 0, 3) !== $postfix_talk[$i][0]) {
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
490
                $ret = substr($smtp_resource, 0, 3);
Open commit View diff
490 $ret = substr($smtp_resource, 0, 3);
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
491
                $ret = (empty($ret)) ? '-' : $ret;
Open commit View diff
491 $ret = (empty($ret)) ? '-' : $ret;
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
492
                $_SESSION['return'][] = array(
Open commit View diff
492 $_SESSION['return'][] = array(
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
493
                  'type' => 'warning',
Open commit View diff
493 'type' => 'warning',
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
494
                  'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
494 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
495
                  'msg' => 'Postfix returned SMTP code ' . $smtp_resource . ', expected ' . $postfix_talk[$i][0]
Open commit View diff
495 'msg' => 'Postfix returned SMTP code ' . $smtp_resource . ', expected ' . $postfix_talk[$i][0]
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
496
                );
Open commit View diff
496 );
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
497
                return false;
Open commit View diff
497 return false;
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
498
              }
Open commit View diff
498 }
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
499
              if ($postfix_talk[$i][1] !== '')  {
Open commit View diff
499 if ($postfix_talk[$i][1] !== '') {
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
500
                fputs($smtp_connection, $postfix_talk[$i][1]);
Open commit View diff
500 fputs($smtp_connection, $postfix_talk[$i][1]);
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
501
              }
Open commit View diff
501 }
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
502
            }
Open commit View diff
502 }
same change 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
503
            fclose($smtp_connection);
Open commit View diff
503 fclose($smtp_connection);
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
504
          }
Open commit View diff
504 }
andryyy over 6 years ago 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
505
          $stmt = $pdo->prepare("DELETE FROM `quarantine` WHERE `id` = :id");
Open commit View diff
505 $stmt = $pdo->prepare("DELETE FROM `quarantine` WHERE `id` = :id");
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
506
          $stmt->execute(array(
Open commit View diff
506 $stmt->execute(array(
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
507
            ':id' => $id
Open commit View diff
507 ':id' => $id
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
508
          ));
Open commit View diff
508 ));
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
509
          $_SESSION['return'][] = array(
Open commit View diff
509 $_SESSION['return'][] = array(
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
510
            'type' => 'success',
Open commit View diff
510 'type' => 'success',
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
511
            'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
511 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
512
            'msg' => array('item_released', $id)
Open commit View diff
512 'msg' => array('item_released', $id)
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
513
          );
Open commit View diff
513 );
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
514
          // Item was released and deleted from quarantine, now learning ham
Open commit View diff
514 // Item was released and deleted from quarantine, now learning ham
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
515
          $curl = curl_init();
Open commit View diff
515 $curl = curl_init();
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
516
          curl_setopt($curl, CURLOPT_UNIX_SOCKET_PATH, '/var/lib/rspamd/rspamd.sock');
Open commit View diff
516 curl_setopt($curl, CURLOPT_UNIX_SOCKET_PATH, '/var/lib/rspamd/rspamd.sock');
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
517
          curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
Open commit View diff
517 curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
518
          curl_setopt($curl, CURLOPT_POST, 1);
Open commit View diff
518 curl_setopt($curl, CURLOPT_POST, 1);
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
519
          curl_setopt($curl, CURLOPT_TIMEOUT, 30);
Open commit View diff
519 curl_setopt($curl, CURLOPT_TIMEOUT, 30);
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
520
          curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: text/plain'));
Open commit View diff
520 curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: text/plain'));
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
521
          curl_setopt($curl, CURLOPT_URL,"http://rspamd/learnham");
Open commit View diff
521 curl_setopt($curl, CURLOPT_URL,"http://rspamd/learnham");
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
522
          curl_setopt($curl, CURLOPT_POSTFIELDS, $row['msg']);
Open commit View diff
522 curl_setopt($curl, CURLOPT_POSTFIELDS, $row['msg']);
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
523
          $response = curl_exec($curl);
Open commit View diff
523 $response = curl_exec($curl);
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
524
          if (!curl_errno($curl)) {
Open commit View diff
524 if (!curl_errno($curl)) {
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
525
            $response = json_decode($response, true);
Open commit View diff
525 $response = json_decode($response, true);
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
526
            if (isset($response['error'])) {
Open commit View diff
526 if (isset($response['error'])) {
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
527
              if (stripos($response['error'], 'already learned') === false) {
Open commit View diff
527 if (stripos($response['error'], 'already learned') === false) {
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
528
                $_SESSION['return'][] = array(
Open commit View diff
528 $_SESSION['return'][] = array(
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
529
                  'type' => 'danger',
Open commit View diff
529 'type' => 'danger',
andryyy over 5 years ago b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
530
                  'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
530 'log' => array(__FUNCTION__, $_action, $_data_log),
andryyy over 6 years ago 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
531
                  'msg' => array('ham_learn_error', $response['error'])
Open commit View diff
531 'msg' => array('ham_learn_error', $response['error'])
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
532
                );
Open commit View diff
532 );
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
533
                continue;
Open commit View diff
533 continue;
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
534
              }
Open commit View diff
534 }
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
535
            }
Open commit View diff
535 }
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
536
            curl_close($curl);
Open commit View diff
536 curl_close($curl);
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
537
            $curl = curl_init();
Open commit View diff
537 $curl = curl_init();
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
538
            curl_setopt($curl, CURLOPT_UNIX_SOCKET_PATH, '/var/lib/rspamd/rspamd.sock');
Open commit View diff
538 curl_setopt($curl, CURLOPT_UNIX_SOCKET_PATH, '/var/lib/rspamd/rspamd.sock');
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
539
            curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
Open commit View diff
539 curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
540
            curl_setopt($curl, CURLOPT_POST, 1);
Open commit View diff
540 curl_setopt($curl, CURLOPT_POST, 1);
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
541
            curl_setopt($curl, CURLOPT_TIMEOUT, 30);
Open commit View diff
541 curl_setopt($curl, CURLOPT_TIMEOUT, 30);
andryyy over 5 years ago b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
542
            curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: text/plain', 'Flag: 11'));
Open commit View diff
542 curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: text/plain', 'Flag: 11'));
same change b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
543
            curl_setopt($curl, CURLOPT_URL,"http://rspamd/fuzzydel");
Open commit View diff
543 curl_setopt($curl, CURLOPT_URL,"http://rspamd/fuzzydel");
andryyy over 6 years ago 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
544
            curl_setopt($curl, CURLOPT_POSTFIELDS, $row['msg']);
Open commit View diff
544 curl_setopt($curl, CURLOPT_POSTFIELDS, $row['msg']);
andryyy over 5 years ago b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
545
            // It is most likely not a spam hash, so we ignore any error/warning response
Open commit View diff
545 // It is most likely not a spam hash, so we ignore any error/warning response
same change b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
546
            // $response = curl_exec($curl);
Open commit View diff
546 // $response = curl_exec($curl);
andryyy over 6 years ago 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
547
            if (!curl_errno($curl)) {
Open commit View diff
547 if (!curl_errno($curl)) {
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
548
              curl_close($curl);
Open commit View diff
548 curl_close($curl);
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
549
              $curl = curl_init();
Open commit View diff
549 $curl = curl_init();
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
550
              curl_setopt($curl, CURLOPT_UNIX_SOCKET_PATH, '/var/lib/rspamd/rspamd.sock');
Open commit View diff
550 curl_setopt($curl, CURLOPT_UNIX_SOCKET_PATH, '/var/lib/rspamd/rspamd.sock');
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
551
              curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
Open commit View diff
551 curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
552
              curl_setopt($curl, CURLOPT_POST, 1);
Open commit View diff
552 curl_setopt($curl, CURLOPT_POST, 1);
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
553
              curl_setopt($curl, CURLOPT_TIMEOUT, 30);
Open commit View diff
553 curl_setopt($curl, CURLOPT_TIMEOUT, 30);
andryyy over 5 years ago b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
554
              curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: text/plain', 'Flag: 13'));
Open commit View diff
554 curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: text/plain', 'Flag: 13'));
same change b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
555
              curl_setopt($curl, CURLOPT_URL,"http://rspamd/fuzzyadd");
Open commit View diff
555 curl_setopt($curl, CURLOPT_URL,"http://rspamd/fuzzyadd");
andryyy over 6 years ago 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
556
              curl_setopt($curl, CURLOPT_POSTFIELDS, $row['msg']);
Open commit View diff
556 curl_setopt($curl, CURLOPT_POSTFIELDS, $row['msg']);
andryyy over 5 years ago b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
557
              $response = curl_exec($curl);
Open commit View diff
557 $response = curl_exec($curl);
andryyy over 6 years ago 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
558
              curl_exec($curl);
Open commit View diff
558 curl_exec($curl);
andryyy over 5 years ago b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
559
              if (!curl_errno($curl)) {
Open commit View diff
559 if (!curl_errno($curl)) {
same change b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
560
                $response = json_decode($response, true);
Open commit View diff
560 $response = json_decode($response, true);
same change b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
561
                if (isset($response['error'])) {
Open commit View diff
561 if (isset($response['error'])) {
same change b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
562
                  if (stripos($response['error'], 'No content to generate fuzzy') === false) {
Open commit View diff
562 if (stripos($response['error'], 'No content to generate fuzzy') === false) {
same change b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
563
                    $_SESSION['return'][] = array(
Open commit View diff
563 $_SESSION['return'][] = array(
same change b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
564
                      'type' => 'warning',
Open commit View diff
564 'type' => 'warning',
same change b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
565
                      'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
565 'log' => array(__FUNCTION__, $_action, $_data_log),
same change b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
566
                      'msg' => array('fuzzy_learn_error', $response['error'])
Open commit View diff
566 'msg' => array('fuzzy_learn_error', $response['error'])
same change b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
567
                    );
Open commit View diff
567 );
same change b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
568
                  }
Open commit View diff
568 }
same change b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
569
                }
Open commit View diff
569 }
same change b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
570
              }
Open commit View diff
570 }
andryyy over 6 years ago 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
571
              curl_close($curl);
Open commit View diff
571 curl_close($curl);
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
572
              $_SESSION['return'][] = array(
Open commit View diff
572 $_SESSION['return'][] = array(
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
573
                'type' => 'success',
Open commit View diff
573 'type' => 'success',
andryyy over 5 years ago b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
574
                'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
574 'log' => array(__FUNCTION__, $_action, $_data_log),
andryyy over 6 years ago 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
575
                'msg' => array('learned_ham', $id)
Open commit View diff
575 'msg' => array('learned_ham', $id)
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
576
              );
Open commit View diff
576 );
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
577
              continue;
Open commit View diff
577 continue;
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
578
            }
Open commit View diff
578 }
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
579
            else {
Open commit View diff
579 else {
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
580
              curl_close($curl);
Open commit View diff
580 curl_close($curl);
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
581
              $_SESSION['return'][] = array(
Open commit View diff
581 $_SESSION['return'][] = array(
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
582
                'type' => 'danger',
Open commit View diff
582 'type' => 'danger',
andryyy over 5 years ago b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
583
                'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
583 'log' => array(__FUNCTION__, $_action, $_data_log),
andryyy over 6 years ago 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
584
                'msg' => array('ham_learn_error', 'Curl: ' . curl_strerror(curl_errno($curl)))
Open commit View diff
584 'msg' => array('ham_learn_error', 'Curl: ' . curl_strerror(curl_errno($curl)))
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
585
              );
Open commit View diff
585 );
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
586
              continue;
Open commit View diff
586 continue;
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
587
            }
Open commit View diff
587 }
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
588
            curl_close($curl);
Open commit View diff
588 curl_close($curl);
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
589
            $_SESSION['return'][] = array(
Open commit View diff
589 $_SESSION['return'][] = array(
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
590
              'type' => 'danger',
Open commit View diff
590 'type' => 'danger',
andryyy over 5 years ago b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
591
              'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
591 'log' => array(__FUNCTION__, $_action, $_data_log),
andryyy over 6 years ago 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
592
              'msg' => array('ham_learn_error', 'unknown')
Open commit View diff
592 'msg' => array('ham_learn_error', 'unknown')
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
593
            );
Open commit View diff
593 );
same change 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
594
            continue;
Open commit View diff
594 continue;
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
595
          }
Open commit View diff
595 }
andryyy over 6 years ago 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
596
          else {
Open commit View diff
596 else {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
597
            $_SESSION['return'][] = array(
Open commit View diff
597 $_SESSION['return'][] = array(
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
598
              'type' => 'danger',
Open commit View diff
598 'type' => 'danger',
andryyy over 5 years ago b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
599
              'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
599 'log' => array(__FUNCTION__, $_action, $_data_log),
andryyy over 6 years ago 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
600
              'msg' => array('ham_learn_error', 'Curl: ' . curl_strerror(curl_errno($curl)))
Open commit View diff
600 'msg' => array('ham_learn_error', 'Curl: ' . curl_strerror(curl_errno($curl)))
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
601
            );
Open commit View diff
601 );
andryyy over 6 years ago 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
602
            curl_close($curl);
Open commit View diff
602 curl_close($curl);
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
603
            continue;
Open commit View diff
603 continue;
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
604
          }
Open commit View diff
604 }
andryyy over 6 years ago 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
605
          curl_close($curl);
Open commit View diff
605 curl_close($curl);
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
606
          $_SESSION['return'][] = array(
Open commit View diff
606 $_SESSION['return'][] = array(
andryyy over 6 years ago 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
607
            'type' => 'danger',
Open commit View diff
607 'type' => 'danger',
andryyy over 5 years ago b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
608
            'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
608 'log' => array(__FUNCTION__, $_action, $_data_log),
andryyy over 6 years ago 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
609
            'msg' => array('ham_learn_error', 'unknown')
Open commit View diff
609 'msg' => array('ham_learn_error', 'unknown')
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
610
          );
Open commit View diff
610 );
andryyy over 6 years ago 868e9e3

[Web] Unlearn spam if released from quarantine, implements #3327

Full commit hash
868e9e39543232c1d5975ff8e73e168029244c28
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
611
          continue;
Open commit View diff
611 continue;
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

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

[Web] Fixes for BCC map input fields

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

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
614
      elseif ($_data['action'] == 'learnspam') {
Open commit View diff
614 elseif ($_data['action'] == 'learnspam') {
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
615
        if (!is_array($_data['id'])) {
Open commit View diff
615 if (!is_array($_data['id'])) {
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
616
          $ids = array();
Open commit View diff
616 $ids = array();
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
617
          $ids[] = $_data['id'];
Open commit View diff
617 $ids[] = $_data['id'];
same change a11cce6

[Web] Fixes for BCC map input fields

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

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
619
        else {
Open commit View diff
619 else {
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
620
          $ids = $_data['id'];
Open commit View diff
620 $ids = $_data['id'];
same change a11cce6

[Web] Fixes for BCC map input fields

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

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
622
        foreach ($ids as $id) {
Open commit View diff
622 foreach ($ids as $id) {
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
623
          if (!is_numeric($id)) {
Open commit View diff
623 if (!is_numeric($id)) {
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
624
            $_SESSION['return'][] = array(
Open commit View diff
624 $_SESSION['return'][] = array(
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
625
              'type' => 'danger',
Open commit View diff
625 'type' => 'danger',
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
626
              'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
626 'log' => array(__FUNCTION__, $_action, $_data_log),
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
627
              'msg' => 'access_denied'
Open commit View diff
627 'msg' => 'access_denied'
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
628
            );
Open commit View diff
628 );
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
629
            continue;
Open commit View diff
629 continue;
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
630
          }
Open commit View diff
630 }
andryyy over 5 years ago b9a8b8a

[Web] More custom_params

Full commit hash
b9a8b8a3e79646409f91e2cdcd09ca44752cb5f5
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
631
          $stmt = $pdo->prepare('SELECT `msg`, `rcpt`, `action` FROM `quarantine` WHERE `id` = :id');
Open commit View diff
631 $stmt = $pdo->prepare('SELECT `msg`, `rcpt`, `action` FROM `quarantine` WHERE `id` = :id');
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
632
          $stmt->execute(array(':id' => $id));
Open commit View diff
632 $stmt->execute(array(':id' => $id));
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
633
          $row = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
633 $row = $stmt->fetch(PDO::FETCH_ASSOC);
andryyy over 5 years ago b9a8b8a

[Web] More custom_params

Full commit hash
b9a8b8a3e79646409f91e2cdcd09ca44752cb5f5
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
634
          if (!hasMailboxObjectAccess($_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role'], $row['rcpt']) && $_SESSION['mailcow_cc_role'] != 'admin' || empty($row['rcpt'])) {
Open commit View diff
634 if (!hasMailboxObjectAccess($_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role'], $row['rcpt']) && $_SESSION['mailcow_cc_role'] != 'admin' || empty($row['rcpt'])) {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
635
            $_SESSION['return'][] = array(
Open commit View diff
635 $_SESSION['return'][] = array(
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
636
              'type' => 'danger',
Open commit View diff
636 'type' => 'danger',
andryyy over 5 years ago b9a8b8a

[Web] More custom_params

Full commit hash
b9a8b8a3e79646409f91e2cdcd09ca44752cb5f5
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
637
              'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
637 'log' => array(__FUNCTION__, $_action, $_data_log),
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
638
              'msg' => 'access_denied'
Open commit View diff
638 'msg' => 'access_denied'
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
639
            );
Open commit View diff
639 );
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
640
            continue;
Open commit View diff
640 continue;
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
641
          }
Open commit View diff
641 }
andryyy over 5 years ago b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
642
          $stmt = $pdo->prepare("DELETE FROM `quarantine` WHERE `id` = :id");
Open commit View diff
642 $stmt = $pdo->prepare("DELETE FROM `quarantine` WHERE `id` = :id");
same change b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
643
          $stmt->execute(array(
Open commit View diff
643 $stmt->execute(array(
same change b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
644
            ':id' => $id
Open commit View diff
644 ':id' => $id
same change b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
645
          ));
Open commit View diff
645 ));
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
646
          $curl = curl_init();
Open commit View diff
646 $curl = curl_init();
André almost 8 years ago 4396be2

[Rspamd] Place socket in _rspamd home and fix permissions

Full commit hash
4396be2938a7bc7571033d093fb9f81c453f4b1c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
647
          curl_setopt($curl, CURLOPT_UNIX_SOCKET_PATH, '/var/lib/rspamd/rspamd.sock');
Open commit View diff
647 curl_setopt($curl, CURLOPT_UNIX_SOCKET_PATH, '/var/lib/rspamd/rspamd.sock');
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
648
          curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
Open commit View diff
648 curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
649
          curl_setopt($curl, CURLOPT_POST, 1);
Open commit View diff
649 curl_setopt($curl, CURLOPT_POST, 1);
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
650
          curl_setopt($curl, CURLOPT_TIMEOUT, 30);
Open commit View diff
650 curl_setopt($curl, CURLOPT_TIMEOUT, 30);
André almost 8 years ago 4396be2

[Rspamd] Place socket in _rspamd home and fix permissions

Full commit hash
4396be2938a7bc7571033d093fb9f81c453f4b1c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
651
          curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: text/plain'));
Open commit View diff
651 curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: text/plain'));
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
652
          curl_setopt($curl, CURLOPT_URL,"http://rspamd/learnspam");
Open commit View diff
652 curl_setopt($curl, CURLOPT_URL,"http://rspamd/learnspam");
André almost 8 years ago 4396be2

[Rspamd] Place socket in _rspamd home and fix permissions

Full commit hash
4396be2938a7bc7571033d093fb9f81c453f4b1c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
653
          curl_setopt($curl, CURLOPT_POSTFIELDS, $row['msg']);
Open commit View diff
653 curl_setopt($curl, CURLOPT_POSTFIELDS, $row['msg']);
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
654
          $response = curl_exec($curl);
Open commit View diff
654 $response = curl_exec($curl);
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
655
          if (!curl_errno($curl)) {
Open commit View diff
655 if (!curl_errno($curl)) {
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
656
            $response = json_decode($response, true);
Open commit View diff
656 $response = json_decode($response, true);
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
657
            if (isset($response['error'])) {
Open commit View diff
657 if (isset($response['error'])) {
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
658
              if (stripos($response['error'], 'already learned') === false) {
Open commit View diff
658 if (stripos($response['error'], 'already learned') === false) {
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
659
                $_SESSION['return'][] = array(
Open commit View diff
659 $_SESSION['return'][] = array(
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
660
                  'type' => 'danger',
Open commit View diff
660 'type' => 'danger',
andryyy over 5 years ago b9a8b8a

[Web] More custom_params

Full commit hash
b9a8b8a3e79646409f91e2cdcd09ca44752cb5f5
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
661
                  'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
661 'log' => array(__FUNCTION__, $_action, $_data_log),
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
662
                  'msg' => array('spam_learn_error', $response['error'])
Open commit View diff
662 'msg' => array('spam_learn_error', $response['error'])
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
663
                );
Open commit View diff
663 );
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
664
                continue;
Open commit View diff
664 continue;
same change a11cce6

[Web] Fixes for BCC map input fields

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

[Web] Fixes for BCC map input fields

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

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
667
            curl_close($curl);
Open commit View diff
667 curl_close($curl);
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
668
            $curl = curl_init();
Open commit View diff
668 $curl = curl_init();
André almost 8 years ago 4396be2

[Rspamd] Place socket in _rspamd home and fix permissions

Full commit hash
4396be2938a7bc7571033d093fb9f81c453f4b1c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
669
            curl_setopt($curl, CURLOPT_UNIX_SOCKET_PATH, '/var/lib/rspamd/rspamd.sock');
Open commit View diff
669 curl_setopt($curl, CURLOPT_UNIX_SOCKET_PATH, '/var/lib/rspamd/rspamd.sock');
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
670
            curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
Open commit View diff
670 curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
671
            curl_setopt($curl, CURLOPT_POST, 1);
Open commit View diff
671 curl_setopt($curl, CURLOPT_POST, 1);
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
672
            curl_setopt($curl, CURLOPT_TIMEOUT, 30);
Open commit View diff
672 curl_setopt($curl, CURLOPT_TIMEOUT, 30);
andryyy over 5 years ago b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
673
            curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: text/plain', 'Flag: 13'));
Open commit View diff
673 curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: text/plain', 'Flag: 13'));
same change b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
674
            curl_setopt($curl, CURLOPT_URL,"http://rspamd/fuzzydel");
Open commit View diff
674 curl_setopt($curl, CURLOPT_URL,"http://rspamd/fuzzydel");
André almost 8 years ago 4396be2

[Rspamd] Place socket in _rspamd home and fix permissions

Full commit hash
4396be2938a7bc7571033d093fb9f81c453f4b1c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
675
            curl_setopt($curl, CURLOPT_POSTFIELDS, $row['msg']);
Open commit View diff
675 curl_setopt($curl, CURLOPT_POSTFIELDS, $row['msg']);
andryyy over 5 years ago b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
676
            // It is most likely not a spam hash, so we ignore any error/warning response
Open commit View diff
676 // It is most likely not a spam hash, so we ignore any error/warning response
same change b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
677
            // $response = curl_exec($curl);
Open commit View diff
677 // $response = curl_exec($curl);
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
678
            if (!curl_errno($curl)) {
Open commit View diff
678 if (!curl_errno($curl)) {
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
679
              curl_close($curl);
Open commit View diff
679 curl_close($curl);
andryyy over 6 years ago 70e9247

[Web] Deleted hashes previously learned

Full commit hash
70e92472cbf59403f5cff4a1d9754432ea11e311
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
680
              $curl = curl_init();
Open commit View diff
680 $curl = curl_init();
same change 70e9247

[Web] Deleted hashes previously learned

Full commit hash
70e92472cbf59403f5cff4a1d9754432ea11e311
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
681
              curl_setopt($curl, CURLOPT_UNIX_SOCKET_PATH, '/var/lib/rspamd/rspamd.sock');
Open commit View diff
681 curl_setopt($curl, CURLOPT_UNIX_SOCKET_PATH, '/var/lib/rspamd/rspamd.sock');
same change 70e9247

[Web] Deleted hashes previously learned

Full commit hash
70e92472cbf59403f5cff4a1d9754432ea11e311
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
682
              curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
Open commit View diff
682 curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
same change 70e9247

[Web] Deleted hashes previously learned

Full commit hash
70e92472cbf59403f5cff4a1d9754432ea11e311
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
683
              curl_setopt($curl, CURLOPT_POST, 1);
Open commit View diff
683 curl_setopt($curl, CURLOPT_POST, 1);
same change 70e9247

[Web] Deleted hashes previously learned

Full commit hash
70e92472cbf59403f5cff4a1d9754432ea11e311
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
684
              curl_setopt($curl, CURLOPT_TIMEOUT, 30);
Open commit View diff
684 curl_setopt($curl, CURLOPT_TIMEOUT, 30);
andryyy over 5 years ago b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
685
              curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: text/plain', 'Flag: 11'));
Open commit View diff
685 curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: text/plain', 'Flag: 11'));
same change b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
686
              curl_setopt($curl, CURLOPT_URL,"http://rspamd/fuzzyadd");
Open commit View diff
686 curl_setopt($curl, CURLOPT_URL,"http://rspamd/fuzzyadd");
andryyy over 6 years ago 70e9247

[Web] Deleted hashes previously learned

Full commit hash
70e92472cbf59403f5cff4a1d9754432ea11e311
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
687
              curl_setopt($curl, CURLOPT_POSTFIELDS, $row['msg']);
Open commit View diff
687 curl_setopt($curl, CURLOPT_POSTFIELDS, $row['msg']);
andryyy over 5 years ago b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
688
              $response = curl_exec($curl);
Open commit View diff
688 $response = curl_exec($curl);
andryyy over 6 years ago 70e9247

[Web] Deleted hashes previously learned

Full commit hash
70e92472cbf59403f5cff4a1d9754432ea11e311
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
689
              curl_exec($curl);
Open commit View diff
689 curl_exec($curl);
andryyy over 5 years ago b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
690
              if (!curl_errno($curl)) {
Open commit View diff
690 if (!curl_errno($curl)) {
same change b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
691
                $response = json_decode($response, true);
Open commit View diff
691 $response = json_decode($response, true);
same change b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
692
                if (isset($response['error'])) {
Open commit View diff
692 if (isset($response['error'])) {
same change b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
693
                  if (stripos($response['error'], 'No content to generate fuzzy') === false) {
Open commit View diff
693 if (stripos($response['error'], 'No content to generate fuzzy') === false) {
same change b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
694
                    $_SESSION['return'][] = array(
Open commit View diff
694 $_SESSION['return'][] = array(
same change b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
695
                      'type' => 'warning',
Open commit View diff
695 'type' => 'warning',
same change b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
696
                      'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
696 'log' => array(__FUNCTION__, $_action, $_data_log),
same change b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
697
                      'msg' => array('fuzzy_learn_error', $response['error'])
Open commit View diff
697 'msg' => array('fuzzy_learn_error', $response['error'])
same change b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
698
                    );
Open commit View diff
698 );
same change b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
699
                  }
Open commit View diff
699 }
same change b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
700
                }
Open commit View diff
700 }
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
701
              }
Open commit View diff
701 }
andryyy over 5 years ago b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
702
              curl_close($curl);
Open commit View diff
702 curl_close($curl);
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
703
              $_SESSION['return'][] = array(
Open commit View diff
703 $_SESSION['return'][] = array(
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
704
                'type' => 'success',
Open commit View diff
704 'type' => 'success',
andryyy over 5 years ago b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
705
                'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
705 'log' => array(__FUNCTION__, $_action, $_data_log),
André almost 8 years ago 4396be2

[Rspamd] Place socket in _rspamd home and fix permissions

Full commit hash
4396be2938a7bc7571033d093fb9f81c453f4b1c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
706
                'msg' => array('qlearn_spam', $id)
Open commit View diff
706 'msg' => array('qlearn_spam', $id)
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
707
              );
Open commit View diff
707 );
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
708
              continue;
Open commit View diff
708 continue;
same change a11cce6

[Web] Fixes for BCC map input fields

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

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
710
            else {
Open commit View diff
710 else {
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
711
              curl_close($curl);
Open commit View diff
711 curl_close($curl);
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
712
              $_SESSION['return'][] = array(
Open commit View diff
712 $_SESSION['return'][] = array(
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
713
                'type' => 'danger',
Open commit View diff
713 'type' => 'danger',
andryyy over 5 years ago b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
714
                'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
714 'log' => array(__FUNCTION__, $_action, $_data_log),
André almost 8 years ago 4396be2

[Rspamd] Place socket in _rspamd home and fix permissions

Full commit hash
4396be2938a7bc7571033d093fb9f81c453f4b1c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
715
                'msg' => array('spam_learn_error', 'Curl: ' . curl_strerror(curl_errno($curl)))
Open commit View diff
715 'msg' => array('spam_learn_error', 'Curl: ' . curl_strerror(curl_errno($curl)))
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
716
              );
Open commit View diff
716 );
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
717
              continue;
Open commit View diff
717 continue;
same change a11cce6

[Web] Fixes for BCC map input fields

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

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
719
            curl_close($curl);
Open commit View diff
719 curl_close($curl);
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
720
            $_SESSION['return'][] = array(
Open commit View diff
720 $_SESSION['return'][] = array(
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
721
              'type' => 'danger',
Open commit View diff
721 'type' => 'danger',
andryyy over 5 years ago b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
722
              'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
722 'log' => array(__FUNCTION__, $_action, $_data_log),
same change b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
723
              'msg' => array('spam_learn_error', 'unknown')
Open commit View diff
723 'msg' => array('spam_learn_error', 'unknown')
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
724
            );
Open commit View diff
724 );
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
725
            continue;
Open commit View diff
725 continue;
same change a11cce6

[Web] Fixes for BCC map input fields

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

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
727
          else {
Open commit View diff
727 else {
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
728
            $_SESSION['return'][] = array(
Open commit View diff
728 $_SESSION['return'][] = array(
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
729
              'type' => 'danger',
Open commit View diff
729 'type' => 'danger',
andryyy over 5 years ago b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
730
              'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
730 'log' => array(__FUNCTION__, $_action, $_data_log),
André almost 8 years ago 4396be2

[Rspamd] Place socket in _rspamd home and fix permissions

Full commit hash
4396be2938a7bc7571033d093fb9f81c453f4b1c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
731
              'msg' => array('spam_learn_error', 'Curl: ' . curl_strerror(curl_errno($curl)))
Open commit View diff
731 'msg' => array('spam_learn_error', 'Curl: ' . curl_strerror(curl_errno($curl)))
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
732
            );
Open commit View diff
732 );
André almost 8 years ago 4396be2

[Rspamd] Place socket in _rspamd home and fix permissions

Full commit hash
4396be2938a7bc7571033d093fb9f81c453f4b1c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
733
            curl_close($curl);
Open commit View diff
733 curl_close($curl);
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
734
            continue;
Open commit View diff
734 continue;
same change a11cce6

[Web] Fixes for BCC map input fields

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

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
736
          curl_close($curl);
Open commit View diff
736 curl_close($curl);
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
737
          $_SESSION['return'][] = array(
Open commit View diff
737 $_SESSION['return'][] = array(
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
738
            'type' => 'danger',
Open commit View diff
738 'type' => 'danger',
andryyy over 5 years ago b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
739
            'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
739 'log' => array(__FUNCTION__, $_action, $_data_log),
same change b7956d8

[Web] Fix order of fuzzy del and fuzzy add when learning from quarantine, fixes #3844

Full commit hash
b7956d8a7a0f8921ddf18d7cfe2779673b00f4b1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
740
            'msg' => array('spam_learn_error', 'unknown')
Open commit View diff
740 'msg' => array('spam_learn_error', 'unknown')
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
741
          );
Open commit View diff
741 );
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
742
          continue;
Open commit View diff
742 continue;
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
743
        }
Open commit View diff
743 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
744
      }
Open commit View diff
744 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
745
      return true;
Open commit View diff
745 return true;
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
746
    break;
Open commit View diff
746 break;
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
747
    case 'get':
Open commit View diff
747 case 'get':
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
748
      if ($_SESSION['mailcow_cc_role'] == "user") {
Open commit View diff
748 if ($_SESSION['mailcow_cc_role'] == "user") {
andryyy over 5 years ago b9a8b8a

[Web] More custom_params

Full commit hash
b9a8b8a3e79646409f91e2cdcd09ca44752cb5f5
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
749
        $stmt = $pdo->prepare('SELECT `id`, `qid`, `subject`, LOCATE("VIRUS_FOUND", `symbols`) AS `virus_flag`, `score`, `rcpt`, `sender`, `action`, UNIX_TIMESTAMP(`created`) AS `created`, `notified` FROM `quarantine` WHERE `rcpt` = :mbox');
Open commit View diff
749 $stmt = $pdo->prepare('SELECT `id`, `qid`, `subject`, LOCATE("VIRUS_FOUND", `symbols`) AS `virus_flag`, `score`, `rcpt`, `sender`, `action`, UNIX_TIMESTAMP(`created`) AS `created`, `notified` FROM `quarantine` WHERE `rcpt` = :mbox');
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
750
        $stmt->execute(array(':mbox' => $_SESSION['mailcow_cc_username']));
Open commit View diff
750 $stmt->execute(array(':mbox' => $_SESSION['mailcow_cc_username']));
same change a11cce6

[Web] Fixes for BCC map input fields

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

[Web] Fixes for BCC map input fields

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

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
753
          $q_meta[] = $row;
Open commit View diff
753 $q_meta[] = $row;
same change a11cce6

[Web] Fixes for BCC map input fields

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

[Web] Fixes for BCC map input fields

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

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
756
      elseif ($_SESSION['mailcow_cc_role'] == "admin") {
Open commit View diff
756 elseif ($_SESSION['mailcow_cc_role'] == "admin") {
andryyy over 5 years ago b9a8b8a

[Web] More custom_params

Full commit hash
b9a8b8a3e79646409f91e2cdcd09ca44752cb5f5
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
757
        $stmt = $pdo->query('SELECT `id`, `qid`, `subject`, LOCATE("VIRUS_FOUND", `symbols`) AS `virus_flag`, `score`, `rcpt`, `sender`, `action`, UNIX_TIMESTAMP(`created`) AS `created`, `notified` FROM `quarantine`');
Open commit View diff
757 $stmt = $pdo->query('SELECT `id`, `qid`, `subject`, LOCATE("VIRUS_FOUND", `symbols`) AS `virus_flag`, `score`, `rcpt`, `sender`, `action`, UNIX_TIMESTAMP(`created`) AS `created`, `notified` FROM `quarantine`');
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

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

[Web] Fixes for BCC map input fields

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

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
760
          $q_meta[] = $row;
Open commit View diff
760 $q_meta[] = $row;
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
761
        }
Open commit View diff
761 }
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

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

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
763
      else {
Open commit View diff
763 else {
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
764
        $domains = array_merge(mailbox('get', 'domains'), mailbox('get', 'alias_domains'));
Open commit View diff
764 $domains = array_merge(mailbox('get', 'domains'), mailbox('get', 'alias_domains'));
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
765
        foreach ($domains as $domain) {
Open commit View diff
765 foreach ($domains as $domain) {
andryyy over 5 years ago b9a8b8a

[Web] More custom_params

Full commit hash
b9a8b8a3e79646409f91e2cdcd09ca44752cb5f5
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
766
          $stmt = $pdo->prepare('SELECT `id`, `qid`, `subject`, LOCATE("VIRUS_FOUND", `symbols`) AS `virus_flag`, `score`, `rcpt`, `sender`, `action`, UNIX_TIMESTAMP(`created`) AS `created`, `notified` FROM `quarantine` WHERE `rcpt` REGEXP :domain');
Open commit View diff
766 $stmt = $pdo->prepare('SELECT `id`, `qid`, `subject`, LOCATE("VIRUS_FOUND", `symbols`) AS `virus_flag`, `score`, `rcpt`, `sender`, `action`, UNIX_TIMESTAMP(`created`) AS `created`, `notified` FROM `quarantine` WHERE `rcpt` REGEXP :domain');
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
767
          $stmt->execute(array(':domain' => '@' . $domain . '$'));
Open commit View diff
767 $stmt->execute(array(':domain' => '@' . $domain . '$'));
andre.peters over 8 years ago 8419266

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
841926667807b579efe2d5af002a1ba948fad058
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
768
          $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
768 $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
same change 8419266

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
841926667807b579efe2d5af002a1ba948fad058
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
769
          while($row = array_shift($rows)) {
Open commit View diff
769 while($row = array_shift($rows)) {
same change 8419266

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
841926667807b579efe2d5af002a1ba948fad058
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
770
            $q_meta[] = $row;
Open commit View diff
770 $q_meta[] = $row;
same change 8419266

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
841926667807b579efe2d5af002a1ba948fad058
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
771
          }
Open commit View diff
771 }
same change 8419266

[Web] Important fixes for quarantaine; other minor changes

Full commit hash
841926667807b579efe2d5af002a1ba948fad058
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
772
        }
Open commit View diff
772 }
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
773
      }
Open commit View diff
773 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
774
      return $q_meta;
Open commit View diff
774 return $q_meta;
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
775
    break;
Open commit View diff
775 break;
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
776
    case 'settings':
Open commit View diff
776 case 'settings':
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
777
      try {
Open commit View diff
777 try {
andryyy over 7 years ago 57aa379

[Compose] Updated PHP-FPM image

Full commit hash
57aa379a2a0e8fc093c1d9826ac4563706bb5d9d
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
778
        if ($_SESSION['mailcow_cc_role'] == "admin") {
Open commit View diff
778 if ($_SESSION['mailcow_cc_role'] == "admin") {
same change 57aa379

[Compose] Updated PHP-FPM image

Full commit hash
57aa379a2a0e8fc093c1d9826ac4563706bb5d9d
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
779
          $settings['exclude_domains'] = json_decode($redis->Get('Q_EXCLUDE_DOMAINS'), true);
Open commit View diff
779 $settings['exclude_domains'] = json_decode($redis->Get('Q_EXCLUDE_DOMAINS'), true);
same change 57aa379

[Compose] Updated PHP-FPM image

Full commit hash
57aa379a2a0e8fc093c1d9826ac4563706bb5d9d
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
780
        }
Open commit View diff
780 }
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
781
        $settings['max_size'] = $redis->Get('Q_MAX_SIZE');
Open commit View diff
781 $settings['max_size'] = $redis->Get('Q_MAX_SIZE');
andryyy over 5 years ago 6c697f3

[Web, Quarantine] Allow to set the max score of a message up to which a quarantine notification will be sent

Full commit hash
6c697f3f3f1ad54c242a8f06748025ebc0e5dda1
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
782
        $settings['max_score'] = $redis->Get('Q_MAX_SCORE');
Open commit View diff
782 $settings['max_score'] = $redis->Get('Q_MAX_SCORE');
andryyy about 7 years ago 176f2a3

[Web] Allow to set max_age for quarantine items

Full commit hash
176f2a3f34f6a028b22172b2803b92eacc314379
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
783
        $settings['max_age'] = $redis->Get('Q_MAX_AGE');
Open commit View diff
783 $settings['max_age'] = $redis->Get('Q_MAX_AGE');
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
784
        $settings['retention_size'] = $redis->Get('Q_RETENTION_SIZE');
Open commit View diff
784 $settings['retention_size'] = $redis->Get('Q_RETENTION_SIZE');
andryyy over 7 years ago 28be09f

[Web] Allow to toggle release format of quarantine msgs

Full commit hash
28be09f3d7d4dba4e5c3fa6abc8206f21589cb2f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
785
        $settings['release_format'] = $redis->Get('Q_RELEASE_FORMAT');
Open commit View diff
785 $settings['release_format'] = $redis->Get('Q_RELEASE_FORMAT');
andryyy over 7 years ago 635e694

[Web] Fix quarantine subject

Full commit hash
635e694ffaa01921f07bc1fe1009ad526547ad52
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
786
        $settings['subject'] = $redis->Get('Q_SUBJ');
Open commit View diff
786 $settings['subject'] = $redis->Get('Q_SUBJ');
andryyy over 7 years ago 07392b7

[Watchdog] Use stackoverflow.com for DNS check

Full commit hash
07392b7437cddbbe937c259bc91bbb1267c93ca2
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
787
        $settings['sender'] = $redis->Get('Q_SENDER');
Open commit View diff
787 $settings['sender'] = $redis->Get('Q_SENDER');
andryyy over 6 years ago 157d257

[Web] Complain about non-email email fields

Full commit hash
157d2579e486adb9e29bc2fb78b011bb3d5051fb
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
788
        $settings['bcc'] = $redis->Get('Q_BCC');
Open commit View diff
788 $settings['bcc'] = $redis->Get('Q_BCC');
andryyy about 6 years ago 6c92688

[Quarantine] Allow to redirect all quarantine messages to a specific address

Full commit hash
6c92688ff682e9e2b7ef1cea64dc8c7369f0702f
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
789
        $settings['redirect'] = $redis->Get('Q_REDIRECT');
Open commit View diff
789 $settings['redirect'] = $redis->Get('Q_REDIRECT');
andryyy over 7 years ago 1e76400

[Web] Use INTL_IDNA_VARIANT_UTS46 in idn_to_ascii (thanks to @Knight1 !)

Full commit hash
1e764009bf2c71f6a18f8ef4e303f7a63cb5a653
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
790
        $settings['html_tmpl'] = htmlspecialchars($redis->Get('Q_HTML'));
Open commit View diff
790 $settings['html_tmpl'] = htmlspecialchars($redis->Get('Q_HTML'));
same change 1e76400

[Web] Use INTL_IDNA_VARIANT_UTS46 in idn_to_ascii (thanks to @Knight1 !)

Full commit hash
1e764009bf2c71f6a18f8ef4e303f7a63cb5a653
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
791
        if (empty($settings['html_tmpl'])) {
Open commit View diff
791 if (empty($settings['html_tmpl'])) {
same change 1e76400

[Web] Use INTL_IDNA_VARIANT_UTS46 in idn_to_ascii (thanks to @Knight1 !)

Full commit hash
1e764009bf2c71f6a18f8ef4e303f7a63cb5a653
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
792
          $settings['html_tmpl'] = htmlspecialchars(file_get_contents("/tpls/quarantine.tpl"));
Open commit View diff
792 $settings['html_tmpl'] = htmlspecialchars(file_get_contents("/tpls/quarantine.tpl"));
andryyy over 7 years ago 07392b7

[Watchdog] Use stackoverflow.com for DNS check

Full commit hash
07392b7437cddbbe937c259bc91bbb1267c93ca2
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
793
        }
Open commit View diff
793 }
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
794
      }
Open commit View diff
794 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
795
      catch (RedisException $e) {
Open commit View diff
795 catch (RedisException $e) {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
796
        $_SESSION['return'][] = array(
Open commit View diff
796 $_SESSION['return'][] = array(
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
797
          'type' => 'danger',
Open commit View diff
797 'type' => 'danger',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
798
          'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
798 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
799
          'msg' => array('redis_error', $e)
Open commit View diff
799 'msg' => array('redis_error', $e)
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
800
        );
Open commit View diff
800 );
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
801
        return false;
Open commit View diff
801 return false;
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
802
      }
Open commit View diff
802 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
803
      return $settings;
Open commit View diff
803 return $settings;
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
804
    break;
Open commit View diff
804 break;
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
805
    case 'details':
Open commit View diff
805 case 'details':
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
806
      if (!is_numeric($_data) || empty($_data)) {
Open commit View diff
806 if (!is_numeric($_data) || empty($_data)) {
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
807
        return false;
Open commit View diff
807 return false;
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
808
      }
Open commit View diff
808 }
andryyy about 6 years ago b93371c

[Web] Add smtp and header from to quarantine items, add more info to qhandler, allow to open qhandler links from qitem details

Full commit hash
b93371ca0aaf8cb416f1952351d52ffd46ad8091
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
809
      $stmt = $pdo->prepare('SELECT * FROM `quarantine` WHERE `id`= :id');
Open commit View diff
809 $stmt = $pdo->prepare('SELECT * FROM `quarantine` WHERE `id`= :id');
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
810
      $stmt->execute(array(':id' => $_data));
Open commit View diff
810 $stmt->execute(array(':id' => $_data));
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
811
      $row = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
811 $row = $stmt->fetch(PDO::FETCH_ASSOC);
andryyy about 6 years ago 22f0a14

[Web] Add SMTP rcpt to qitems, filter invalid addresses

Full commit hash
22f0a14b8710f246496f8456c2c8b61193a49949
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
812
      if (hasMailboxObjectAccess($_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role'], $row['rcpt']) || $_SESSION['mailcow_cc_role'] == 'admin') {
Open commit View diff
812 if (hasMailboxObjectAccess($_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role'], $row['rcpt']) || $_SESSION['mailcow_cc_role'] == 'admin') {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
813
        return $row;
Open commit View diff
813 return $row;
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
814
      }
Open commit View diff
814 }
andryyy about 6 years ago b93371c

[Web] Add smtp and header from to quarantine items, add more info to qhandler, allow to open qhandler links from qitem details

Full commit hash
b93371ca0aaf8cb416f1952351d52ffd46ad8091
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
815
      logger(array('return' => array(
Open commit View diff
815 logger(array('return' => array(
same change b93371c

[Web] Add smtp and header from to quarantine items, add more info to qhandler, allow to open qhandler links from qitem details

Full commit hash
b93371ca0aaf8cb416f1952351d52ffd46ad8091
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
816
        array(
Open commit View diff
816 array(
same change b93371c

[Web] Add smtp and header from to quarantine items, add more info to qhandler, allow to open qhandler links from qitem details

Full commit hash
b93371ca0aaf8cb416f1952351d52ffd46ad8091
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
817
          'type' => 'danger',
Open commit View diff
817 'type' => 'danger',
same change b93371c

[Web] Add smtp and header from to quarantine items, add more info to qhandler, allow to open qhandler links from qitem details

Full commit hash
b93371ca0aaf8cb416f1952351d52ffd46ad8091
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
818
          'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
818 'log' => array(__FUNCTION__, $_action, $_data_log),
same change b93371c

[Web] Add smtp and header from to quarantine items, add more info to qhandler, allow to open qhandler links from qitem details

Full commit hash
b93371ca0aaf8cb416f1952351d52ffd46ad8091
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
819
          'msg' => 'access_denied'
Open commit View diff
819 'msg' => 'access_denied'
same change b93371c

[Web] Add smtp and header from to quarantine items, add more info to qhandler, allow to open qhandler links from qitem details

Full commit hash
b93371ca0aaf8cb416f1952351d52ffd46ad8091
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
820
        )
Open commit View diff
820 )
same change b93371c

[Web] Add smtp and header from to quarantine items, add more info to qhandler, allow to open qhandler links from qitem details

Full commit hash
b93371ca0aaf8cb416f1952351d52ffd46ad8091
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
821
      )));
Open commit View diff
821 )));
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
822
      return false;
Open commit View diff
822 return false;
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
823
    break;
Open commit View diff
823 break;
andryyy about 6 years ago b93371c

[Web] Add smtp and header from to quarantine items, add more info to qhandler, allow to open qhandler links from qitem details

Full commit hash
b93371ca0aaf8cb416f1952351d52ffd46ad8091
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
824
    case 'hash_details':
Open commit View diff
824 case 'hash_details':
same change b93371c

[Web] Add smtp and header from to quarantine items, add more info to qhandler, allow to open qhandler links from qitem details

Full commit hash
b93371ca0aaf8cb416f1952351d52ffd46ad8091
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
825
      $hash = trim($_data);
Open commit View diff
825 $hash = trim($_data);
same change b93371c

[Web] Add smtp and header from to quarantine items, add more info to qhandler, allow to open qhandler links from qitem details

Full commit hash
b93371ca0aaf8cb416f1952351d52ffd46ad8091
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
826
      if (preg_match("/^([a-f0-9]{64})$/", $hash) === false) {
Open commit View diff
826 if (preg_match("/^([a-f0-9]{64})$/", $hash) === false) {
same change b93371c

[Web] Add smtp and header from to quarantine items, add more info to qhandler, allow to open qhandler links from qitem details

Full commit hash
b93371ca0aaf8cb416f1952351d52ffd46ad8091
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
827
        logger(array('return' => array(
Open commit View diff
827 logger(array('return' => array(
same change b93371c

[Web] Add smtp and header from to quarantine items, add more info to qhandler, allow to open qhandler links from qitem details

Full commit hash
b93371ca0aaf8cb416f1952351d52ffd46ad8091
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
828
          array(
Open commit View diff
828 array(
same change b93371c

[Web] Add smtp and header from to quarantine items, add more info to qhandler, allow to open qhandler links from qitem details

Full commit hash
b93371ca0aaf8cb416f1952351d52ffd46ad8091
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
829
            'type' => 'danger',
Open commit View diff
829 'type' => 'danger',
same change b93371c

[Web] Add smtp and header from to quarantine items, add more info to qhandler, allow to open qhandler links from qitem details

Full commit hash
b93371ca0aaf8cb416f1952351d52ffd46ad8091
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
830
            'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
830 'log' => array(__FUNCTION__, $_action, $_data_log),
same change b93371c

[Web] Add smtp and header from to quarantine items, add more info to qhandler, allow to open qhandler links from qitem details

Full commit hash
b93371ca0aaf8cb416f1952351d52ffd46ad8091
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
831
            'msg' => 'access_denied'
Open commit View diff
831 'msg' => 'access_denied'
same change b93371c

[Web] Add smtp and header from to quarantine items, add more info to qhandler, allow to open qhandler links from qitem details

Full commit hash
b93371ca0aaf8cb416f1952351d52ffd46ad8091
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
832
          )
Open commit View diff
832 )
same change b93371c

[Web] Add smtp and header from to quarantine items, add more info to qhandler, allow to open qhandler links from qitem details

Full commit hash
b93371ca0aaf8cb416f1952351d52ffd46ad8091
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
833
        )));
Open commit View diff
833 )));
same change b93371c

[Web] Add smtp and header from to quarantine items, add more info to qhandler, allow to open qhandler links from qitem details

Full commit hash
b93371ca0aaf8cb416f1952351d52ffd46ad8091
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
834
        return false;
Open commit View diff
834 return false;
same change b93371c

[Web] Add smtp and header from to quarantine items, add more info to qhandler, allow to open qhandler links from qitem details

Full commit hash
b93371ca0aaf8cb416f1952351d52ffd46ad8091
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
835
      }
Open commit View diff
835 }
Christoph Lechleitner 12 months ago 2b2da16

[DB][Web] optimize qhandler by keeping SHA2 in new column qhash (#6556)

Full commit hash
2b2da1679e7f05a61c268db208c5e1fbacb70a78
Author
Christoph Lechleitner <[email protected]>
Date
12 months ago
Selected line
836
      $stmt = $pdo->prepare('SELECT * FROM `quarantine` WHERE `qhash` = :hash');
Open commit View diff
836 $stmt = $pdo->prepare('SELECT * FROM `quarantine` WHERE `qhash` = :hash');
andryyy about 6 years ago b93371c

[Web] Add smtp and header from to quarantine items, add more info to qhandler, allow to open qhandler links from qitem details

Full commit hash
b93371ca0aaf8cb416f1952351d52ffd46ad8091
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
837
      $stmt->execute(array(':hash' => $hash));
Open commit View diff
837 $stmt->execute(array(':hash' => $hash));
same change b93371c

[Web] Add smtp and header from to quarantine items, add more info to qhandler, allow to open qhandler links from qitem details

Full commit hash
b93371ca0aaf8cb416f1952351d52ffd46ad8091
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
838
      return $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
838 return $stmt->fetch(PDO::FETCH_ASSOC);
same change b93371c

[Web] Add smtp and header from to quarantine items, add more info to qhandler, allow to open qhandler links from qitem details

Full commit hash
b93371ca0aaf8cb416f1952351d52ffd46ad8091
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
839
    break;
Open commit View diff
839 break;
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
840
  }
Open commit View diff
840 }
André Peters over 8 years ago a500364

[Web] Mind was set to french, reverting to english

Full commit hash
a50036477eee7d80d58c3147c5b1dfbe013f4380
Author
André Peters <[email protected]>
Date
over 8 years ago
Selected line
841
}
Open commit View diff
841 }