Skip to content

automatically delete inactive users from database and mail directories #350

Merged
hpk42 merged 10 commits intomainfrom
hpk/remove_accounts
Jul 9, 2024
Merged

automatically delete inactive users from database and mail directories #350
hpk42 merged 10 commits intomainfrom
hpk/remove_accounts

Conversation

@hpk42
Copy link
Copy Markdown
Contributor

@hpk42 hpk42 commented Jul 9, 2024

fixes #295
supersedes #327

this adds a new chatmaild entry point delete_inactive_users which removes all user state for users which didn't log in for delete_inactive_users_after days (defaulting to 25).

@hpk42 hpk42 force-pushed the hpk/remove_accounts branch from ebcd78a to 8c5e9ea Compare July 9, 2024 09:44
Comment thread chatmaild/src/chatmaild/config.py Outdated
Comment thread chatmaild/src/chatmaild/config.py Outdated
Comment thread chatmaild/src/chatmaild/doveauth.py Outdated
Comment thread chatmaild/src/chatmaild/doveauth.py Outdated
Comment thread chatmaild/src/chatmaild/tests/test_config.py
Comment thread chatmaild/src/chatmaild/tests/test_delete_inactive_users.py Outdated
Comment thread chatmaild/src/chatmaild/tests/test_delete_inactive_users.py Outdated
Comment thread cmdeploy/src/cmdeploy/dovecot/expunge.cron.j2 Outdated
Comment thread chatmaild/src/chatmaild/tests/test_delete_inactive_users.py Outdated
Comment thread chatmaild/src/chatmaild/doveauth.py Outdated
Copy link
Copy Markdown
Contributor

@link2xt link2xt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM except for storing floats into the database

@hpk42 hpk42 merged commit af83ca0 into main Jul 9, 2024
@hpk42 hpk42 deleted the hpk/remove_accounts branch July 9, 2024 17:12
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.

Remove old accounts

2 participants