vert-x3 / vertx-mail-client

Apache License 2.0
34 stars 33 forks source link

[Issue-178] SMTPConnection clean up #194

Closed gaol closed 1 year ago

gaol commented 1 year ago

Motivation: Fixes #178

Conformance:

Your commits should be signed and you should have signed the Eclipse Contributor Agreement as explained in https://github.com/eclipse/vert.x/blob/master/CONTRIBUTING.md Please also make sure you adhere to the code style guidelines: https://github.com/vert-x3/wiki/wiki/Vert.x-code-style-guidelines

This PR tries to:

It does not affect how MailClient is used.

vietj commented 1 year ago

can you rebase this because now it has merge conflicts thanks @gaol

gaol commented 1 year ago

Just back from PTO, will look into this tomorrow :)

gaol commented 1 year ago

@vietj Done

gaol commented 1 year ago

@vietj I would like this merged before cleaning deprecated callbacks in this component, WDYT ?

vietj commented 1 year ago

@gaol sorry for the miss, can you rebase this branch so we can merge it soon ?

gaol commented 1 year ago

@vietj sure, done :)

gaol commented 1 year ago

@vietj there is a PR #208 which has conflicts with this, I think we can merge this one so that #208 can go on.

Ladicek commented 1 year ago

So this PR does 2 things:

I believe the attempt to futurize the client in this PR is not very successful. Only a few places are converted, and often in a suboptimal way. My changes (originally in #208, which I closed now to finish this first) are more thorough and complete.

For that reason, I believe we should first merge the SMTPConnection improvements on their own, and take care of futurization afterwards. I took this PR, removed all changes to files outside of SMTPConnection, and only did minimal updates to the SMTPConnection users to make things work. This is present in a branch here: https://github.com/Ladicek/vertx-mail-client/commits/cleanup-smtp-connection It can be easily seen that SMTPConnection class is almost exactly the same as in this PR (only a few tiny changes). WDYT about merging that branch first?

Then, we can move forward with futurizing. I have a preliminary change in another branch: https://github.com/Ladicek/vertx-mail-client/commits/futurization in case anyone wants to take a look. This branch is mostly equivalent to what I originally had in #208, but based on the new SMTPConnection internals.

gaol commented 1 year ago

@Ladicek sounds good to me, thanks.

Ladicek commented 1 year ago

@gaol Do you want to open a PR with that commit, or maybe force-push it into this PR?

gaol commented 1 year ago

@Ladicek sure, I am closing this one, as suppressed by #209 :)