mirror of
https://github.com/chatmail/relay.git
synced 2026-05-19 20:38:05 +00:00
lint: fix issues
This commit is contained in:
@@ -52,7 +52,7 @@ def setup_account(data_dir: str, debug: bool) -> deltachat.Account:
|
|||||||
configtracker = ac.configure()
|
configtracker = ac.configure()
|
||||||
try:
|
try:
|
||||||
configtracker.wait_finish()
|
configtracker.wait_finish()
|
||||||
except ConfigureFailed as e:
|
except ConfigureFailed:
|
||||||
print(
|
print(
|
||||||
"configuration setup failed for %s with password:\n%s"
|
"configuration setup failed for %s with password:\n%s"
|
||||||
% (ac.get_config("addr"), ac.get_config("mail_pw"))
|
% (ac.get_config("addr"), ac.get_config("mail_pw"))
|
||||||
@@ -88,10 +88,16 @@ class GreetBot:
|
|||||||
print("Inviting", user)
|
print("Inviting", user)
|
||||||
contact = self.account.create_contact(user)
|
contact = self.account.create_contact(user)
|
||||||
chat = contact.create_chat()
|
chat = contact.create_chat()
|
||||||
chat.send_text("Welcome to %s! Here you can try out Delta Chat." % (self.domain,))
|
chat.send_text(
|
||||||
chat.send_text("I prepared some webxdc apps for you, if you are interested:")
|
"Welcome to %s! Here you can try out Delta Chat." % (self.domain,)
|
||||||
|
)
|
||||||
|
chat.send_text(
|
||||||
|
"I prepared some webxdc apps for you, if you are interested:"
|
||||||
|
)
|
||||||
chat.send_file(pkg_resources.resource_filename(__name__, "editor.xdc"))
|
chat.send_file(pkg_resources.resource_filename(__name__, "editor.xdc"))
|
||||||
chat.send_file(pkg_resources.resource_filename(__name__, "tower-builder.xdc"))
|
chat.send_file(
|
||||||
|
pkg_resources.resource_filename(__name__, "tower-builder.xdc")
|
||||||
|
)
|
||||||
chat.send_text(
|
chat.send_text(
|
||||||
"You can send a message to xstore@testrun.org to discover more apps! "
|
"You can send a message to xstore@testrun.org to discover more apps! "
|
||||||
"Some of these games you can also play with friends, directly in the chat."
|
"Some of these games you can also play with friends, directly in the chat."
|
||||||
@@ -101,7 +107,9 @@ class GreetBot:
|
|||||||
def main():
|
def main():
|
||||||
args = configargparse.ArgumentParser()
|
args = configargparse.ArgumentParser()
|
||||||
args.add_argument("--db_path", help="location of the Delta Chat database")
|
args.add_argument("--db_path", help="location of the Delta Chat database")
|
||||||
args.add_argument("--passdb", default=PASSDB_PATH, help="location of the chatmail passdb")
|
args.add_argument(
|
||||||
|
"--passdb", default=PASSDB_PATH, help="location of the chatmail passdb"
|
||||||
|
)
|
||||||
args.add_argument("--show-ffi", action="store_true", help="print Delta Chat log")
|
args.add_argument("--show-ffi", action="store_true", help="print Delta Chat log")
|
||||||
ops = args.parse_args()
|
ops = args.parse_args()
|
||||||
|
|
||||||
|
|||||||
@@ -257,7 +257,9 @@ def _configure_postfix(config: Config, debug: bool = False) -> bool:
|
|||||||
need_restart |= master_config.changed
|
need_restart |= master_config.changed
|
||||||
|
|
||||||
header_cleanup = files.put(
|
header_cleanup = files.put(
|
||||||
src=importlib.resources.files(__package__).joinpath("postfix/submission_header_cleanup"),
|
src=importlib.resources.files(__package__).joinpath(
|
||||||
|
"postfix/submission_header_cleanup"
|
||||||
|
),
|
||||||
dest="/etc/postfix/submission_header_cleanup",
|
dest="/etc/postfix/submission_header_cleanup",
|
||||||
user="root",
|
user="root",
|
||||||
group="root",
|
group="root",
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import requests
|
|||||||
import importlib
|
import importlib
|
||||||
import subprocess
|
import subprocess
|
||||||
import datetime
|
import datetime
|
||||||
from ipaddress import ip_address
|
|
||||||
|
|
||||||
|
|
||||||
class DNS:
|
class DNS:
|
||||||
|
|||||||
Reference in New Issue
Block a user