Open rmannibucau opened 5 years ago
Hi @rmannibucau !
Which other impl?
I use geronimo-javamail.
GreenMail will go for JavaMail 1.6.x with next GreenMail 1.6 release.
This might be a problem, as geronimo-java seems to implement only up to JavaMail 1.5.x releases, and also does not show much of recent activity.... ?
@marcelmay there are two points:
It also does not cost much to greenmail to not depend hard on an impl thanks shadowing and would make it a generic product. Same applies for new javamail API like setAddress(String) (vs setAddress(InternetAddress)) which used in utilities. It does not bring anything to end users since it is internal details but can prevent the usage/upgrade in several environments. So long story short, this request is to make greenmail usage of javax.mail stable when possible and encapsulated at least.
Side note/bonus: if a jakarta API arrives it will also support it transparently ;).
FYI https://issues.apache.org/jira/browse/TOMEE-2606 and geronimo-javamail 1.5 will likely be released in the coming days
@rmannibucau , sorry for the delay.
To summarize (please correct me):
Make GreenMail independent of SUN/Oracle specific classes, so that GreenMail only uses JavaMail-API and therefore can use different JavaMail-API implementations.
Examples:
I'd prefer this approach, instead of re-packing/-locating JavaMail (which is also a licensing issue, with the internal vendor extension of com.sun.* alias Oracle packages).
@marcelmay sounds perfect to me, just thought relocation was a 15mn work vs supporting other stores but I like your proposal better
Up, any news on this one? I'm hitting this again and with this jakarta renaming thing it gets more and more complicated to manage the dependencies overrides/exclusions so would be awesome to have greenmail + greenmail-
@rmannibucau , I'll try to look into this over xmas vacation. I am curious about separating out the mail implementation.
Hi,
when using another impl than javax.mail, greenmail fails because it finds the wrong stores.
Is it possible to deliver an uber jar relocating config+classes in 1.6 to ensure it becomes compatible?
Thanks, Romain