Add deltachat credentials page with QR code, update translation strings

This commit is contained in:
Ana Custura 2026-03-31 12:46:38 +01:00
parent 585458986f
commit eeb387d694
6 changed files with 147 additions and 59 deletions

View file

@ -1,5 +1,7 @@
import pexpect
import json
from app import app
def run_madmail_installer():
with open("./settings.txt", "r") as f:
settings = json.load(f)
@ -15,7 +17,7 @@ def run_madmail_installer():
child.expect("MX record")
child.sendline(f"{butterbox_hostname}.locaL")
child.expect("Public IP address")
child.sendline("127.0.0.1")
child.sendline(app.config['BUTTERBOX_DEFAULT_IP'])
child.expect("Additional domains")
child.sendline("")
child.expect("State directory")
@ -55,7 +57,7 @@ def run_madmail_installer():
child.expect("Require PGP encryption for outgoing messages")
child.sendline("y")
child.expect("Allow secure join requests without encryption")
child.sendline("n")
child.sendline("y")
child.expect("Passthrough senders")
child.sendline("")
child.expect("Passthrough recipients")