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.mailq.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.mailq.inc.php on main
Author Date Commit Line Code
André over 7 years ago e30dfd6

[Web] Queue manager for Postfix

Full commit hash
e30dfd6751d27f4edece2c58866a486b338cb7d2
Author
André <[email protected]>
Date
over 7 years ago
Selected line
1
<?php
Open commit View diff
1 <?php
same change e30dfd6

[Web] Queue manager for Postfix

Full commit hash
e30dfd6751d27f4edece2c58866a486b338cb7d2
Author
André <[email protected]>
Date
over 7 years ago
Selected line
2
function mailq($_action, $_data = null) {
Open commit View diff
2 function mailq($_action, $_data = null) {
same change e30dfd6

[Web] Queue manager for Postfix

Full commit hash
e30dfd6751d27f4edece2c58866a486b338cb7d2
Author
André <[email protected]>
Date
over 7 years ago
Selected line
3
  if ($_SESSION['mailcow_cc_role'] != "admin") {
Open commit View diff
3 if ($_SESSION['mailcow_cc_role'] != "admin") {
same change e30dfd6

[Web] Queue manager for Postfix

Full commit hash
e30dfd6751d27f4edece2c58866a486b338cb7d2
Author
André <[email protected]>
Date
over 7 years ago
Selected line
4
    $_SESSION['return'][] = array(
Open commit View diff
4 $_SESSION['return'][] = array(
same change e30dfd6

[Web] Queue manager for Postfix

Full commit hash
e30dfd6751d27f4edece2c58866a486b338cb7d2
Author
André <[email protected]>
Date
over 7 years ago
Selected line
5
      'type' => 'danger',
Open commit View diff
5 'type' => 'danger',
same change e30dfd6

[Web] Queue manager for Postfix

Full commit hash
e30dfd6751d27f4edece2c58866a486b338cb7d2
Author
André <[email protected]>
Date
over 7 years ago
Selected line
6
      'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
6 'log' => array(__FUNCTION__, $_action, $_data),
same change e30dfd6

[Web] Queue manager for Postfix

Full commit hash
e30dfd6751d27f4edece2c58866a486b338cb7d2
Author
André <[email protected]>
Date
over 7 years ago
Selected line
7
      'msg' => 'access_denied'
Open commit View diff
7 'msg' => 'access_denied'
same change e30dfd6

[Web] Queue manager for Postfix

Full commit hash
e30dfd6751d27f4edece2c58866a486b338cb7d2
Author
André <[email protected]>
Date
over 7 years ago
Selected line
8
    );
Open commit View diff
8 );
same change e30dfd6

[Web] Queue manager for Postfix

Full commit hash
e30dfd6751d27f4edece2c58866a486b338cb7d2
Author
André <[email protected]>
Date
over 7 years ago
Selected line
9
    return false;
Open commit View diff
9 return false;
same change e30dfd6

[Web] Queue manager for Postfix

Full commit hash
e30dfd6751d27f4edece2c58866a486b338cb7d2
Author
André <[email protected]>
Date
over 7 years ago
Selected line
10
  }
Open commit View diff
10 }
same change e30dfd6

[Web] Queue manager for Postfix

Full commit hash
e30dfd6751d27f4edece2c58866a486b338cb7d2
Author
André <[email protected]>
Date
over 7 years ago
Selected line
11
  function process_mailq_output($returned_output, $_action, $_data) {
Open commit View diff
11 function process_mailq_output($returned_output, $_action, $_data) {
same change e30dfd6

[Web] Queue manager for Postfix

Full commit hash
e30dfd6751d27f4edece2c58866a486b338cb7d2
Author
André <[email protected]>
Date
over 7 years ago
Selected line
12
    if ($returned_output !== NULL) {
Open commit View diff
12 if ($returned_output !== NULL) {
andryyy about 6 years ago 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
13
      if ($_action == 'cat') {
Open commit View diff
13 if ($_action == 'cat') {
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
14
        logger(array('return' => array(
Open commit View diff
14 logger(array('return' => array(
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
15
          array(
Open commit View diff
15 array(
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
16
            'type' => 'success',
Open commit View diff
16 'type' => 'success',
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
17
            'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
17 'log' => array(__FUNCTION__, $_action, $_data),
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
18
            'msg' => 'queue_cat_success'
Open commit View diff
18 'msg' => 'queue_cat_success'
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
19
          )
Open commit View diff
19 )
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
20
        )));
Open commit View diff
20 )));
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
21
        return $returned_output;
Open commit View diff
21 return $returned_output;
André over 7 years ago e30dfd6

[Web] Queue manager for Postfix

Full commit hash
e30dfd6751d27f4edece2c58866a486b338cb7d2
Author
André <[email protected]>
Date
over 7 years ago
Selected line
22
      }
Open commit View diff
22 }
andryyy about 6 years ago 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
23
      else {
Open commit View diff
23 else {
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
24
        if (isset($returned_output['type']) && $returned_output['type'] == 'danger') {
Open commit View diff
24 if (isset($returned_output['type']) && $returned_output['type'] == 'danger') {
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
25
          $_SESSION['return'][] = array(
Open commit View diff
25 $_SESSION['return'][] = array(
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
26
            'type' => 'danger',
Open commit View diff
26 'type' => 'danger',
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
27
            'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
27 'log' => array(__FUNCTION__, $_action, $_data),
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
28
            'msg' => 'Error: ' . $returned_output['msg']
Open commit View diff
28 'msg' => 'Error: ' . $returned_output['msg']
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
29
          );
Open commit View diff
29 );
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
30
        }
Open commit View diff
30 }
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
31
        if (isset($returned_output['type']) && $returned_output['type'] == 'success') {
Open commit View diff
31 if (isset($returned_output['type']) && $returned_output['type'] == 'success') {
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
32
          $_SESSION['return'][] = array(
Open commit View diff
32 $_SESSION['return'][] = array(
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
33
            'type' => 'success',
Open commit View diff
33 'type' => 'success',
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
34
            'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
34 'log' => array(__FUNCTION__, $_action, $_data),
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
35
            'msg' => 'queue_command_success'
Open commit View diff
35 'msg' => 'queue_command_success'
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
36
          );
Open commit View diff
36 );
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
37
        }
Open commit View diff
37 }
André over 7 years ago e30dfd6

[Web] Queue manager for Postfix

Full commit hash
e30dfd6751d27f4edece2c58866a486b338cb7d2
Author
André <[email protected]>
Date
over 7 years ago
Selected line
38
      }
Open commit View diff
38 }
same change e30dfd6

[Web] Queue manager for Postfix

Full commit hash
e30dfd6751d27f4edece2c58866a486b338cb7d2
Author
André <[email protected]>
Date
over 7 years ago
Selected line
39
    }
Open commit View diff
39 }
same change e30dfd6

[Web] Queue manager for Postfix

Full commit hash
e30dfd6751d27f4edece2c58866a486b338cb7d2
Author
André <[email protected]>
Date
over 7 years ago
Selected line
40
    else {
Open commit View diff
40 else {
same change e30dfd6

[Web] Queue manager for Postfix

Full commit hash
e30dfd6751d27f4edece2c58866a486b338cb7d2
Author
André <[email protected]>
Date
over 7 years ago
Selected line
41
      $_SESSION['return'][] = array(
Open commit View diff
41 $_SESSION['return'][] = array(
same change e30dfd6

[Web] Queue manager for Postfix

Full commit hash
e30dfd6751d27f4edece2c58866a486b338cb7d2
Author
André <[email protected]>
Date
over 7 years ago
Selected line
42
        'type' => 'danger',
Open commit View diff
42 'type' => 'danger',
andryyy about 6 years ago 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
43
        'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
43 'log' => array(__FUNCTION__, $_action, $_data),
André over 7 years ago e30dfd6

[Web] Queue manager for Postfix

Full commit hash
e30dfd6751d27f4edece2c58866a486b338cb7d2
Author
André <[email protected]>
Date
over 7 years ago
Selected line
44
        'msg' => 'unknown'
Open commit View diff
44 'msg' => 'unknown'
same change e30dfd6

[Web] Queue manager for Postfix

Full commit hash
e30dfd6751d27f4edece2c58866a486b338cb7d2
Author
André <[email protected]>
Date
over 7 years ago
Selected line
45
      );
Open commit View diff
45 );
same change e30dfd6

[Web] Queue manager for Postfix

Full commit hash
e30dfd6751d27f4edece2c58866a486b338cb7d2
Author
André <[email protected]>
Date
over 7 years ago
Selected line
46
    }
Open commit View diff
46 }
same change e30dfd6

[Web] Queue manager for Postfix

Full commit hash
e30dfd6751d27f4edece2c58866a486b338cb7d2
Author
André <[email protected]>
Date
over 7 years ago
Selected line
47
  }
Open commit View diff
47 }
andryyy about 6 years ago 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
48
  if ($_action == 'get') {
Open commit View diff
48 if ($_action == 'get') {
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
49
    $mailq_lines = docker('post', 'postfix-mailcow', 'exec', array('cmd' => 'mailq', 'task' => 'list'));
Open commit View diff
49 $mailq_lines = docker('post', 'postfix-mailcow', 'exec', array('cmd' => 'mailq', 'task' => 'list'));
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
50
    $lines = 0;
Open commit View diff
50 $lines = 0;
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
51
    // Hard limit to 10000 items
Open commit View diff
51 // Hard limit to 10000 items
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
52
    foreach (preg_split("/((\r?\n)|(\r\n?))/", $mailq_lines) as $mailq_item) if ($lines++ < 10000) {
Open commit View diff
52 foreach (preg_split("/((\r?\n)|(\r\n?))/", $mailq_lines) as $mailq_item) if ($lines++ < 10000) {
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
53
      if (empty($mailq_item) || $mailq_item == '1') {
Open commit View diff
53 if (empty($mailq_item) || $mailq_item == '1') {
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
54
        continue;
Open commit View diff
54 continue;
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
55
      }
Open commit View diff
55 }
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
56
      $mq_line = json_decode($mailq_item, true);
Open commit View diff
56 $mq_line = json_decode($mailq_item, true);
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
57
      if ($mq_line !== NULL) {
Open commit View diff
57 if ($mq_line !== NULL) {
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
58
        $rcpts = array();
Open commit View diff
58 $rcpts = array();
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
59
        foreach ($mq_line['recipients'] as $rcpt) {
Open commit View diff
59 foreach ($mq_line['recipients'] as $rcpt) {
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
60
          if (isset($rcpt['delay_reason'])) {
Open commit View diff
60 if (isset($rcpt['delay_reason'])) {
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
61
            $rcpts[] = $rcpt['address'] . ' (' . $rcpt['delay_reason'] . ')';
Open commit View diff
61 $rcpts[] = $rcpt['address'] . ' (' . $rcpt['delay_reason'] . ')';
andryyy over 7 years ago 48047a3

[Web] Move 'get' method to mailq functions file

Full commit hash
48047a364cb2cf516e007cea8b72415e3c4591b5
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
62
          }
Open commit View diff
62 }
andryyy about 6 years ago 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
63
          else {
Open commit View diff
63 else {
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
64
            $rcpts[] = $rcpt['address'];
Open commit View diff
64 $rcpts[] = $rcpt['address'];
andryyy over 7 years ago 48047a3

[Web] Move 'get' method to mailq functions file

Full commit hash
48047a364cb2cf516e007cea8b72415e3c4591b5
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
65
          }
Open commit View diff
65 }
same change 48047a3

[Web] Move 'get' method to mailq functions file

Full commit hash
48047a364cb2cf516e007cea8b72415e3c4591b5
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
66
        }
Open commit View diff
66 }
andryyy about 6 years ago 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
67
        if (!empty($rcpts)) {
Open commit View diff
67 if (!empty($rcpts)) {
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
68
          $mq_line['recipients'] = $rcpts;
Open commit View diff
68 $mq_line['recipients'] = $rcpts;
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
69
        }
Open commit View diff
69 }
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
70
        $line[] = $mq_line;
Open commit View diff
70 $line[] = $mq_line;
andryyy over 7 years ago 48047a3

[Web] Move 'get' method to mailq functions file

Full commit hash
48047a364cb2cf516e007cea8b72415e3c4591b5
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
71
      }
Open commit View diff
71 }
andryyy about 6 years ago 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
72
    }
Open commit View diff
72 }
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
73
    if (!isset($line) || empty($line)) {
Open commit View diff
73 if (!isset($line) || empty($line)) {
andryyy almost 6 years ago 8a296e9

[Web] Return json array when mailq empty, fixes #3738

Full commit hash
8a296e90c3615ee2aaf261edae02eece83ec29f0
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
74
      return '[]';
Open commit View diff
74 return '[]';
andryyy about 6 years ago 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
75
    }
Open commit View diff
75 }
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
76
    else {
Open commit View diff
76 else {
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
77
      return json_encode($line);
Open commit View diff
77 return json_encode($line);
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
78
    }
Open commit View diff
78 }
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
79
  }
Open commit View diff
79 }
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
80
  elseif ($_action == 'delete') {
Open commit View diff
80 elseif ($_action == 'delete') {
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
81
    if (!is_array($_data['qid'])) {
Open commit View diff
81 if (!is_array($_data['qid'])) {
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
82
      $qids = array();
Open commit View diff
82 $qids = array();
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
83
      $qids[] = $_data['qid'];
Open commit View diff
83 $qids[] = $_data['qid'];
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
84
    }
Open commit View diff
84 }
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
85
    else {
Open commit View diff
85 else {
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
86
      $qids = $_data['qid'];
Open commit View diff
86 $qids = $_data['qid'];
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
87
    }
Open commit View diff
87 }
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
88
    $docker_return = docker('post', 'postfix-mailcow', 'exec', array('cmd' => 'mailq', 'task' => 'delete', 'items' => $qids));
Open commit View diff
88 $docker_return = docker('post', 'postfix-mailcow', 'exec', array('cmd' => 'mailq', 'task' => 'delete', 'items' => $qids));
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
89
    process_mailq_output(json_decode($docker_return, true), $_action, $_data);
Open commit View diff
89 process_mailq_output(json_decode($docker_return, true), $_action, $_data);
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
90
  }
Open commit View diff
90 }
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
91
  elseif ($_action == 'cat') {
Open commit View diff
91 elseif ($_action == 'cat') {
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
92
    if (!is_array($_data['qid'])) {
Open commit View diff
92 if (!is_array($_data['qid'])) {
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
93
      $qids = array();
Open commit View diff
93 $qids = array();
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
94
      $qids[] = $_data['qid'];
Open commit View diff
94 $qids[] = $_data['qid'];
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
95
    }
Open commit View diff
95 }
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
96
    else {
Open commit View diff
96 else {
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
97
      $qids = $_data['qid'];
Open commit View diff
97 $qids = $_data['qid'];
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
98
    }
Open commit View diff
98 }
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
99
    $docker_return = docker('post', 'postfix-mailcow', 'exec', array('cmd' => 'mailq', 'task' => 'cat', 'items' => $qids));
Open commit View diff
99 $docker_return = docker('post', 'postfix-mailcow', 'exec', array('cmd' => 'mailq', 'task' => 'cat', 'items' => $qids));
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
100
    return process_mailq_output($docker_return, $_action, $_data);
Open commit View diff
100 return process_mailq_output($docker_return, $_action, $_data);
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
101
  }
Open commit View diff
101 }
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
102
  elseif ($_action == 'edit') {
Open commit View diff
102 elseif ($_action == 'edit') {
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
103
    if (in_array($_data['action'], array('hold', 'unhold', 'deliver'))) {
Open commit View diff
103 if (in_array($_data['action'], array('hold', 'unhold', 'deliver'))) {
André over 7 years ago e30dfd6

[Web] Queue manager for Postfix

Full commit hash
e30dfd6751d27f4edece2c58866a486b338cb7d2
Author
André <[email protected]>
Date
over 7 years ago
Selected line
104
      if (!is_array($_data['qid'])) {
Open commit View diff
104 if (!is_array($_data['qid'])) {
same change e30dfd6

[Web] Queue manager for Postfix

Full commit hash
e30dfd6751d27f4edece2c58866a486b338cb7d2
Author
André <[email protected]>
Date
over 7 years ago
Selected line
105
        $qids = array();
Open commit View diff
105 $qids = array();
same change e30dfd6

[Web] Queue manager for Postfix

Full commit hash
e30dfd6751d27f4edece2c58866a486b338cb7d2
Author
André <[email protected]>
Date
over 7 years ago
Selected line
106
        $qids[] = $_data['qid'];
Open commit View diff
106 $qids[] = $_data['qid'];
same change e30dfd6

[Web] Queue manager for Postfix

Full commit hash
e30dfd6751d27f4edece2c58866a486b338cb7d2
Author
André <[email protected]>
Date
over 7 years ago
Selected line
107
      }
Open commit View diff
107 }
same change e30dfd6

[Web] Queue manager for Postfix

Full commit hash
e30dfd6751d27f4edece2c58866a486b338cb7d2
Author
André <[email protected]>
Date
over 7 years ago
Selected line
108
      else {
Open commit View diff
108 else {
same change e30dfd6

[Web] Queue manager for Postfix

Full commit hash
e30dfd6751d27f4edece2c58866a486b338cb7d2
Author
André <[email protected]>
Date
over 7 years ago
Selected line
109
        $qids = $_data['qid'];
Open commit View diff
109 $qids = $_data['qid'];
same change e30dfd6

[Web] Queue manager for Postfix

Full commit hash
e30dfd6751d27f4edece2c58866a486b338cb7d2
Author
André <[email protected]>
Date
over 7 years ago
Selected line
110
      }
Open commit View diff
110 }
andryyy about 6 years ago 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
111
      if (!empty($qids)) {
Open commit View diff
111 if (!empty($qids)) {
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
112
        $docker_return = docker('post', 'postfix-mailcow', 'exec', array('cmd' => 'mailq', 'task' => $_data['action'], 'items' => $qids));
Open commit View diff
112 $docker_return = docker('post', 'postfix-mailcow', 'exec', array('cmd' => 'mailq', 'task' => $_data['action'], 'items' => $qids));
André over 7 years ago e30dfd6

[Web] Queue manager for Postfix

Full commit hash
e30dfd6751d27f4edece2c58866a486b338cb7d2
Author
André <[email protected]>
Date
over 7 years ago
Selected line
113
        process_mailq_output(json_decode($docker_return, true), $_action, $_data);
Open commit View diff
113 process_mailq_output(json_decode($docker_return, true), $_action, $_data);
same change e30dfd6

[Web] Queue manager for Postfix

Full commit hash
e30dfd6751d27f4edece2c58866a486b338cb7d2
Author
André <[email protected]>
Date
over 7 years ago
Selected line
114
      }
Open commit View diff
114 }
andryyy about 6 years ago 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
115
    }
Open commit View diff
115 }
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
116
    if (in_array($_data['action'], array('flush', 'super_delete'))) {
Open commit View diff
116 if (in_array($_data['action'], array('flush', 'super_delete'))) {
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
117
      $docker_return = docker('post', 'postfix-mailcow', 'exec', array('cmd' => 'mailq', 'task' => $_data['action']));
Open commit View diff
117 $docker_return = docker('post', 'postfix-mailcow', 'exec', array('cmd' => 'mailq', 'task' => $_data['action']));
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
118
      process_mailq_output(json_decode($docker_return, true), $_action, $_data);
Open commit View diff
118 process_mailq_output(json_decode($docker_return, true), $_action, $_data);
same change 21a153c

[Web] Fix symbol options encoding in rspamd item view

Full commit hash
21a153c2a782e6f0ea25b4f4b33b47f12fddcaa0
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
119
    }
Open commit View diff
119 }
André over 7 years ago e30dfd6

[Web] Queue manager for Postfix

Full commit hash
e30dfd6751d27f4edece2c58866a486b338cb7d2
Author
André <[email protected]>
Date
over 7 years ago
Selected line
120
  }
Open commit View diff
120 }
same change e30dfd6

[Web] Queue manager for Postfix

Full commit hash
e30dfd6751d27f4edece2c58866a486b338cb7d2
Author
André <[email protected]>
Date
over 7 years ago
Selected line
121
}
Open commit View diff
121 }