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/Dockerfiles/dockerapi/modules/DockerApi.py

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

DockerApi.py on main
Author Date Commit Line Code
FreddleSpl0it about 3 years ago 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
1
import psutil
Open commit View diff
1 import psutil
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2
import sys
Open commit View diff
2 import sys
FreddleSpl0it about 3 years ago 0f0d43b

[Dockerapi] add missing import os

Full commit hash
0f0d43b253185e0980d96e8a7cdc98c6cd0ae457
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
3
import os
Open commit View diff
3 import os
FreddleSpl0it about 3 years ago 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
4
import re
Open commit View diff
4 import re
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
5
import time
Open commit View diff
5 import time
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
6
import json
Open commit View diff
6 import json
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
7
import asyncio
Open commit View diff
7 import asyncio
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
8
import platform
Open commit View diff
8 import platform
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
9
from datetime import datetime
Open commit View diff
9 from datetime import datetime
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
10
from fastapi import FastAPI, Response, Request
Open commit View diff
10 from fastapi import FastAPI, Response, Request
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
11
Open commit View diff
11
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
12
class DockerApi:
Open commit View diff
12 class DockerApi:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
13
  def __init__(self, redis_client, sync_docker_client, async_docker_client, logger):
Open commit View diff
13 def __init__(self, redis_client, sync_docker_client, async_docker_client, logger):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
14
    self.redis_client = redis_client
Open commit View diff
14 self.redis_client = redis_client
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
15
    self.sync_docker_client = sync_docker_client
Open commit View diff
15 self.sync_docker_client = sync_docker_client
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
16
    self.async_docker_client = async_docker_client
Open commit View diff
16 self.async_docker_client = async_docker_client
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
17
    self.logger = logger
Open commit View diff
17 self.logger = logger
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
18
Open commit View diff
18
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
19
    self.host_stats_isUpdating = False
Open commit View diff
19 self.host_stats_isUpdating = False
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
20
    self.containerIds_to_update = []
Open commit View diff
20 self.containerIds_to_update = []
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
21
Open commit View diff
21
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
22
  # api call: container_post - post_action: stop
Open commit View diff
22 # api call: container_post - post_action: stop
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
23
  def container_post__stop(self, request_json, **kwargs):
Open commit View diff
23 def container_post__stop(self, request_json, **kwargs):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
24
    if 'container_id' in kwargs:
Open commit View diff
24 if 'container_id' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
25
      filters = {"id": kwargs['container_id']}
Open commit View diff
25 filters = {"id": kwargs['container_id']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
26
    elif 'container_name' in kwargs:
Open commit View diff
26 elif 'container_name' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
27
      filters = {"name": kwargs['container_name']}
Open commit View diff
27 filters = {"name": kwargs['container_name']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
28
Open commit View diff
28
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
29
    for container in self.sync_docker_client.containers.list(all=True, filters=filters):
Open commit View diff
29 for container in self.sync_docker_client.containers.list(all=True, filters=filters):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
30
      container.stop()
Open commit View diff
30 container.stop()
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
31
Open commit View diff
31
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
32
    res = { 'type': 'success', 'msg': 'command completed successfully'}
Open commit View diff
32 res = { 'type': 'success', 'msg': 'command completed successfully'}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
33
    return Response(content=json.dumps(res, indent=4), media_type="application/json")
Open commit View diff
33 return Response(content=json.dumps(res, indent=4), media_type="application/json")
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
34
  # api call: container_post - post_action: start
Open commit View diff
34 # api call: container_post - post_action: start
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
35
  def container_post__start(self, request_json, **kwargs):
Open commit View diff
35 def container_post__start(self, request_json, **kwargs):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
36
    if 'container_id' in kwargs:
Open commit View diff
36 if 'container_id' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
37
      filters = {"id": kwargs['container_id']}
Open commit View diff
37 filters = {"id": kwargs['container_id']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
38
    elif 'container_name' in kwargs:
Open commit View diff
38 elif 'container_name' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
39
      filters = {"name": kwargs['container_name']}
Open commit View diff
39 filters = {"name": kwargs['container_name']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
40
Open commit View diff
40
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
41
    for container in self.sync_docker_client.containers.list(all=True, filters=filters):
Open commit View diff
41 for container in self.sync_docker_client.containers.list(all=True, filters=filters):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
42
      container.start()
Open commit View diff
42 container.start()
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
43
Open commit View diff
43
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
44
    res = { 'type': 'success', 'msg': 'command completed successfully'}
Open commit View diff
44 res = { 'type': 'success', 'msg': 'command completed successfully'}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
45
    return Response(content=json.dumps(res, indent=4), media_type="application/json")
Open commit View diff
45 return Response(content=json.dumps(res, indent=4), media_type="application/json")
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
46
  # api call: container_post - post_action: restart
Open commit View diff
46 # api call: container_post - post_action: restart
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
47
  def container_post__restart(self, request_json, **kwargs):
Open commit View diff
47 def container_post__restart(self, request_json, **kwargs):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
48
    if 'container_id' in kwargs:
Open commit View diff
48 if 'container_id' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
49
      filters = {"id": kwargs['container_id']}
Open commit View diff
49 filters = {"id": kwargs['container_id']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
50
    elif 'container_name' in kwargs:
Open commit View diff
50 elif 'container_name' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
51
      filters = {"name": kwargs['container_name']}
Open commit View diff
51 filters = {"name": kwargs['container_name']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
52
Open commit View diff
52
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
53
    for container in self.sync_docker_client.containers.list(all=True, filters=filters):
Open commit View diff
53 for container in self.sync_docker_client.containers.list(all=True, filters=filters):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
54
      container.restart()
Open commit View diff
54 container.restart()
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
55
Open commit View diff
55
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
56
    res = { 'type': 'success', 'msg': 'command completed successfully'}
Open commit View diff
56 res = { 'type': 'success', 'msg': 'command completed successfully'}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
57
    return Response(content=json.dumps(res, indent=4), media_type="application/json")
Open commit View diff
57 return Response(content=json.dumps(res, indent=4), media_type="application/json")
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
58
  # api call: container_post - post_action: top
Open commit View diff
58 # api call: container_post - post_action: top
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
59
  def container_post__top(self, request_json, **kwargs):
Open commit View diff
59 def container_post__top(self, request_json, **kwargs):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
60
    if 'container_id' in kwargs:
Open commit View diff
60 if 'container_id' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
61
      filters = {"id": kwargs['container_id']}
Open commit View diff
61 filters = {"id": kwargs['container_id']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
62
    elif 'container_name' in kwargs:
Open commit View diff
62 elif 'container_name' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
63
      filters = {"name": kwargs['container_name']}
Open commit View diff
63 filters = {"name": kwargs['container_name']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
64
Open commit View diff
64
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
65
    for container in self.sync_docker_client.containers.list(all=True, filters=filters):
Open commit View diff
65 for container in self.sync_docker_client.containers.list(all=True, filters=filters):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
66
      res = { 'type': 'success', 'msg': container.top()}
Open commit View diff
66 res = { 'type': 'success', 'msg': container.top()}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
67
      return Response(content=json.dumps(res, indent=4), media_type="application/json")
Open commit View diff
67 return Response(content=json.dumps(res, indent=4), media_type="application/json")
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
68
  # api call: container_post - post_action: stats
Open commit View diff
68 # api call: container_post - post_action: stats
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
69
  def container_post__stats(self, request_json, **kwargs):
Open commit View diff
69 def container_post__stats(self, request_json, **kwargs):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
70
    if 'container_id' in kwargs:
Open commit View diff
70 if 'container_id' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
71
      filters = {"id": kwargs['container_id']}
Open commit View diff
71 filters = {"id": kwargs['container_id']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
72
    elif 'container_name' in kwargs:
Open commit View diff
72 elif 'container_name' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
73
      filters = {"name": kwargs['container_name']}
Open commit View diff
73 filters = {"name": kwargs['container_name']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
74
Open commit View diff
74
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
75
    for container in self.sync_docker_client.containers.list(all=True, filters=filters):
Open commit View diff
75 for container in self.sync_docker_client.containers.list(all=True, filters=filters):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
76
      for stat in container.stats(decode=True, stream=True):
Open commit View diff
76 for stat in container.stats(decode=True, stream=True):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
77
        res = { 'type': 'success', 'msg': stat}
Open commit View diff
77 res = { 'type': 'success', 'msg': stat}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
78
        return Response(content=json.dumps(res, indent=4), media_type="application/json")
Open commit View diff
78 return Response(content=json.dumps(res, indent=4), media_type="application/json")
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
79
  # api call: container_post - post_action: exec - cmd: mailq - task: delete
Open commit View diff
79 # api call: container_post - post_action: exec - cmd: mailq - task: delete
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
80
  def container_post__exec__mailq__delete(self, request_json, **kwargs):
Open commit View diff
80 def container_post__exec__mailq__delete(self, request_json, **kwargs):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
81
    if 'container_id' in kwargs:
Open commit View diff
81 if 'container_id' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
82
      filters = {"id": kwargs['container_id']}
Open commit View diff
82 filters = {"id": kwargs['container_id']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
83
    elif 'container_name' in kwargs:
Open commit View diff
83 elif 'container_name' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
84
      filters = {"name": kwargs['container_name']}
Open commit View diff
84 filters = {"name": kwargs['container_name']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
85
Open commit View diff
85
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
86
    if 'items' in request_json:
Open commit View diff
86 if 'items' in request_json:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
87
      r = re.compile("^[0-9a-fA-F]+$")
Open commit View diff
87 r = re.compile("^[0-9a-fA-F]+$")
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
88
      filtered_qids = filter(r.match, request_json['items'])
Open commit View diff
88 filtered_qids = filter(r.match, request_json['items'])
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
89
      if filtered_qids:
Open commit View diff
89 if filtered_qids:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
90
        flagged_qids = ['-d %s' % i for i in filtered_qids]
Open commit View diff
90 flagged_qids = ['-d %s' % i for i in filtered_qids]
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
91
        sanitized_string = str(' '.join(flagged_qids))
Open commit View diff
91 sanitized_string = str(' '.join(flagged_qids))
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
92
        for container in self.sync_docker_client.containers.list(filters=filters):
Open commit View diff
92 for container in self.sync_docker_client.containers.list(filters=filters):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
93
          postsuper_r = container.exec_run(["/bin/bash", "-c", "/usr/sbin/postsuper " + sanitized_string])
Open commit View diff
93 postsuper_r = container.exec_run(["/bin/bash", "-c", "/usr/sbin/postsuper " + sanitized_string])
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
94
          return self.exec_run_handler('generic', postsuper_r)
Open commit View diff
94 return self.exec_run_handler('generic', postsuper_r)
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
95
  # api call: container_post - post_action: exec - cmd: mailq - task: hold
Open commit View diff
95 # api call: container_post - post_action: exec - cmd: mailq - task: hold
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
96
  def container_post__exec__mailq__hold(self, request_json, **kwargs):
Open commit View diff
96 def container_post__exec__mailq__hold(self, request_json, **kwargs):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
97
    if 'container_id' in kwargs:
Open commit View diff
97 if 'container_id' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
98
      filters = {"id": kwargs['container_id']}
Open commit View diff
98 filters = {"id": kwargs['container_id']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
99
    elif 'container_name' in kwargs:
Open commit View diff
99 elif 'container_name' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
100
      filters = {"name": kwargs['container_name']}
Open commit View diff
100 filters = {"name": kwargs['container_name']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
101
Open commit View diff
101
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
102
    if 'items' in request_json:
Open commit View diff
102 if 'items' in request_json:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
103
      r = re.compile("^[0-9a-fA-F]+$")
Open commit View diff
103 r = re.compile("^[0-9a-fA-F]+$")
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
104
      filtered_qids = filter(r.match, request_json['items'])
Open commit View diff
104 filtered_qids = filter(r.match, request_json['items'])
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
105
      if filtered_qids:
Open commit View diff
105 if filtered_qids:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
106
        flagged_qids = ['-h %s' % i for i in filtered_qids]
Open commit View diff
106 flagged_qids = ['-h %s' % i for i in filtered_qids]
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
107
        sanitized_string = str(' '.join(flagged_qids))
Open commit View diff
107 sanitized_string = str(' '.join(flagged_qids))
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
108
        for container in self.sync_docker_client.containers.list(filters=filters):
Open commit View diff
108 for container in self.sync_docker_client.containers.list(filters=filters):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
109
          postsuper_r = container.exec_run(["/bin/bash", "-c", "/usr/sbin/postsuper " + sanitized_string])
Open commit View diff
109 postsuper_r = container.exec_run(["/bin/bash", "-c", "/usr/sbin/postsuper " + sanitized_string])
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
110
          return self.exec_run_handler('generic', postsuper_r)
Open commit View diff
110 return self.exec_run_handler('generic', postsuper_r)
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
111
  # api call: container_post - post_action: exec - cmd: mailq - task: cat
Open commit View diff
111 # api call: container_post - post_action: exec - cmd: mailq - task: cat
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
112
  def container_post__exec__mailq__cat(self, request_json, **kwargs):
Open commit View diff
112 def container_post__exec__mailq__cat(self, request_json, **kwargs):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
113
    if 'container_id' in kwargs:
Open commit View diff
113 if 'container_id' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
114
      filters = {"id": kwargs['container_id']}
Open commit View diff
114 filters = {"id": kwargs['container_id']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
115
    elif 'container_name' in kwargs:
Open commit View diff
115 elif 'container_name' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
116
      filters = {"name": kwargs['container_name']}
Open commit View diff
116 filters = {"name": kwargs['container_name']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
117
Open commit View diff
117
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
118
    if 'items' in request_json:
Open commit View diff
118 if 'items' in request_json:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
119
      r = re.compile("^[0-9a-fA-F]+$")
Open commit View diff
119 r = re.compile("^[0-9a-fA-F]+$")
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
120
      filtered_qids = filter(r.match, request_json['items'])
Open commit View diff
120 filtered_qids = filter(r.match, request_json['items'])
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
121
      if filtered_qids:
Open commit View diff
121 if filtered_qids:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
122
        sanitized_string = str(' '.join(filtered_qids))
Open commit View diff
122 sanitized_string = str(' '.join(filtered_qids))
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
123
Open commit View diff
123
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
124
        for container in self.sync_docker_client.containers.list(filters=filters):
Open commit View diff
124 for container in self.sync_docker_client.containers.list(filters=filters):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
125
          postcat_return = container.exec_run(["/bin/bash", "-c", "/usr/sbin/postcat -q " + sanitized_string], user='postfix')
Open commit View diff
125 postcat_return = container.exec_run(["/bin/bash", "-c", "/usr/sbin/postcat -q " + sanitized_string], user='postfix')
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
126
        if not postcat_return:
Open commit View diff
126 if not postcat_return:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
127
          postcat_return = 'err: invalid'
Open commit View diff
127 postcat_return = 'err: invalid'
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
128
        return self.exec_run_handler('utf8_text_only', postcat_return)
Open commit View diff
128 return self.exec_run_handler('utf8_text_only', postcat_return)
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
129
  # api call: container_post - post_action: exec - cmd: mailq - task: unhold
Open commit View diff
129 # api call: container_post - post_action: exec - cmd: mailq - task: unhold
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
130
  def container_post__exec__mailq__unhold(self, request_json, **kwargs):
Open commit View diff
130 def container_post__exec__mailq__unhold(self, request_json, **kwargs):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
131
    if 'container_id' in kwargs:
Open commit View diff
131 if 'container_id' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
132
      filters = {"id": kwargs['container_id']}
Open commit View diff
132 filters = {"id": kwargs['container_id']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
133
    elif 'container_name' in kwargs:
Open commit View diff
133 elif 'container_name' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
134
      filters = {"name": kwargs['container_name']}
Open commit View diff
134 filters = {"name": kwargs['container_name']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
135
Open commit View diff
135
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
136
    if 'items' in request_json:
Open commit View diff
136 if 'items' in request_json:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
137
      r = re.compile("^[0-9a-fA-F]+$")
Open commit View diff
137 r = re.compile("^[0-9a-fA-F]+$")
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
138
      filtered_qids = filter(r.match, request_json['items'])
Open commit View diff
138 filtered_qids = filter(r.match, request_json['items'])
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
139
      if filtered_qids:
Open commit View diff
139 if filtered_qids:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
140
        flagged_qids = ['-H %s' % i for i in filtered_qids]
Open commit View diff
140 flagged_qids = ['-H %s' % i for i in filtered_qids]
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
141
        sanitized_string = str(' '.join(flagged_qids))
Open commit View diff
141 sanitized_string = str(' '.join(flagged_qids))
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
142
        for container in self.sync_docker_client.containers.list(filters=filters):
Open commit View diff
142 for container in self.sync_docker_client.containers.list(filters=filters):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
143
          postsuper_r = container.exec_run(["/bin/bash", "-c", "/usr/sbin/postsuper " + sanitized_string])
Open commit View diff
143 postsuper_r = container.exec_run(["/bin/bash", "-c", "/usr/sbin/postsuper " + sanitized_string])
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
144
          return self.exec_run_handler('generic', postsuper_r)
Open commit View diff
144 return self.exec_run_handler('generic', postsuper_r)
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
145
  # api call: container_post - post_action: exec - cmd: mailq - task: deliver
Open commit View diff
145 # api call: container_post - post_action: exec - cmd: mailq - task: deliver
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
146
  def container_post__exec__mailq__deliver(self, request_json, **kwargs):
Open commit View diff
146 def container_post__exec__mailq__deliver(self, request_json, **kwargs):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
147
    if 'container_id' in kwargs:
Open commit View diff
147 if 'container_id' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
148
      filters = {"id": kwargs['container_id']}
Open commit View diff
148 filters = {"id": kwargs['container_id']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
149
    elif 'container_name' in kwargs:
Open commit View diff
149 elif 'container_name' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
150
      filters = {"name": kwargs['container_name']}
Open commit View diff
150 filters = {"name": kwargs['container_name']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
151
Open commit View diff
151
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
152
    if 'items' in request_json:
Open commit View diff
152 if 'items' in request_json:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
153
      r = re.compile("^[0-9a-fA-F]+$")
Open commit View diff
153 r = re.compile("^[0-9a-fA-F]+$")
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
154
      filtered_qids = filter(r.match, request_json['items'])
Open commit View diff
154 filtered_qids = filter(r.match, request_json['items'])
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
155
      if filtered_qids:
Open commit View diff
155 if filtered_qids:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
156
        flagged_qids = ['-i %s' % i for i in filtered_qids]
Open commit View diff
156 flagged_qids = ['-i %s' % i for i in filtered_qids]
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
157
        for container in self.sync_docker_client.containers.list(filters=filters):
Open commit View diff
157 for container in self.sync_docker_client.containers.list(filters=filters):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
158
          for i in flagged_qids:
Open commit View diff
158 for i in flagged_qids:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
159
            postqueue_r = container.exec_run(["/bin/bash", "-c", "/usr/sbin/postqueue " + i], user='postfix')
Open commit View diff
159 postqueue_r = container.exec_run(["/bin/bash", "-c", "/usr/sbin/postqueue " + i], user='postfix')
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
160
            # todo: check each exit code
Open commit View diff
160 # todo: check each exit code
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
161
          res = { 'type': 'success', 'msg': 'Scheduled immediate delivery'}
Open commit View diff
161 res = { 'type': 'success', 'msg': 'Scheduled immediate delivery'}
FreddleSpl0it almost 2 years ago 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
162
          return Response(content=json.dumps(res, indent=4), media_type="application/json")
Open commit View diff
162 return Response(content=json.dumps(res, indent=4), media_type="application/json")
FreddleSpl0it about 3 years ago 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
163
  # api call: container_post - post_action: exec - cmd: mailq - task: list
Open commit View diff
163 # api call: container_post - post_action: exec - cmd: mailq - task: list
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
164
  def container_post__exec__mailq__list(self, request_json, **kwargs):
Open commit View diff
164 def container_post__exec__mailq__list(self, request_json, **kwargs):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
165
    if 'container_id' in kwargs:
Open commit View diff
165 if 'container_id' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
166
      filters = {"id": kwargs['container_id']}
Open commit View diff
166 filters = {"id": kwargs['container_id']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
167
    elif 'container_name' in kwargs:
Open commit View diff
167 elif 'container_name' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
168
      filters = {"name": kwargs['container_name']}
Open commit View diff
168 filters = {"name": kwargs['container_name']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
169
Open commit View diff
169
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
170
    for container in self.sync_docker_client.containers.list(filters=filters):
Open commit View diff
170 for container in self.sync_docker_client.containers.list(filters=filters):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
171
      mailq_return = container.exec_run(["/usr/sbin/postqueue", "-j"], user='postfix')
Open commit View diff
171 mailq_return = container.exec_run(["/usr/sbin/postqueue", "-j"], user='postfix')
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
172
      return self.exec_run_handler('utf8_text_only', mailq_return)
Open commit View diff
172 return self.exec_run_handler('utf8_text_only', mailq_return)
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
173
  # api call: container_post - post_action: exec - cmd: mailq - task: flush
Open commit View diff
173 # api call: container_post - post_action: exec - cmd: mailq - task: flush
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
174
  def container_post__exec__mailq__flush(self, request_json, **kwargs):
Open commit View diff
174 def container_post__exec__mailq__flush(self, request_json, **kwargs):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
175
    if 'container_id' in kwargs:
Open commit View diff
175 if 'container_id' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
176
      filters = {"id": kwargs['container_id']}
Open commit View diff
176 filters = {"id": kwargs['container_id']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
177
    elif 'container_name' in kwargs:
Open commit View diff
177 elif 'container_name' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
178
      filters = {"name": kwargs['container_name']}
Open commit View diff
178 filters = {"name": kwargs['container_name']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
179
Open commit View diff
179
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
180
    for container in self.sync_docker_client.containers.list(filters=filters):
Open commit View diff
180 for container in self.sync_docker_client.containers.list(filters=filters):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
181
      postqueue_r = container.exec_run(["/usr/sbin/postqueue", "-f"], user='postfix')
Open commit View diff
181 postqueue_r = container.exec_run(["/usr/sbin/postqueue", "-f"], user='postfix')
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
182
      return self.exec_run_handler('generic', postqueue_r)
Open commit View diff
182 return self.exec_run_handler('generic', postqueue_r)
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
183
  # api call: container_post - post_action: exec - cmd: mailq - task: super_delete
Open commit View diff
183 # api call: container_post - post_action: exec - cmd: mailq - task: super_delete
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
184
  def container_post__exec__mailq__super_delete(self, request_json, **kwargs):
Open commit View diff
184 def container_post__exec__mailq__super_delete(self, request_json, **kwargs):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
185
    if 'container_id' in kwargs:
Open commit View diff
185 if 'container_id' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
186
      filters = {"id": kwargs['container_id']}
Open commit View diff
186 filters = {"id": kwargs['container_id']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
187
    elif 'container_name' in kwargs:
Open commit View diff
187 elif 'container_name' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
188
      filters = {"name": kwargs['container_name']}
Open commit View diff
188 filters = {"name": kwargs['container_name']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
189
Open commit View diff
189
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
190
    for container in self.sync_docker_client.containers.list(filters=filters):
Open commit View diff
190 for container in self.sync_docker_client.containers.list(filters=filters):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
191
      postsuper_r = container.exec_run(["/usr/sbin/postsuper", "-d", "ALL"])
Open commit View diff
191 postsuper_r = container.exec_run(["/usr/sbin/postsuper", "-d", "ALL"])
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
192
      return self.exec_run_handler('generic', postsuper_r)
Open commit View diff
192 return self.exec_run_handler('generic', postsuper_r)
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
193
  # api call: container_post - post_action: exec - cmd: system - task: fts_rescan
Open commit View diff
193 # api call: container_post - post_action: exec - cmd: system - task: fts_rescan
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
194
  def container_post__exec__system__fts_rescan(self, request_json, **kwargs):
Open commit View diff
194 def container_post__exec__system__fts_rescan(self, request_json, **kwargs):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
195
    if 'container_id' in kwargs:
Open commit View diff
195 if 'container_id' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
196
      filters = {"id": kwargs['container_id']}
Open commit View diff
196 filters = {"id": kwargs['container_id']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
197
    elif 'container_name' in kwargs:
Open commit View diff
197 elif 'container_name' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
198
      filters = {"name": kwargs['container_name']}
Open commit View diff
198 filters = {"name": kwargs['container_name']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
199
Open commit View diff
199
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
200
    if 'username' in request_json:
Open commit View diff
200 if 'username' in request_json:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
201
      for container in self.sync_docker_client.containers.list(filters=filters):
Open commit View diff
201 for container in self.sync_docker_client.containers.list(filters=filters):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
202
        rescan_return = container.exec_run(["/bin/bash", "-c", "/usr/bin/doveadm fts rescan -u '" + request_json['username'].replace("'", "'\\''") + "'"], user='vmail')
Open commit View diff
202 rescan_return = container.exec_run(["/bin/bash", "-c", "/usr/bin/doveadm fts rescan -u '" + request_json['username'].replace("'", "'\\''") + "'"], user='vmail')
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
203
        if rescan_return.exit_code == 0:
Open commit View diff
203 if rescan_return.exit_code == 0:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
204
          res = { 'type': 'success', 'msg': 'fts_rescan: rescan triggered'}
Open commit View diff
204 res = { 'type': 'success', 'msg': 'fts_rescan: rescan triggered'}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
205
          return Response(content=json.dumps(res, indent=4), media_type="application/json")
Open commit View diff
205 return Response(content=json.dumps(res, indent=4), media_type="application/json")
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
206
        else:
Open commit View diff
206 else:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
207
          res = { 'type': 'warning', 'msg': 'fts_rescan error'}
Open commit View diff
207 res = { 'type': 'warning', 'msg': 'fts_rescan error'}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
208
          return Response(content=json.dumps(res, indent=4), media_type="application/json")
Open commit View diff
208 return Response(content=json.dumps(res, indent=4), media_type="application/json")
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
209
    if 'all' in request_json:
Open commit View diff
209 if 'all' in request_json:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
210
      for container in self.sync_docker_client.containers.list(filters=filters):
Open commit View diff
210 for container in self.sync_docker_client.containers.list(filters=filters):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
211
        rescan_return = container.exec_run(["/bin/bash", "-c", "/usr/bin/doveadm fts rescan -A"], user='vmail')
Open commit View diff
211 rescan_return = container.exec_run(["/bin/bash", "-c", "/usr/bin/doveadm fts rescan -A"], user='vmail')
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
212
        if rescan_return.exit_code == 0:
Open commit View diff
212 if rescan_return.exit_code == 0:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
213
          res = { 'type': 'success', 'msg': 'fts_rescan: rescan triggered'}
Open commit View diff
213 res = { 'type': 'success', 'msg': 'fts_rescan: rescan triggered'}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
214
          return Response(content=json.dumps(res, indent=4), media_type="application/json")
Open commit View diff
214 return Response(content=json.dumps(res, indent=4), media_type="application/json")
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
215
        else:
Open commit View diff
215 else:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
216
          res = { 'type': 'warning', 'msg': 'fts_rescan error'}
Open commit View diff
216 res = { 'type': 'warning', 'msg': 'fts_rescan error'}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
217
          return Response(content=json.dumps(res, indent=4), media_type="application/json")
Open commit View diff
217 return Response(content=json.dumps(res, indent=4), media_type="application/json")
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
218
  # api call: container_post - post_action: exec - cmd: system - task: df
Open commit View diff
218 # api call: container_post - post_action: exec - cmd: system - task: df
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
219
  def container_post__exec__system__df(self, request_json, **kwargs):
Open commit View diff
219 def container_post__exec__system__df(self, request_json, **kwargs):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
220
    if 'container_id' in kwargs:
Open commit View diff
220 if 'container_id' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
221
      filters = {"id": kwargs['container_id']}
Open commit View diff
221 filters = {"id": kwargs['container_id']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
222
    elif 'container_name' in kwargs:
Open commit View diff
222 elif 'container_name' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
223
      filters = {"name": kwargs['container_name']}
Open commit View diff
223 filters = {"name": kwargs['container_name']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
224
Open commit View diff
224
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
225
    if 'dir' in request_json:
Open commit View diff
225 if 'dir' in request_json:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
226
      for container in self.sync_docker_client.containers.list(filters=filters):
Open commit View diff
226 for container in self.sync_docker_client.containers.list(filters=filters):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
227
        df_return = container.exec_run(["/bin/bash", "-c", "/bin/df -H '" + request_json['dir'].replace("'", "'\\''") + "' | /usr/bin/tail -n1 | /usr/bin/tr -s [:blank:] | /usr/bin/tr ' ' ','"], user='nobody')
Open commit View diff
227 df_return = container.exec_run(["/bin/bash", "-c", "/bin/df -H '" + request_json['dir'].replace("'", "'\\''") + "' | /usr/bin/tail -n1 | /usr/bin/tr -s [:blank:] | /usr/bin/tr ' ' ','"], user='nobody')
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
228
        if df_return.exit_code == 0:
Open commit View diff
228 if df_return.exit_code == 0:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
229
          return df_return.output.decode('utf-8').rstrip()
Open commit View diff
229 return df_return.output.decode('utf-8').rstrip()
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
230
        else:
Open commit View diff
230 else:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
231
          return "0,0,0,0,0,0"
Open commit View diff
231 return "0,0,0,0,0,0"
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
232
  # api call: container_post - post_action: exec - cmd: system - task: mysql_upgrade
Open commit View diff
232 # api call: container_post - post_action: exec - cmd: system - task: mysql_upgrade
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
233
  def container_post__exec__system__mysql_upgrade(self, request_json, **kwargs):
Open commit View diff
233 def container_post__exec__system__mysql_upgrade(self, request_json, **kwargs):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
234
    if 'container_id' in kwargs:
Open commit View diff
234 if 'container_id' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
235
      filters = {"id": kwargs['container_id']}
Open commit View diff
235 filters = {"id": kwargs['container_id']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
236
    elif 'container_name' in kwargs:
Open commit View diff
236 elif 'container_name' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
237
      filters = {"name": kwargs['container_name']}
Open commit View diff
237 filters = {"name": kwargs['container_name']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
238
Open commit View diff
238
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
239
    for container in self.sync_docker_client.containers.list(filters=filters):
Open commit View diff
239 for container in self.sync_docker_client.containers.list(filters=filters):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
240
      sql_return = container.exec_run(["/bin/bash", "-c", "/usr/bin/mysql_upgrade -uroot -p'" + os.environ['DBROOT'].replace("'", "'\\''") + "'\n"], user='mysql')
Open commit View diff
240 sql_return = container.exec_run(["/bin/bash", "-c", "/usr/bin/mysql_upgrade -uroot -p'" + os.environ['DBROOT'].replace("'", "'\\''") + "'\n"], user='mysql')
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
241
      if sql_return.exit_code == 0:
Open commit View diff
241 if sql_return.exit_code == 0:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
242
        matched = False
Open commit View diff
242 matched = False
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
243
        for line in sql_return.output.decode('utf-8').split("\n"):
Open commit View diff
243 for line in sql_return.output.decode('utf-8').split("\n"):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
244
          if 'is already upgraded to' in line:
Open commit View diff
244 if 'is already upgraded to' in line:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
245
            matched = True
Open commit View diff
245 matched = True
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
246
        if matched:
Open commit View diff
246 if matched:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
247
          res = { 'type': 'success', 'msg':'mysql_upgrade: already upgraded', 'text': sql_return.output.decode('utf-8')}
Open commit View diff
247 res = { 'type': 'success', 'msg':'mysql_upgrade: already upgraded', 'text': sql_return.output.decode('utf-8')}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
248
          return Response(content=json.dumps(res, indent=4), media_type="application/json")
Open commit View diff
248 return Response(content=json.dumps(res, indent=4), media_type="application/json")
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
249
        else:
Open commit View diff
249 else:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
250
          container.restart()
Open commit View diff
250 container.restart()
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
251
          res = { 'type': 'warning', 'msg':'mysql_upgrade: upgrade was applied', 'text': sql_return.output.decode('utf-8')}
Open commit View diff
251 res = { 'type': 'warning', 'msg':'mysql_upgrade: upgrade was applied', 'text': sql_return.output.decode('utf-8')}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
252
          return Response(content=json.dumps(res, indent=4), media_type="application/json")
Open commit View diff
252 return Response(content=json.dumps(res, indent=4), media_type="application/json")
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
253
      else:
Open commit View diff
253 else:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
254
        res = { 'type': 'error', 'msg': 'mysql_upgrade: error running command', 'text': sql_return.output.decode('utf-8')}
Open commit View diff
254 res = { 'type': 'error', 'msg': 'mysql_upgrade: error running command', 'text': sql_return.output.decode('utf-8')}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
255
        return Response(content=json.dumps(res, indent=4), media_type="application/json")
Open commit View diff
255 return Response(content=json.dumps(res, indent=4), media_type="application/json")
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
256
  # api call: container_post - post_action: exec - cmd: system - task: mysql_tzinfo_to_sql
Open commit View diff
256 # api call: container_post - post_action: exec - cmd: system - task: mysql_tzinfo_to_sql
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
257
  def container_post__exec__system__mysql_tzinfo_to_sql(self, request_json, **kwargs):
Open commit View diff
257 def container_post__exec__system__mysql_tzinfo_to_sql(self, request_json, **kwargs):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
258
    if 'container_id' in kwargs:
Open commit View diff
258 if 'container_id' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
259
      filters = {"id": kwargs['container_id']}
Open commit View diff
259 filters = {"id": kwargs['container_id']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
260
    elif 'container_name' in kwargs:
Open commit View diff
260 elif 'container_name' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
261
      filters = {"name": kwargs['container_name']}
Open commit View diff
261 filters = {"name": kwargs['container_name']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
262
Open commit View diff
262
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
263
    for container in self.sync_docker_client.containers.list(filters=filters):
Open commit View diff
263 for container in self.sync_docker_client.containers.list(filters=filters):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
264
      sql_return = container.exec_run(["/bin/bash", "-c", "/usr/bin/mysql_tzinfo_to_sql /usr/share/zoneinfo | /bin/sed 's/Local time zone must be set--see zic manual page/FCTY/' | /usr/bin/mysql -uroot -p'" + os.environ['DBROOT'].replace("'", "'\\''") + "' mysql \n"], user='mysql')
Open commit View diff
264 sql_return = container.exec_run(["/bin/bash", "-c", "/usr/bin/mysql_tzinfo_to_sql /usr/share/zoneinfo | /bin/sed 's/Local time zone must be set--see zic manual page/FCTY/' | /usr/bin/mysql -uroot -p'" + os.environ['DBROOT'].replace("'", "'\\''") + "' mysql \n"], user='mysql')
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
265
      if sql_return.exit_code == 0:
Open commit View diff
265 if sql_return.exit_code == 0:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
266
        res = { 'type': 'info', 'msg': 'mysql_tzinfo_to_sql: command completed successfully', 'text': sql_return.output.decode('utf-8')}
Open commit View diff
266 res = { 'type': 'info', 'msg': 'mysql_tzinfo_to_sql: command completed successfully', 'text': sql_return.output.decode('utf-8')}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
267
        return Response(content=json.dumps(res, indent=4), media_type="application/json")
Open commit View diff
267 return Response(content=json.dumps(res, indent=4), media_type="application/json")
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
268
      else:
Open commit View diff
268 else:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
269
        res = { 'type': 'error', 'msg': 'mysql_tzinfo_to_sql: error running command', 'text': sql_return.output.decode('utf-8')}
Open commit View diff
269 res = { 'type': 'error', 'msg': 'mysql_tzinfo_to_sql: error running command', 'text': sql_return.output.decode('utf-8')}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
270
        return Response(content=json.dumps(res, indent=4), media_type="application/json")
Open commit View diff
270 return Response(content=json.dumps(res, indent=4), media_type="application/json")
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
271
  # api call: container_post - post_action: exec - cmd: reload - task: dovecot
Open commit View diff
271 # api call: container_post - post_action: exec - cmd: reload - task: dovecot
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
272
  def container_post__exec__reload__dovecot(self, request_json, **kwargs):
Open commit View diff
272 def container_post__exec__reload__dovecot(self, request_json, **kwargs):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
273
    if 'container_id' in kwargs:
Open commit View diff
273 if 'container_id' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
274
      filters = {"id": kwargs['container_id']}
Open commit View diff
274 filters = {"id": kwargs['container_id']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
275
    elif 'container_name' in kwargs:
Open commit View diff
275 elif 'container_name' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
276
      filters = {"name": kwargs['container_name']}
Open commit View diff
276 filters = {"name": kwargs['container_name']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
277
Open commit View diff
277
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
278
    for container in self.sync_docker_client.containers.list(filters=filters):
Open commit View diff
278 for container in self.sync_docker_client.containers.list(filters=filters):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
279
      reload_return = container.exec_run(["/bin/bash", "-c", "/usr/sbin/dovecot reload"])
Open commit View diff
279 reload_return = container.exec_run(["/bin/bash", "-c", "/usr/sbin/dovecot reload"])
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
280
      return self.exec_run_handler('generic', reload_return)
Open commit View diff
280 return self.exec_run_handler('generic', reload_return)
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
281
  # api call: container_post - post_action: exec - cmd: reload - task: postfix
Open commit View diff
281 # api call: container_post - post_action: exec - cmd: reload - task: postfix
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
282
  def container_post__exec__reload__postfix(self, request_json, **kwargs):
Open commit View diff
282 def container_post__exec__reload__postfix(self, request_json, **kwargs):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
283
    if 'container_id' in kwargs:
Open commit View diff
283 if 'container_id' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
284
      filters = {"id": kwargs['container_id']}
Open commit View diff
284 filters = {"id": kwargs['container_id']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
285
    elif 'container_name' in kwargs:
Open commit View diff
285 elif 'container_name' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
286
      filters = {"name": kwargs['container_name']}
Open commit View diff
286 filters = {"name": kwargs['container_name']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
287
Open commit View diff
287
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
288
    for container in self.sync_docker_client.containers.list(filters=filters):
Open commit View diff
288 for container in self.sync_docker_client.containers.list(filters=filters):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
289
      reload_return = container.exec_run(["/bin/bash", "-c", "/usr/sbin/postfix reload"])
Open commit View diff
289 reload_return = container.exec_run(["/bin/bash", "-c", "/usr/sbin/postfix reload"])
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
290
      return self.exec_run_handler('generic', reload_return)
Open commit View diff
290 return self.exec_run_handler('generic', reload_return)
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
291
  # api call: container_post - post_action: exec - cmd: reload - task: nginx
Open commit View diff
291 # api call: container_post - post_action: exec - cmd: reload - task: nginx
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
292
  def container_post__exec__reload__nginx(self, request_json, **kwargs):
Open commit View diff
292 def container_post__exec__reload__nginx(self, request_json, **kwargs):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
293
    if 'container_id' in kwargs:
Open commit View diff
293 if 'container_id' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
294
      filters = {"id": kwargs['container_id']}
Open commit View diff
294 filters = {"id": kwargs['container_id']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
295
    elif 'container_name' in kwargs:
Open commit View diff
295 elif 'container_name' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
296
      filters = {"name": kwargs['container_name']}
Open commit View diff
296 filters = {"name": kwargs['container_name']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
297
Open commit View diff
297
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
298
    for container in self.sync_docker_client.containers.list(filters=filters):
Open commit View diff
298 for container in self.sync_docker_client.containers.list(filters=filters):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
299
      reload_return = container.exec_run(["/bin/sh", "-c", "/usr/sbin/nginx -s reload"])
Open commit View diff
299 reload_return = container.exec_run(["/bin/sh", "-c", "/usr/sbin/nginx -s reload"])
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
300
      return self.exec_run_handler('generic', reload_return)
Open commit View diff
300 return self.exec_run_handler('generic', reload_return)
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
301
  # api call: container_post - post_action: exec - cmd: sieve - task: list
Open commit View diff
301 # api call: container_post - post_action: exec - cmd: sieve - task: list
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
302
  def container_post__exec__sieve__list(self, request_json, **kwargs):
Open commit View diff
302 def container_post__exec__sieve__list(self, request_json, **kwargs):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
303
    if 'container_id' in kwargs:
Open commit View diff
303 if 'container_id' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
304
      filters = {"id": kwargs['container_id']}
Open commit View diff
304 filters = {"id": kwargs['container_id']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
305
    elif 'container_name' in kwargs:
Open commit View diff
305 elif 'container_name' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
306
      filters = {"name": kwargs['container_name']}
Open commit View diff
306 filters = {"name": kwargs['container_name']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
307
Open commit View diff
307
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
308
    if 'username' in request_json:
Open commit View diff
308 if 'username' in request_json:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
309
      for container in self.sync_docker_client.containers.list(filters=filters):
Open commit View diff
309 for container in self.sync_docker_client.containers.list(filters=filters):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
310
        sieve_return = container.exec_run(["/bin/bash", "-c", "/usr/bin/doveadm sieve list -u '" + request_json['username'].replace("'", "'\\''") + "'"])
Open commit View diff
310 sieve_return = container.exec_run(["/bin/bash", "-c", "/usr/bin/doveadm sieve list -u '" + request_json['username'].replace("'", "'\\''") + "'"])
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
311
        return self.exec_run_handler('utf8_text_only', sieve_return)
Open commit View diff
311 return self.exec_run_handler('utf8_text_only', sieve_return)
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
312
  # api call: container_post - post_action: exec - cmd: sieve - task: print
Open commit View diff
312 # api call: container_post - post_action: exec - cmd: sieve - task: print
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
313
  def container_post__exec__sieve__print(self, request_json, **kwargs):
Open commit View diff
313 def container_post__exec__sieve__print(self, request_json, **kwargs):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
314
    if 'container_id' in kwargs:
Open commit View diff
314 if 'container_id' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
315
      filters = {"id": kwargs['container_id']}
Open commit View diff
315 filters = {"id": kwargs['container_id']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
316
    elif 'container_name' in kwargs:
Open commit View diff
316 elif 'container_name' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
317
      filters = {"name": kwargs['container_name']}
Open commit View diff
317 filters = {"name": kwargs['container_name']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
318
Open commit View diff
318
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
319
    if 'username' in request_json and 'script_name' in request_json:
Open commit View diff
319 if 'username' in request_json and 'script_name' in request_json:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
320
      for container in self.sync_docker_client.containers.list(filters=filters):
Open commit View diff
320 for container in self.sync_docker_client.containers.list(filters=filters):
FreddleSpl0it almost 2 years ago 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
321
        cmd = ["/bin/bash", "-c", "/usr/bin/doveadm sieve get -u '" + request_json['username'].replace("'", "'\\''") + "' '" + request_json['script_name'].replace("'", "'\\''") + "'"]
Open commit View diff
321 cmd = ["/bin/bash", "-c", "/usr/bin/doveadm sieve get -u '" + request_json['username'].replace("'", "'\\''") + "' '" + request_json['script_name'].replace("'", "'\\''") + "'"]
FreddleSpl0it about 3 years ago 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
322
        sieve_return = container.exec_run(cmd)
Open commit View diff
322 sieve_return = container.exec_run(cmd)
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
323
        return self.exec_run_handler('utf8_text_only', sieve_return)
Open commit View diff
323 return self.exec_run_handler('utf8_text_only', sieve_return)
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
324
  # api call: container_post - post_action: exec - cmd: maildir - task: cleanup
Open commit View diff
324 # api call: container_post - post_action: exec - cmd: maildir - task: cleanup
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
325
  def container_post__exec__maildir__cleanup(self, request_json, **kwargs):
Open commit View diff
325 def container_post__exec__maildir__cleanup(self, request_json, **kwargs):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
326
    if 'container_id' in kwargs:
Open commit View diff
326 if 'container_id' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
327
      filters = {"id": kwargs['container_id']}
Open commit View diff
327 filters = {"id": kwargs['container_id']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
328
    elif 'container_name' in kwargs:
Open commit View diff
328 elif 'container_name' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
329
      filters = {"name": kwargs['container_name']}
Open commit View diff
329 filters = {"name": kwargs['container_name']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
330
Open commit View diff
330
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
331
    if 'maildir' in request_json:
Open commit View diff
331 if 'maildir' in request_json:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
332
      for container in self.sync_docker_client.containers.list(filters=filters):
Open commit View diff
332 for container in self.sync_docker_client.containers.list(filters=filters):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
333
        sane_name = re.sub(r'\W+', '', request_json['maildir'])
Open commit View diff
333 sane_name = re.sub(r'\W+', '', request_json['maildir'])
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
334
        vmail_name = request_json['maildir'].replace("'", "'\\''")
Open commit View diff
334 vmail_name = request_json['maildir'].replace("'", "'\\''")
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
335
        cmd_vmail = "if [[ -d '/var/vmail/" + vmail_name + "' ]]; then /bin/mv '/var/vmail/" + vmail_name + "' '/var/vmail/_garbage/" + str(int(time.time())) + "_" + sane_name + "'; fi"
Open commit View diff
335 cmd_vmail = "if [[ -d '/var/vmail/" + vmail_name + "' ]]; then /bin/mv '/var/vmail/" + vmail_name + "' '/var/vmail/_garbage/" + str(int(time.time())) + "_" + sane_name + "'; fi"
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
336
        index_name = request_json['maildir'].split("/")
Open commit View diff
336 index_name = request_json['maildir'].split("/")
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
337
        if len(index_name) > 1:
Open commit View diff
337 if len(index_name) > 1:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
338
          index_name = index_name[1].replace("'", "'\\''") + "@" + index_name[0].replace("'", "'\\''")
Open commit View diff
338 index_name = index_name[1].replace("'", "'\\''") + "@" + index_name[0].replace("'", "'\\''")
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
339
          cmd_vmail_index = "if [[ -d '/var/vmail_index/" + index_name + "' ]]; then /bin/mv '/var/vmail_index/" + index_name + "' '/var/vmail/_garbage/" + str(int(time.time())) + "_" + sane_name + "_index'; fi"
Open commit View diff
339 cmd_vmail_index = "if [[ -d '/var/vmail_index/" + index_name + "' ]]; then /bin/mv '/var/vmail_index/" + index_name + "' '/var/vmail/_garbage/" + str(int(time.time())) + "_" + sane_name + "_index'; fi"
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
340
          cmd = ["/bin/bash", "-c", cmd_vmail + " && " + cmd_vmail_index]
Open commit View diff
340 cmd = ["/bin/bash", "-c", cmd_vmail + " && " + cmd_vmail_index]
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
341
        else:
Open commit View diff
341 else:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
342
          cmd = ["/bin/bash", "-c", cmd_vmail]
Open commit View diff
342 cmd = ["/bin/bash", "-c", cmd_vmail]
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
343
        maildir_cleanup = container.exec_run(cmd, user='vmail')
Open commit View diff
343 maildir_cleanup = container.exec_run(cmd, user='vmail')
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
344
        return self.exec_run_handler('generic', maildir_cleanup)
Open commit View diff
344 return self.exec_run_handler('generic', maildir_cleanup)
FreddleSpl0it almost 2 years ago 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
345
  # api call: container_post - post_action: exec - cmd: maildir - task: move
Open commit View diff
345 # api call: container_post - post_action: exec - cmd: maildir - task: move
same change 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
346
  def container_post__exec__maildir__move(self, request_json, **kwargs):
Open commit View diff
346 def container_post__exec__maildir__move(self, request_json, **kwargs):
same change 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
347
    if 'container_id' in kwargs:
Open commit View diff
347 if 'container_id' in kwargs:
same change 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
348
      filters = {"id": kwargs['container_id']}
Open commit View diff
348 filters = {"id": kwargs['container_id']}
same change 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
349
    elif 'container_name' in kwargs:
Open commit View diff
349 elif 'container_name' in kwargs:
same change 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
350
      filters = {"name": kwargs['container_name']}
Open commit View diff
350 filters = {"name": kwargs['container_name']}
same change 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
351
Open commit View diff
351
same change 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
352
    if 'old_maildir' in request_json and 'new_maildir' in request_json:
Open commit View diff
352 if 'old_maildir' in request_json and 'new_maildir' in request_json:
same change 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
353
      for container in self.sync_docker_client.containers.list(filters=filters):
Open commit View diff
353 for container in self.sync_docker_client.containers.list(filters=filters):
same change 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
354
        vmail_name = request_json['old_maildir'].replace("'", "'\\''")
Open commit View diff
354 vmail_name = request_json['old_maildir'].replace("'", "'\\''")
same change 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
355
        new_vmail_name = request_json['new_maildir'].replace("'", "'\\''")
Open commit View diff
355 new_vmail_name = request_json['new_maildir'].replace("'", "'\\''")
FreddleSpl0it almost 2 years ago be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
356
        cmd_vmail = f"if [[ -d '/var/vmail/{vmail_name}' ]]; then /bin/mv '/var/vmail/{vmail_name}' '/var/vmail/{new_vmail_name}'; fi"
Open commit View diff
356 cmd_vmail = f"if [[ -d '/var/vmail/{vmail_name}' ]]; then /bin/mv '/var/vmail/{vmail_name}' '/var/vmail/{new_vmail_name}'; fi"
FreddleSpl0it almost 2 years ago 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
357
Open commit View diff
357
same change 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
358
        index_name = request_json['old_maildir'].split("/")
Open commit View diff
358 index_name = request_json['old_maildir'].split("/")
same change 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
359
        new_index_name = request_json['new_maildir'].split("/")
Open commit View diff
359 new_index_name = request_json['new_maildir'].split("/")
same change 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
360
        if len(index_name) > 1 and len(new_index_name) > 1:
Open commit View diff
360 if len(index_name) > 1 and len(new_index_name) > 1:
same change 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
361
          index_name = index_name[1].replace("'", "'\\''") + "@" + index_name[0].replace("'", "'\\''")
Open commit View diff
361 index_name = index_name[1].replace("'", "'\\''") + "@" + index_name[0].replace("'", "'\\''")
same change 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
362
          new_index_name = new_index_name[1].replace("'", "'\\''") + "@" + new_index_name[0].replace("'", "'\\''")
Open commit View diff
362 new_index_name = new_index_name[1].replace("'", "'\\''") + "@" + new_index_name[0].replace("'", "'\\''")
FreddleSpl0it almost 2 years ago be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
363
          cmd_vmail_index = f"if [[ -d '/var/vmail_index/{index_name}' ]]; then /bin/mv '/var/vmail_index/{index_name}' '/var/vmail_index/{new_index_name}_index'; fi"
Open commit View diff
363 cmd_vmail_index = f"if [[ -d '/var/vmail_index/{index_name}' ]]; then /bin/mv '/var/vmail_index/{index_name}' '/var/vmail_index/{new_index_name}_index'; fi"
FreddleSpl0it almost 2 years ago 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
364
          cmd = ["/bin/bash", "-c", cmd_vmail + " && " + cmd_vmail_index]
Open commit View diff
364 cmd = ["/bin/bash", "-c", cmd_vmail + " && " + cmd_vmail_index]
same change 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
365
        else:
Open commit View diff
365 else:
same change 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
366
          cmd = ["/bin/bash", "-c", cmd_vmail]
Open commit View diff
366 cmd = ["/bin/bash", "-c", cmd_vmail]
same change 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
367
        maildir_move = container.exec_run(cmd, user='vmail')
Open commit View diff
367 maildir_move = container.exec_run(cmd, user='vmail')
same change 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
368
        return self.exec_run_handler('generic', maildir_move)
Open commit View diff
368 return self.exec_run_handler('generic', maildir_move)
FreddleSpl0it about 3 years ago 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
369
  # api call: container_post - post_action: exec - cmd: rspamd - task: worker_password
Open commit View diff
369 # api call: container_post - post_action: exec - cmd: rspamd - task: worker_password
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
370
  def container_post__exec__rspamd__worker_password(self, request_json, **kwargs):
Open commit View diff
370 def container_post__exec__rspamd__worker_password(self, request_json, **kwargs):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
371
    if 'container_id' in kwargs:
Open commit View diff
371 if 'container_id' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
372
      filters = {"id": kwargs['container_id']}
Open commit View diff
372 filters = {"id": kwargs['container_id']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
373
    elif 'container_name' in kwargs:
Open commit View diff
373 elif 'container_name' in kwargs:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
374
      filters = {"name": kwargs['container_name']}
Open commit View diff
374 filters = {"name": kwargs['container_name']}
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
375
Open commit View diff
375
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
376
    if 'raw' in request_json:
Open commit View diff
376 if 'raw' in request_json:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
377
      for container in self.sync_docker_client.containers.list(filters=filters):
Open commit View diff
377 for container in self.sync_docker_client.containers.list(filters=filters):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
378
        cmd = "/usr/bin/rspamadm pw -e -p '" + request_json['raw'].replace("'", "'\\''") + "' 2> /dev/null"
Open commit View diff
378 cmd = "/usr/bin/rspamadm pw -e -p '" + request_json['raw'].replace("'", "'\\''") + "' 2> /dev/null"
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
379
        cmd_response = self.exec_cmd_container(container, cmd, user="_rspamd")
Open commit View diff
379 cmd_response = self.exec_cmd_container(container, cmd, user="_rspamd")
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
380
Open commit View diff
380
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
381
        matched = False
Open commit View diff
381 matched = False
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
382
        for line in cmd_response.split("\n"):
Open commit View diff
382 for line in cmd_response.split("\n"):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
383
          if '$2$' in line:
Open commit View diff
383 if '$2$' in line:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
384
            hash = line.strip()
Open commit View diff
384 hash = line.strip()
DerLinkman about 2 years ago ba8902f

os: updated all Alpine containers to 3.20

Full commit hash
ba8902f0b18ccf58d30081aa9cf80eb8574dd0f9
Author
DerLinkman <[email protected]>
Date
about 2 years ago
Selected line
385
            hash_out = re.search(r'\$2\$.+$', hash).group(0)
Open commit View diff
385 hash_out = re.search(r'\$2\$.+$', hash).group(0)
same change ba8902f

os: updated all Alpine containers to 3.20

Full commit hash
ba8902f0b18ccf58d30081aa9cf80eb8574dd0f9
Author
DerLinkman <[email protected]>
Date
about 2 years ago
Selected line
386
            rspamd_passphrase_hash = re.sub(r'[^0-9a-zA-Z\$]+', '', hash_out.rstrip())
Open commit View diff
386 rspamd_passphrase_hash = re.sub(r'[^0-9a-zA-Z\$]+', '', hash_out.rstrip())
FreddleSpl0it about 3 years ago 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
387
            rspamd_password_filename = "/etc/rspamd/override.d/worker-controller-password.inc"
Open commit View diff
387 rspamd_password_filename = "/etc/rspamd/override.d/worker-controller-password.inc"
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
388
            cmd = '''/bin/echo 'enable_password = "%s";' > %s && cat %s''' % (rspamd_passphrase_hash, rspamd_password_filename, rspamd_password_filename)
Open commit View diff
388 cmd = '''/bin/echo 'enable_password = "%s";' > %s && cat %s''' % (rspamd_passphrase_hash, rspamd_password_filename, rspamd_password_filename)
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
389
            cmd_response = self.exec_cmd_container(container, cmd, user="_rspamd")
Open commit View diff
389 cmd_response = self.exec_cmd_container(container, cmd, user="_rspamd")
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
390
            if rspamd_passphrase_hash.startswith("$2$") and rspamd_passphrase_hash in cmd_response:
Open commit View diff
390 if rspamd_passphrase_hash.startswith("$2$") and rspamd_passphrase_hash in cmd_response:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
391
              container.restart()
Open commit View diff
391 container.restart()
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
392
              matched = True
Open commit View diff
392 matched = True
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
393
        if matched:
Open commit View diff
393 if matched:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
394
          res = { 'type': 'success', 'msg': 'command completed successfully' }
Open commit View diff
394 res = { 'type': 'success', 'msg': 'command completed successfully' }
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
395
          self.logger.info('success changing Rspamd password')
Open commit View diff
395 self.logger.info('success changing Rspamd password')
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
396
          return Response(content=json.dumps(res, indent=4), media_type="application/json")
Open commit View diff
396 return Response(content=json.dumps(res, indent=4), media_type="application/json")
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
397
        else:
Open commit View diff
397 else:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
398
          self.logger.error('failed changing Rspamd password')
Open commit View diff
398 self.logger.error('failed changing Rspamd password')
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
399
          res = { 'type': 'danger', 'msg': 'command did not complete' }
Open commit View diff
399 res = { 'type': 'danger', 'msg': 'command did not complete' }
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
400
          return Response(content=json.dumps(res, indent=4), media_type="application/json")
Open commit View diff
400 return Response(content=json.dumps(res, indent=4), media_type="application/json")
FreddleSpl0it almost 2 years ago 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
401
  # api call: container_post - post_action: exec - cmd: sogo - task: rename
Open commit View diff
401 # api call: container_post - post_action: exec - cmd: sogo - task: rename
same change 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
402
  def container_post__exec__sogo__rename_user(self, request_json, **kwargs):
Open commit View diff
402 def container_post__exec__sogo__rename_user(self, request_json, **kwargs):
same change 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
403
    if 'container_id' in kwargs:
Open commit View diff
403 if 'container_id' in kwargs:
same change 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
404
      filters = {"id": kwargs['container_id']}
Open commit View diff
404 filters = {"id": kwargs['container_id']}
same change 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
405
    elif 'container_name' in kwargs:
Open commit View diff
405 elif 'container_name' in kwargs:
same change 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
406
      filters = {"name": kwargs['container_name']}
Open commit View diff
406 filters = {"name": kwargs['container_name']}
same change 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
407
Open commit View diff
407
same change 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
408
    if 'old_username' in request_json and 'new_username' in request_json:
Open commit View diff
408 if 'old_username' in request_json and 'new_username' in request_json:
same change 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
409
      for container in self.sync_docker_client.containers.list(filters=filters):
Open commit View diff
409 for container in self.sync_docker_client.containers.list(filters=filters):
same change 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
410
        old_username = request_json['old_username'].replace("'", "'\\''")
Open commit View diff
410 old_username = request_json['old_username'].replace("'", "'\\''")
same change 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
411
        new_username = request_json['new_username'].replace("'", "'\\''")
Open commit View diff
411 new_username = request_json['new_username'].replace("'", "'\\''")
same change 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
412
Open commit View diff
412
FreddleSpl0it almost 2 years ago 1528e87

[DockerApi] correctly escape user input

Full commit hash
1528e8766a0af49e3eb378b479d03c41ff8ae75f
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
413
        sogo_return = container.exec_run(["/bin/bash", "-c", f"sogo-tool rename-user '{old_username}' '{new_username}'"], user='sogo')
Open commit View diff
413 sogo_return = container.exec_run(["/bin/bash", "-c", f"sogo-tool rename-user '{old_username}' '{new_username}'"], user='sogo')
FreddleSpl0it almost 2 years ago 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
414
        return self.exec_run_handler('generic', sogo_return)
Open commit View diff
414 return self.exec_run_handler('generic', sogo_return)
FreddleSpl0it almost 2 years ago 8e7b27a

[DockerApi] rework doveadm__get_acl function

Full commit hash
8e7b27aae469d5dbe757779cd11df6eb11430b8c
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
415
  # api call: container_post - post_action: exec - cmd: doveadm - task: get_acl
Open commit View diff
415 # api call: container_post - post_action: exec - cmd: doveadm - task: get_acl
same change 8e7b27a

[DockerApi] rework doveadm__get_acl function

Full commit hash
8e7b27aae469d5dbe757779cd11df6eb11430b8c
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
416
  def container_post__exec__doveadm__get_acl(self, request_json, **kwargs):
Open commit View diff
416 def container_post__exec__doveadm__get_acl(self, request_json, **kwargs):
FreddleSpl0it almost 2 years ago be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
417
    if 'container_id' in kwargs:
Open commit View diff
417 if 'container_id' in kwargs:
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
418
      filters = {"id": kwargs['container_id']}
Open commit View diff
418 filters = {"id": kwargs['container_id']}
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
419
    elif 'container_name' in kwargs:
Open commit View diff
419 elif 'container_name' in kwargs:
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
420
      filters = {"name": kwargs['container_name']}
Open commit View diff
420 filters = {"name": kwargs['container_name']}
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
421
Open commit View diff
421
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
422
    for container in self.sync_docker_client.containers.list(filters=filters):
Open commit View diff
422 for container in self.sync_docker_client.containers.list(filters=filters):
FreddleSpl0it almost 2 years ago 8e7b27a

[DockerApi] rework doveadm__get_acl function

Full commit hash
8e7b27aae469d5dbe757779cd11df6eb11430b8c
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
423
      id = request_json['id'].replace("'", "'\\''")
Open commit View diff
423 id = request_json['id'].replace("'", "'\\''")
same change 8e7b27a

[DockerApi] rework doveadm__get_acl function

Full commit hash
8e7b27aae469d5dbe757779cd11df6eb11430b8c
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
424
Open commit View diff
424
FreddleSpl0it almost 2 years ago 1528e87

[DockerApi] correctly escape user input

Full commit hash
1528e8766a0af49e3eb378b479d03c41ff8ae75f
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
425
      shared_folders = container.exec_run(["/bin/bash", "-c", f"doveadm mailbox list -u '{id}'"])
Open commit View diff
425 shared_folders = container.exec_run(["/bin/bash", "-c", f"doveadm mailbox list -u '{id}'"])
FreddleSpl0it almost 2 years ago be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
426
      shared_folders = shared_folders.output.decode('utf-8')
Open commit View diff
426 shared_folders = shared_folders.output.decode('utf-8')
FreddleSpl0it almost 2 years ago 8e7b27a

[DockerApi] rework doveadm__get_acl function

Full commit hash
8e7b27aae469d5dbe757779cd11df6eb11430b8c
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
427
      shared_folders = shared_folders.splitlines()
Open commit View diff
427 shared_folders = shared_folders.splitlines()
same change 8e7b27a

[DockerApi] rework doveadm__get_acl function

Full commit hash
8e7b27aae469d5dbe757779cd11df6eb11430b8c
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
428
Open commit View diff
428
FreddleSpl0it almost 2 years ago be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
429
      formatted_acls = []
Open commit View diff
429 formatted_acls = []
FreddleSpl0it almost 2 years ago 8e7b27a

[DockerApi] rework doveadm__get_acl function

Full commit hash
8e7b27aae469d5dbe757779cd11df6eb11430b8c
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
430
      mailbox_seen = []
Open commit View diff
430 mailbox_seen = []
same change 8e7b27a

[DockerApi] rework doveadm__get_acl function

Full commit hash
8e7b27aae469d5dbe757779cd11df6eb11430b8c
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
431
      for shared_folder in shared_folders:
Open commit View diff
431 for shared_folder in shared_folders:
FreddleSpl0it over 1 year ago d8c8e4a

[DockerApi] Fix IMAP ACL migration issue when renaming mailbox

Full commit hash
d8c8e4ab1bc9168f0ed5ecb4074dcd42176ad7ea
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
432
        if "Shared" not in shared_folder:
Open commit View diff
432 if "Shared" not in shared_folder:
same change d8c8e4a

[DockerApi] Fix IMAP ACL migration issue when renaming mailbox

Full commit hash
d8c8e4ab1bc9168f0ed5ecb4074dcd42176ad7ea
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
433
          mailbox = shared_folder.replace("'", "'\\''")
Open commit View diff
433 mailbox = shared_folder.replace("'", "'\\''")
same change d8c8e4a

[DockerApi] Fix IMAP ACL migration issue when renaming mailbox

Full commit hash
d8c8e4ab1bc9168f0ed5ecb4074dcd42176ad7ea
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
434
          if mailbox in mailbox_seen:
Open commit View diff
434 if mailbox in mailbox_seen:
same change d8c8e4a

[DockerApi] Fix IMAP ACL migration issue when renaming mailbox

Full commit hash
d8c8e4ab1bc9168f0ed5ecb4074dcd42176ad7ea
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
435
            continue
Open commit View diff
435 continue
same change d8c8e4a

[DockerApi] Fix IMAP ACL migration issue when renaming mailbox

Full commit hash
d8c8e4ab1bc9168f0ed5ecb4074dcd42176ad7ea
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
436
Open commit View diff
436
same change d8c8e4a

[DockerApi] Fix IMAP ACL migration issue when renaming mailbox

Full commit hash
d8c8e4ab1bc9168f0ed5ecb4074dcd42176ad7ea
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
437
          acls = container.exec_run(["/bin/bash", "-c", f"doveadm acl get -u '{id}' '{mailbox}'"])
Open commit View diff
437 acls = container.exec_run(["/bin/bash", "-c", f"doveadm acl get -u '{id}' '{mailbox}'"])
same change d8c8e4a

[DockerApi] Fix IMAP ACL migration issue when renaming mailbox

Full commit hash
d8c8e4ab1bc9168f0ed5ecb4074dcd42176ad7ea
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
438
          acls = acls.output.decode('utf-8').strip().splitlines()
Open commit View diff
438 acls = acls.output.decode('utf-8').strip().splitlines()
same change d8c8e4a

[DockerApi] Fix IMAP ACL migration issue when renaming mailbox

Full commit hash
d8c8e4ab1bc9168f0ed5ecb4074dcd42176ad7ea
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
439
          if len(acls) >= 2:
Open commit View diff
439 if len(acls) >= 2:
same change d8c8e4a

[DockerApi] Fix IMAP ACL migration issue when renaming mailbox

Full commit hash
d8c8e4ab1bc9168f0ed5ecb4074dcd42176ad7ea
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
440
            for acl in acls[1:]:
Open commit View diff
440 for acl in acls[1:]:
same change d8c8e4a

[DockerApi] Fix IMAP ACL migration issue when renaming mailbox

Full commit hash
d8c8e4ab1bc9168f0ed5ecb4074dcd42176ad7ea
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
441
              user_id, rights = acl.split(maxsplit=1)
Open commit View diff
441 user_id, rights = acl.split(maxsplit=1)
same change d8c8e4a

[DockerApi] Fix IMAP ACL migration issue when renaming mailbox

Full commit hash
d8c8e4ab1bc9168f0ed5ecb4074dcd42176ad7ea
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
442
              user_id = user_id.split('=')[1]
Open commit View diff
442 user_id = user_id.split('=')[1]
same change d8c8e4a

[DockerApi] Fix IMAP ACL migration issue when renaming mailbox

Full commit hash
d8c8e4ab1bc9168f0ed5ecb4074dcd42176ad7ea
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
443
              mailbox_seen.append(mailbox)
Open commit View diff
443 mailbox_seen.append(mailbox)
same change d8c8e4a

[DockerApi] Fix IMAP ACL migration issue when renaming mailbox

Full commit hash
d8c8e4ab1bc9168f0ed5ecb4074dcd42176ad7ea
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
444
              formatted_acls.append({ 'user': id, 'id': user_id, 'mailbox': mailbox, 'rights': rights.split() })
Open commit View diff
444 formatted_acls.append({ 'user': id, 'id': user_id, 'mailbox': mailbox, 'rights': rights.split() })
same change d8c8e4a

[DockerApi] Fix IMAP ACL migration issue when renaming mailbox

Full commit hash
d8c8e4ab1bc9168f0ed5ecb4074dcd42176ad7ea
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
445
        elif "Shared" in shared_folder and "/" in shared_folder:
Open commit View diff
445 elif "Shared" in shared_folder and "/" in shared_folder:
same change d8c8e4a

[DockerApi] Fix IMAP ACL migration issue when renaming mailbox

Full commit hash
d8c8e4ab1bc9168f0ed5ecb4074dcd42176ad7ea
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
446
          shared_folder = shared_folder.split("/")
Open commit View diff
446 shared_folder = shared_folder.split("/")
same change d8c8e4a

[DockerApi] Fix IMAP ACL migration issue when renaming mailbox

Full commit hash
d8c8e4ab1bc9168f0ed5ecb4074dcd42176ad7ea
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
447
          if len(shared_folder) < 3:
Open commit View diff
447 if len(shared_folder) < 3:
same change d8c8e4a

[DockerApi] Fix IMAP ACL migration issue when renaming mailbox

Full commit hash
d8c8e4ab1bc9168f0ed5ecb4074dcd42176ad7ea
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
448
            continue
Open commit View diff
448 continue
same change d8c8e4a

[DockerApi] Fix IMAP ACL migration issue when renaming mailbox

Full commit hash
d8c8e4ab1bc9168f0ed5ecb4074dcd42176ad7ea
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
449
Open commit View diff
449
same change d8c8e4a

[DockerApi] Fix IMAP ACL migration issue when renaming mailbox

Full commit hash
d8c8e4ab1bc9168f0ed5ecb4074dcd42176ad7ea
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
450
          user = shared_folder[1].replace("'", "'\\''")
Open commit View diff
450 user = shared_folder[1].replace("'", "'\\''")
same change d8c8e4a

[DockerApi] Fix IMAP ACL migration issue when renaming mailbox

Full commit hash
d8c8e4ab1bc9168f0ed5ecb4074dcd42176ad7ea
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
451
          mailbox = '/'.join(shared_folder[2:]).replace("'", "'\\''")
Open commit View diff
451 mailbox = '/'.join(shared_folder[2:]).replace("'", "'\\''")
same change d8c8e4a

[DockerApi] Fix IMAP ACL migration issue when renaming mailbox

Full commit hash
d8c8e4ab1bc9168f0ed5ecb4074dcd42176ad7ea
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
452
          if mailbox in mailbox_seen:
Open commit View diff
452 if mailbox in mailbox_seen:
same change d8c8e4a

[DockerApi] Fix IMAP ACL migration issue when renaming mailbox

Full commit hash
d8c8e4ab1bc9168f0ed5ecb4074dcd42176ad7ea
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
453
            continue
Open commit View diff
453 continue
same change d8c8e4a

[DockerApi] Fix IMAP ACL migration issue when renaming mailbox

Full commit hash
d8c8e4ab1bc9168f0ed5ecb4074dcd42176ad7ea
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
454
Open commit View diff
454
same change d8c8e4a

[DockerApi] Fix IMAP ACL migration issue when renaming mailbox

Full commit hash
d8c8e4ab1bc9168f0ed5ecb4074dcd42176ad7ea
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
455
          acls = container.exec_run(["/bin/bash", "-c", f"doveadm acl get -u '{user}' '{mailbox}'"])
Open commit View diff
455 acls = container.exec_run(["/bin/bash", "-c", f"doveadm acl get -u '{user}' '{mailbox}'"])
same change d8c8e4a

[DockerApi] Fix IMAP ACL migration issue when renaming mailbox

Full commit hash
d8c8e4ab1bc9168f0ed5ecb4074dcd42176ad7ea
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
456
          acls = acls.output.decode('utf-8').strip().splitlines()
Open commit View diff
456 acls = acls.output.decode('utf-8').strip().splitlines()
same change d8c8e4a

[DockerApi] Fix IMAP ACL migration issue when renaming mailbox

Full commit hash
d8c8e4ab1bc9168f0ed5ecb4074dcd42176ad7ea
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
457
          if len(acls) >= 2:
Open commit View diff
457 if len(acls) >= 2:
same change d8c8e4a

[DockerApi] Fix IMAP ACL migration issue when renaming mailbox

Full commit hash
d8c8e4ab1bc9168f0ed5ecb4074dcd42176ad7ea
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
458
            for acl in acls[1:]:
Open commit View diff
458 for acl in acls[1:]:
same change d8c8e4a

[DockerApi] Fix IMAP ACL migration issue when renaming mailbox

Full commit hash
d8c8e4ab1bc9168f0ed5ecb4074dcd42176ad7ea
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
459
              user_id, rights = acl.split(maxsplit=1)
Open commit View diff
459 user_id, rights = acl.split(maxsplit=1)
same change d8c8e4a

[DockerApi] Fix IMAP ACL migration issue when renaming mailbox

Full commit hash
d8c8e4ab1bc9168f0ed5ecb4074dcd42176ad7ea
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
460
              user_id = user_id.split('=')[1].replace("'", "'\\''")
Open commit View diff
460 user_id = user_id.split('=')[1].replace("'", "'\\''")
same change d8c8e4a

[DockerApi] Fix IMAP ACL migration issue when renaming mailbox

Full commit hash
d8c8e4ab1bc9168f0ed5ecb4074dcd42176ad7ea
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
461
              if user_id == id and mailbox not in mailbox_seen:
Open commit View diff
461 if user_id == id and mailbox not in mailbox_seen:
same change d8c8e4a

[DockerApi] Fix IMAP ACL migration issue when renaming mailbox

Full commit hash
d8c8e4ab1bc9168f0ed5ecb4074dcd42176ad7ea
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
462
                mailbox_seen.append(mailbox)
Open commit View diff
462 mailbox_seen.append(mailbox)
same change d8c8e4a

[DockerApi] Fix IMAP ACL migration issue when renaming mailbox

Full commit hash
d8c8e4ab1bc9168f0ed5ecb4074dcd42176ad7ea
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
463
                formatted_acls.append({ 'user': user, 'id': id, 'mailbox': mailbox, 'rights': rights.split() })
Open commit View diff
463 formatted_acls.append({ 'user': user, 'id': id, 'mailbox': mailbox, 'rights': rights.split() })
FreddleSpl0it almost 2 years ago be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
464
Open commit View diff
464
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
465
      return Response(content=json.dumps(formatted_acls, indent=4), media_type="application/json")
Open commit View diff
465 return Response(content=json.dumps(formatted_acls, indent=4), media_type="application/json")
FreddleSpl0it almost 2 years ago 8e7b27a

[DockerApi] rework doveadm__get_acl function

Full commit hash
8e7b27aae469d5dbe757779cd11df6eb11430b8c
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
466
  # api call: container_post - post_action: exec - cmd: doveadm - task: delete_acl
Open commit View diff
466 # api call: container_post - post_action: exec - cmd: doveadm - task: delete_acl
same change 8e7b27a

[DockerApi] rework doveadm__get_acl function

Full commit hash
8e7b27aae469d5dbe757779cd11df6eb11430b8c
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
467
  def container_post__exec__doveadm__delete_acl(self, request_json, **kwargs):
Open commit View diff
467 def container_post__exec__doveadm__delete_acl(self, request_json, **kwargs):
FreddleSpl0it almost 2 years ago be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
468
    if 'container_id' in kwargs:
Open commit View diff
468 if 'container_id' in kwargs:
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
469
      filters = {"id": kwargs['container_id']}
Open commit View diff
469 filters = {"id": kwargs['container_id']}
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
470
    elif 'container_name' in kwargs:
Open commit View diff
470 elif 'container_name' in kwargs:
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
471
      filters = {"name": kwargs['container_name']}
Open commit View diff
471 filters = {"name": kwargs['container_name']}
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
472
Open commit View diff
472
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
473
    for container in self.sync_docker_client.containers.list(filters=filters):
Open commit View diff
473 for container in self.sync_docker_client.containers.list(filters=filters):
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
474
      user = request_json['user'].replace("'", "'\\''")
Open commit View diff
474 user = request_json['user'].replace("'", "'\\''")
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
475
      mailbox = request_json['mailbox'].replace("'", "'\\''")
Open commit View diff
475 mailbox = request_json['mailbox'].replace("'", "'\\''")
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
476
      id = request_json['id'].replace("'", "'\\''")
Open commit View diff
476 id = request_json['id'].replace("'", "'\\''")
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
477
Open commit View diff
477
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
478
      if user and mailbox and id:
Open commit View diff
478 if user and mailbox and id:
FreddleSpl0it almost 2 years ago 1528e87

[DockerApi] correctly escape user input

Full commit hash
1528e8766a0af49e3eb378b479d03c41ff8ae75f
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
479
        acl_delete_return = container.exec_run(["/bin/bash", "-c", f"doveadm acl delete -u '{user}' '{mailbox}' 'user={id}'"])
Open commit View diff
479 acl_delete_return = container.exec_run(["/bin/bash", "-c", f"doveadm acl delete -u '{user}' '{mailbox}' 'user={id}'"])
FreddleSpl0it almost 2 years ago be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
480
        return self.exec_run_handler('generic', acl_delete_return)
Open commit View diff
480 return self.exec_run_handler('generic', acl_delete_return)
FreddleSpl0it almost 2 years ago 8e7b27a

[DockerApi] rework doveadm__get_acl function

Full commit hash
8e7b27aae469d5dbe757779cd11df6eb11430b8c
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
481
  # api call: container_post - post_action: exec - cmd: doveadm - task: set_acl
Open commit View diff
481 # api call: container_post - post_action: exec - cmd: doveadm - task: set_acl
same change 8e7b27a

[DockerApi] rework doveadm__get_acl function

Full commit hash
8e7b27aae469d5dbe757779cd11df6eb11430b8c
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
482
  def container_post__exec__doveadm__set_acl(self, request_json, **kwargs):
Open commit View diff
482 def container_post__exec__doveadm__set_acl(self, request_json, **kwargs):
FreddleSpl0it almost 2 years ago be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
483
    if 'container_id' in kwargs:
Open commit View diff
483 if 'container_id' in kwargs:
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
484
      filters = {"id": kwargs['container_id']}
Open commit View diff
484 filters = {"id": kwargs['container_id']}
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
485
    elif 'container_name' in kwargs:
Open commit View diff
485 elif 'container_name' in kwargs:
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
486
      filters = {"name": kwargs['container_name']}
Open commit View diff
486 filters = {"name": kwargs['container_name']}
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
487
Open commit View diff
487
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
488
    for container in self.sync_docker_client.containers.list(filters=filters):
Open commit View diff
488 for container in self.sync_docker_client.containers.list(filters=filters):
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
489
      user = request_json['user'].replace("'", "'\\''")
Open commit View diff
489 user = request_json['user'].replace("'", "'\\''")
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
490
      mailbox = request_json['mailbox'].replace("'", "'\\''")
Open commit View diff
490 mailbox = request_json['mailbox'].replace("'", "'\\''")
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
491
      id = request_json['id'].replace("'", "'\\''")
Open commit View diff
491 id = request_json['id'].replace("'", "'\\''")
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
492
      rights = ""
Open commit View diff
492 rights = ""
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
493
Open commit View diff
493
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
494
      available_rights = [
Open commit View diff
494 available_rights = [
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
495
        "admin",
Open commit View diff
495 "admin",
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
496
        "create",
Open commit View diff
496 "create",
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
497
        "delete",
Open commit View diff
497 "delete",
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
498
        "expunge",
Open commit View diff
498 "expunge",
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
499
        "insert",
Open commit View diff
499 "insert",
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
500
        "lookup",
Open commit View diff
500 "lookup",
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
501
        "post",
Open commit View diff
501 "post",
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
502
        "read",
Open commit View diff
502 "read",
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
503
        "write",
Open commit View diff
503 "write",
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
504
        "write-deleted",
Open commit View diff
504 "write-deleted",
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
505
        "write-seen"
Open commit View diff
505 "write-seen"
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
506
      ]
Open commit View diff
506 ]
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
507
      for right in request_json['rights']:
Open commit View diff
507 for right in request_json['rights']:
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
508
        right = right.replace("'", "'\\''").lower()
Open commit View diff
508 right = right.replace("'", "'\\''").lower()
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
509
        if right in available_rights:
Open commit View diff
509 if right in available_rights:
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
510
          rights += right + " "
Open commit View diff
510 rights += right + " "
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
511
Open commit View diff
511
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
512
      if user and mailbox and id and rights:
Open commit View diff
512 if user and mailbox and id and rights:
FreddleSpl0it almost 2 years ago 1528e87

[DockerApi] correctly escape user input

Full commit hash
1528e8766a0af49e3eb378b479d03c41ff8ae75f
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
513
        acl_set_return = container.exec_run(["/bin/bash", "-c", f"doveadm acl set -u '{user}' '{mailbox}' 'user={id}' {rights}"])
Open commit View diff
513 acl_set_return = container.exec_run(["/bin/bash", "-c", f"doveadm acl set -u '{user}' '{mailbox}' 'user={id}' {rights}"])
FreddleSpl0it almost 2 years ago be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
514
        return self.exec_run_handler('generic', acl_set_return)
Open commit View diff
514 return self.exec_run_handler('generic', acl_set_return)
same change be5a181

[Web][DockerApi] migrate imap acl on mbox rename

Full commit hash
be5a181be5b4717c080faf05e47965e8273ea9ea
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
515
Open commit View diff
515
FreddleSpl0it about 3 years ago 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
516
Open commit View diff
516
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
517
  # Collect host stats
Open commit View diff
517 # Collect host stats
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
518
  async def get_host_stats(self, wait=5):
Open commit View diff
518 async def get_host_stats(self, wait=5):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
519
    try:
Open commit View diff
519 try:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
520
      system_time = datetime.now()
Open commit View diff
520 system_time = datetime.now()
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
521
      host_stats = {
Open commit View diff
521 host_stats = {
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
522
        "cpu": {
Open commit View diff
522 "cpu": {
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
523
          "cores": psutil.cpu_count(),
Open commit View diff
523 "cores": psutil.cpu_count(),
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
524
          "usage": psutil.cpu_percent()
Open commit View diff
524 "usage": psutil.cpu_percent()
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
525
        },
Open commit View diff
525 },
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
526
        "memory": {
Open commit View diff
526 "memory": {
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
527
          "total": psutil.virtual_memory().total,
Open commit View diff
527 "total": psutil.virtual_memory().total,
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
528
          "usage": psutil.virtual_memory().percent,
Open commit View diff
528 "usage": psutil.virtual_memory().percent,
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
529
          "swap": psutil.swap_memory()
Open commit View diff
529 "swap": psutil.swap_memory()
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
530
        },
Open commit View diff
530 },
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
531
        "uptime": time.time() - psutil.boot_time(),
Open commit View diff
531 "uptime": time.time() - psutil.boot_time(),
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
532
        "system_time": system_time.strftime("%d.%m.%Y %H:%M:%S"),
Open commit View diff
532 "system_time": system_time.strftime("%d.%m.%Y %H:%M:%S"),
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
533
        "architecture": platform.machine()
Open commit View diff
533 "architecture": platform.machine()
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
534
      }
Open commit View diff
534 }
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
535
Open commit View diff
535
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
536
      await self.redis_client.set('host_stats', json.dumps(host_stats), ex=10)
Open commit View diff
536 await self.redis_client.set('host_stats', json.dumps(host_stats), ex=10)
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
537
    except Exception as e:
Open commit View diff
537 except Exception as e:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
538
      res = {
Open commit View diff
538 res = {
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
539
        "type": "danger",
Open commit View diff
539 "type": "danger",
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
540
        "msg": str(e)
Open commit View diff
540 "msg": str(e)
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
541
      }
Open commit View diff
541 }
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
542
Open commit View diff
542
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
543
    await asyncio.sleep(wait)
Open commit View diff
543 await asyncio.sleep(wait)
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
544
    self.host_stats_isUpdating = False
Open commit View diff
544 self.host_stats_isUpdating = False
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
545
  # Collect container stats
Open commit View diff
545 # Collect container stats
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
546
  async def get_container_stats(self, container_id, wait=5, stop=False):
Open commit View diff
546 async def get_container_stats(self, container_id, wait=5, stop=False):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
547
    if container_id and container_id.isalnum():
Open commit View diff
547 if container_id and container_id.isalnum():
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
548
      try:
Open commit View diff
548 try:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
549
        for container in (await self.async_docker_client.containers.list()):
Open commit View diff
549 for container in (await self.async_docker_client.containers.list()):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
550
          if container._id == container_id:
Open commit View diff
550 if container._id == container_id:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
551
            res = await container.stats(stream=False)
Open commit View diff
551 res = await container.stats(stream=False)
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
552
Open commit View diff
552
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
553
            if await self.redis_client.exists(container_id + '_stats'):
Open commit View diff
553 if await self.redis_client.exists(container_id + '_stats'):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
554
              stats = json.loads(await self.redis_client.get(container_id + '_stats'))
Open commit View diff
554 stats = json.loads(await self.redis_client.get(container_id + '_stats'))
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
555
            else:
Open commit View diff
555 else:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
556
              stats = []
Open commit View diff
556 stats = []
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
557
            stats.append(res[0])
Open commit View diff
557 stats.append(res[0])
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
558
            if len(stats) > 3:
Open commit View diff
558 if len(stats) > 3:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
559
              del stats[0]
Open commit View diff
559 del stats[0]
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
560
            await self.redis_client.set(container_id + '_stats', json.dumps(stats), ex=60)
Open commit View diff
560 await self.redis_client.set(container_id + '_stats', json.dumps(stats), ex=60)
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
561
      except Exception as e:
Open commit View diff
561 except Exception as e:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
562
        res = {
Open commit View diff
562 res = {
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
563
          "type": "danger",
Open commit View diff
563 "type": "danger",
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
564
          "msg": str(e)
Open commit View diff
564 "msg": str(e)
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
565
        }
Open commit View diff
565 }
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
566
    else:
Open commit View diff
566 else:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
567
      res = {
Open commit View diff
567 res = {
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
568
        "type": "danger",
Open commit View diff
568 "type": "danger",
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
569
        "msg": "no or invalid id defined"
Open commit View diff
569 "msg": "no or invalid id defined"
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
570
      }
Open commit View diff
570 }
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
571
Open commit View diff
571
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
572
    await asyncio.sleep(wait)
Open commit View diff
572 await asyncio.sleep(wait)
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
573
    if stop == True:
Open commit View diff
573 if stop == True:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
574
      # update task was called second time, stop
Open commit View diff
574 # update task was called second time, stop
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
575
      self.containerIds_to_update.remove(container_id)
Open commit View diff
575 self.containerIds_to_update.remove(container_id)
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
576
    else:
Open commit View diff
576 else:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
577
      # call update task a second time
Open commit View diff
577 # call update task a second time
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
578
      await self.get_container_stats(container_id, wait=0, stop=True)
Open commit View diff
578 await self.get_container_stats(container_id, wait=0, stop=True)
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
579
Open commit View diff
579
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
580
  def exec_cmd_container(self, container, cmd, user, timeout=2, shell_cmd="/bin/bash"):
Open commit View diff
580 def exec_cmd_container(self, container, cmd, user, timeout=2, shell_cmd="/bin/bash"):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
581
    def recv_socket_data(c_socket, timeout):
Open commit View diff
581 def recv_socket_data(c_socket, timeout):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
582
      c_socket.setblocking(0)
Open commit View diff
582 c_socket.setblocking(0)
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
583
      total_data=[]
Open commit View diff
583 total_data=[]
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
584
      data=''
Open commit View diff
584 data=''
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
585
      begin=time.time()
Open commit View diff
585 begin=time.time()
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
586
      while True:
Open commit View diff
586 while True:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
587
        if total_data and time.time()-begin > timeout:
Open commit View diff
587 if total_data and time.time()-begin > timeout:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
588
          break
Open commit View diff
588 break
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
589
        elif time.time()-begin > timeout*2:
Open commit View diff
589 elif time.time()-begin > timeout*2:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
590
          break
Open commit View diff
590 break
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
591
        try:
Open commit View diff
591 try:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
592
          data = c_socket.recv(8192)
Open commit View diff
592 data = c_socket.recv(8192)
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
593
          if data:
Open commit View diff
593 if data:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
594
            total_data.append(data.decode('utf-8'))
Open commit View diff
594 total_data.append(data.decode('utf-8'))
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
595
            #change the beginning time for measurement
Open commit View diff
595 #change the beginning time for measurement
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
596
            begin=time.time()
Open commit View diff
596 begin=time.time()
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
597
          else:
Open commit View diff
597 else:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
598
            #sleep for sometime to indicate a gap
Open commit View diff
598 #sleep for sometime to indicate a gap
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
599
            time.sleep(0.1)
Open commit View diff
599 time.sleep(0.1)
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
600
            break
Open commit View diff
600 break
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
601
        except:
Open commit View diff
601 except:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
602
          pass
Open commit View diff
602 pass
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
603
      return ''.join(total_data)
Open commit View diff
603 return ''.join(total_data)
FreddleSpl0it almost 2 years ago 10dfd0a

[Web][DockerApi] Add the ability to rename the local part of a mailbox

Full commit hash
10dfd0a4433df4ad519115e8dc380b58543b383b
Author
FreddleSpl0it <[email protected]>
Date
almost 2 years ago
Selected line
604
Open commit View diff
604
FreddleSpl0it about 3 years ago 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
605
    try :
Open commit View diff
605 try :
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
606
      socket = container.exec_run([shell_cmd], stdin=True, socket=True, user=user).output._sock
Open commit View diff
606 socket = container.exec_run([shell_cmd], stdin=True, socket=True, user=user).output._sock
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
607
      if not cmd.endswith("\n"):
Open commit View diff
607 if not cmd.endswith("\n"):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
608
        cmd = cmd + "\n"
Open commit View diff
608 cmd = cmd + "\n"
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
609
      socket.send(cmd.encode('utf-8'))
Open commit View diff
609 socket.send(cmd.encode('utf-8'))
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
610
      data = recv_socket_data(socket, timeout)
Open commit View diff
610 data = recv_socket_data(socket, timeout)
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
611
      socket.close()
Open commit View diff
611 socket.close()
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
612
      return data
Open commit View diff
612 return data
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
613
    except Exception as e:
Open commit View diff
613 except Exception as e:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
614
      self.logger.error("error - exec_cmd_container: %s" % str(e))
Open commit View diff
614 self.logger.error("error - exec_cmd_container: %s" % str(e))
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
615
      traceback.print_exc(file=sys.stdout)
Open commit View diff
615 traceback.print_exc(file=sys.stdout)
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
616
Open commit View diff
616
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
617
  def exec_run_handler(self, type, output):
Open commit View diff
617 def exec_run_handler(self, type, output):
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
618
    if type == 'generic':
Open commit View diff
618 if type == 'generic':
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
619
      if output.exit_code == 0:
Open commit View diff
619 if output.exit_code == 0:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
620
        res = { 'type': 'success', 'msg': 'command completed successfully' }
Open commit View diff
620 res = { 'type': 'success', 'msg': 'command completed successfully' }
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
621
        return Response(content=json.dumps(res, indent=4), media_type="application/json")
Open commit View diff
621 return Response(content=json.dumps(res, indent=4), media_type="application/json")
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
622
      else:
Open commit View diff
622 else:
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
623
        res = { 'type': 'danger', 'msg': 'command failed: ' + output.output.decode('utf-8') }
Open commit View diff
623 res = { 'type': 'danger', 'msg': 'command failed: ' + output.output.decode('utf-8') }
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
624
        return Response(content=json.dumps(res, indent=4), media_type="application/json")
Open commit View diff
624 return Response(content=json.dumps(res, indent=4), media_type="application/json")
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
625
    if type == 'utf8_text_only':
Open commit View diff
625 if type == 'utf8_text_only':
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
626
      return Response(content=output.output.decode('utf-8'), media_type="text/plain")
Open commit View diff
626 return Response(content=output.output.decode('utf-8'), media_type="text/plain")