-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Allow user to overwrite config using $STORAGE_ROOT/mailinabox.conf
#2382
base: main
Are you sure you want to change the base?
Conversation
What is the purpose of having multiple files? additionally, there are dozens of uses of /etc/mailinabox.conf in the codebase that would not use changes in Syntax changes to code only masks git blame's and are likely not needed in a change to |
For a lack of better word, I will call it layering (or inheritance), the algo goes like this:
VSCode loads its settings this way, and I found to be very flexible for all kinds of use cases
Thanks for pointing this out, I missed it.. downside is, this PR not going to work
Ok, I will omit them in future, but ideally we can pick a code formatter, this will allow folks like me to PR more easily and does not affect those who don't use a code formatter |
I had a quick look, only
I believe this can be solved by combining Before I proceed, are there any other concerns about this approach? |
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.
There are a lot of changes here that appear to be formatting changes and have nothing to do with the subject of the PR. I'm not saying any of these formatting changes are bad, just suggesting that they belong in a separate PR. The more changes there are, the harder it is to review the PR, and especially after the recent XZ incident, I think reviewers have to be extra diligent about every character change in a PR. So, I'd like to see this PR with just the changes necessary to accomplish its goals.
Yes I agree that it breaks the Apart from the formatting changes, are there other concerns? I appreciate an explicit |
Based on comments from #2349 (comment), this PR attempts to provide a convention on how mailinbox determines its configuration
/etc/mailinabox.conf
$STORAGE_ROOT/mailinabox.conf
$STORAGE_ROOT/mailinabox.conf
does not existsTo make it easier for the reviewer(s),
$STORAGE_ROOT/mailinabox.conf
intoDEFAULT_xxx
I hope this can be accepted so that I can further proceed with introducing a configurable TTL and DKIM_SELECTOR
#2352
#2383