Skip to content
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

fix for #1808 #1864

Merged
merged 5 commits into from Mar 24, 2021
Merged

fix for #1808 #1864

merged 5 commits into from Mar 24, 2021

Conversation

georglauterbach
Copy link
Member

Description

Bugfix and small improvement for setup.sh

Fixes #1808

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Improvement (non-breaking change that does improve existing functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • [] I have made corresponding changes to the documentation (README.md or ENVIRONMENT.md or the Wiki)
  • If necessary I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@georglauterbach georglauterbach added area/issue priority/medium area/scripts kind/improvement Improve an existing feature, configuration file or the documentation labels Mar 23, 2021
@georglauterbach georglauterbach self-assigned this Mar 23, 2021
@georglauterbach
Copy link
Member Author

georglauterbach commented Mar 23, 2021

Please note that the deletion of mail users now strictly follows the setup.sh help text, deleting only one user at a time. This is intended and does not actually introduce changes technically, since the documentation always stated that it was exactly this way.

target/bin/addmailuser Outdated Show resolved Hide resolved
target/bin/delmailuser Outdated Show resolved Hide resolved
@casperklein
Copy link
Member

Instead of array elements, why not using normal vars that are more readable/intuitive to understand? 😎

Something like this:

USER="${*}"               -->  EMAIL="${*}"

MAILARR[0]="${USER%@*}"   -->  USER="${USER%@*}"
MAILARR[1]="${USER#*@}"   -->  DOMAIN=${USER#*@}"

@wernerfred
Copy link
Member

But then using EMAIL and not USER ;)

@georglauterbach georglauterbach merged commit 4afebda into docker-mailserver:master Mar 24, 2021
@georglauterbach georglauterbach mentioned this pull request Mar 31, 2021
11 tasks
georglauterbach added a commit that referenced this pull request Mar 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/scripts kind/improvement Improve an existing feature, configuration file or the documentation priority/medium
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Mailbox contents not deleted
3 participants