Make sure to use local address when generating offlineimap config

By using mailbox instead of username for local account configuration,
we ensure that the username is valid, even if it was renamed.

fix #2980
This commit is contained in:
Antoine Nguyen
2024-05-26 11:06:52 +02:00
parent 07b8cf927a
commit 8818ae0803
@@ -10,7 +10,7 @@ remoterepository = Remote_{{ migration }}
type = IMAP
ssl = false
remotehost = localhost
remoteuser = {{ migration }}
remoteuser = {{ migration.mailbox }}
remotepass = {{ migration.password }}
{% if imap_create_folders == False %}
createfolders = False