Skip to content

Conversation

@paschembri
Copy link

Summary

Initialize and properly tear down storage/auth modules used by CLI tools.
This fixes imap-acct panics (nil UpdateManager) and preserves
ManageableStorage so account management continues to work.

Changes

Testing

  • maddy creds create … (works)
  • maddy imap-acct create … (works)

Start LifetimeModule instances when running CLI subcommands that operate on
storage/auth DBs, and stop them on Close(). This fixes imap-acct crashes due to
uninitialized imapsql backends while preserving ManageableStorage support.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

imap-acct (and creds) CLI crashes with nil pointer when storage modules aren’t started

1 participant