Skip to content

Minor cleanup and fixes #11

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 7 commits into from
Feb 16, 2021
Merged

Minor cleanup and fixes #11

merged 7 commits into from
Feb 16, 2021

Conversation

JonathonReinhart
Copy link
Collaborator

This PR makes some minor cleanup and fixes:

  • Do some refactoring in main() to DRY up redundant code, and make it a little easier to read
  • Don't run ListenAndServe in a go routine -- This fixes Errors returned by smtpd.Server.ListenAndServe() are ignored #10
  • Add helpful log messages for various error cases caused by client misconfiguration
  • Add command line argument checking in hasher (don't segfault when password arg is missing)

Copy link
Owner

@decke decke left a comment

Choose a reason for hiding this comment

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

The changes look all nice and clean to me. Thanks a lot!

@decke decke merged commit c781938 into decke:master Feb 16, 2021
@JonathonReinhart JonathonReinhart deleted the minor-cleanup-fixes branch February 16, 2021 16:53
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.

Errors returned by smtpd.Server.ListenAndServe() are ignored
2 participants