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

Refactor DSN handling from client.go to smtp.go #104

Merged
merged 1 commit into from
Jan 18, 2023
Merged

Conversation

wneessen
Copy link
Owner

@wneessen wneessen commented Jan 18, 2023

This PR refactors the DSN (RFC 1891) SMTP client handling, that was introduced in f4cdc61.

While most of the Client options stay the same, the whole workaround logic for the SMTP client has been removed and added as part of the SMTP client instead.

This way we got rid of the duplicate/redundant Client mail(), rcpt(), dsnRcpt(), dsnMail() methods as well as the copies of the cmd() and validateLine() methods. The Client is now using the proper Mail() and Rcpt() methods of the SMTP client instead.

This PR refactors the the DSN (RFC 1891) SMTP client handling, that was introduced in f4cdc61.

While most of the Client options stay the same, the whole workaround logic for the SMTP client has been removed and added as part of the SMTP client instead.

This was we got rid of the Client's own `mail()`, `rcpt()`, `dsnRcpt()`, `dsnMail()` methods as well as the copies of the `cmd()` and `validateLine()` methods. The Client is now using the proper `Mail()` and `Rcpt()` methods of the SMTP client instead.
@wneessen wneessen merged commit 91bfed3 into main Jan 18, 2023
@wneessen wneessen deleted the refactor_dsn_to_smtp branch January 18, 2023 09:39
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.

1 participant