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
nixos/dovecot2: turn mailboxes
-option into an attr-set
#89486
Conversation
As this didn't get any feedback until now, I decided to request a review from the folks suggested by GitHub :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small nit, else LGTM. Though, I don't use dovecot, so I can't verify this works... I'm trusting you already did that ;)
Fixed, thanks! Just realized that GitHub also suggested reviewers that only commited changes to
Just for the record, I'm using those changes on my personal mailserver for about a week now without any problems. |
All good -- I'm always happy to review stuff! (Though if it means I need to build/run something that I don't have an interest in or already use, it usually falls to the bottom of my ever-expanding TODO list...) |
To automatically purge old email. See also https://wiki.dovecot.org/MailboxSettings
Rebased onto latest master. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 for this change.
I think we will remove the list format for the release 21.03. What about announcing this date in the warning, release notes and adding a comment close to this code?
Specifying mailboxes as a list isn't a good approach since this makes it impossible to override values. For backwards-compatibility, it's still possible to declare a list of mailboxes, but a deprecation warning will be shown.
@nlewo fixed :) |
@GrahamcOfBorg test dovecot |
Thanks! |
Motivation for this change
7922a78: add the
autoexpunge
-setting toservices.dovecot2.mailboxes
. With this option specified, email older than the specified time will be automatically removed.This is e.g. helpful for spam-folders.
907d046 : turned the
mailboxes
-option into an attr-set. This makes it easier to override the settings for a single mailbox.It's still possible to use a list for backwards-compatibility, but this will raise a deprecation warning.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)