8000 avoid crash on spurious empty file in the pending_notifications dir by adbenitez · Pull Request #569 · chatmail/relay · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

avoid crash on spurious empty file in the pending_notifications dir #569

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 5, 2025

Conversation

adbenitez
Copy link
Contributor

I wanted to create enforceE2EEincoming for every maildir folder in /home/vmail/mail/DOMAIN/ I was not aware that there is a pending_notifications folder there, hard to realize when you have hundreds of folders there, it could happen to other people in general is better to be more resilient and just ignore such invalid files and delete them instead of crashing forever, dovecot process will fail badly then trying to connect to an nonexistent /run/chatmail-metadata/metadata.socket

@adbenitez adbenitez requested review from link2xt and missytake April 29, 2025 14:57
@hpk42
Copy link
Contributor
hpk42 commented Apr 29, 2025

notification queue handling has a lot of tests. could you write another one to test for handling of spurious files there?

@adbenitez
Copy link
Contributor Author

notification queue handling has a lot of tests. could you write another one to test for handling of spurious files there?

added a test

@hpk42 hpk42 merged commit 09ff56e into main May 5, 2025
6 checks passed
@hpk42 hpk42 deleted the adb/avoid-crash-with-spurious-notification branch May 5, 2025 10:59
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.

2 participants
0