forked from missytake/team-bot
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.
This commit is contained in:
parent
8fc3fc6f5e
commit
68e1003046
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue