Commit graph

9 commits

Author SHA1 Message Date
862749f863
Fix SMTP AUTH LOGIN method for servers with uncommon success messages
This fixes #94 and basically reverts d0f0435. As James points out correctly in #94, we should not assume specific responses from the server. As long as the spec is followed and the server returns the correct SMTP code, we should not do our own magic.

I've also extended the `getTestConnection` method in client_test.go, so that we can specify more test environment options like `TEST_PORT` and `TEST_TLS_SKIP_VERIFY`. This was needed for testing with the ProtonMail Bridge which listens on a different port and has non-trusted certificates.
2023-01-07 11:31:46 +01:00
5bea905ff9
Make golangci-lint gofumpt happy 2022-10-17 18:12:18 +02:00
31001e87b2
#24: Add SPDX license IDs for REUSE compliance
# SUMMARY

* Bad licenses:
* Deprecated licenses:
* Licenses without file extension:
* Missing licenses:
* Unused licenses:
* Used licenses: CC0-1.0, MIT
* Read errors: 0
* Files with copyright information: 45 / 45
* Files with license information: 45 / 45

Congratulations! Your project is compliant with version 3.0 of the REUSE Specification :-)
2022-06-17 15:05:54 +02:00
8f96251ebf
Update auth_test.go to cover the new response 2022-03-20 19:31:30 +01:00
6a446bd4bd
Added fix to LOGIN auth module, in case the server responds with "Authentication successful" 2022-03-20 19:28:20 +01:00
e71e445294
Added tests for SMTP LOGIN AUTH code. 100% coverage 2022-03-15 15:54:36 +01:00
d0f04353a2
Removed unneeded default: case in SMTP LOGIN AUTH code 2022-03-15 15:54:16 +01:00
810babb379
Typos 2022-03-12 20:07:20 +01:00
06e37755f2
Some progress was made:
- Implemented proper AUTH LOGIN mechanism
- Implemented msgWriter for handling io
- Implemented proper mail header formatting/output
- Minor refactoring
2022-03-12 15:10:01 +01:00