From 68e1003046f690c301fc46be1c572daa0268022f Mon Sep 17 00:00:00 2001 From: link2xt Date: Sun, 17 Dec 2023 11:52:40 +0000 Subject: [PATCH] fix: set mvbox_move before starting an account the first time Otherwise IMAP connection for DeltaChat folder is not started, so messages are moved to DeltaChat folder but are not picked up from there until the bot is restarted. --- src/teams_bot/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/teams_bot/cli.py b/src/teams_bot/cli.py index 064608b..2e7da41 100644 --- a/src/teams_bot/cli.py +++ b/src/teams_bot/cli.py @@ -59,9 +59,9 @@ def init(ctx, email: str, password: str, dbdir: str, verbose: int): set_log_level(verbose, delta_db) ac = deltachat.Account(delta_db) - ac.run_account(addr=email, password=password, show_ffi=verbose) ac.set_config("mvbox_move", "1") ac.set_config("sentbox_watch", "0") + ac.run_account(addr=email, password=password, show_ffi=verbose) crew_id_old = kvstore.get("crew_id")