Community
Participate
Working Groups
For the purposes of integration and/or branding, it would be nice to be able to override the email templates used by Orion (in org.eclipse.orion.server.useradmin/emails). Currently, the only way to handle this is to replace the files in the useradmin plugin itself.
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see: https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html
I was about to submit the same request. UserEmailUtil.java currently requires the email templates to be in the bundle itself. http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/tree/bundles/org.eclipse.orion.server.useradmin/src/org/eclipse/orion/server/useradmin/UserEmailUtil.java?id=443083a9afc055f8201bae01c7a1297fb914153b
Rafael or Javier, can you give an example of what you would override?
Carolyn, in my case it would be the email message body, and the subject string (for example, the email confirmation message has as subject: "Confirm your email address for Orion" - my users do not necessarily know my project is built on Orion).
See also: https://github.com/maqetta/maqetta/issues/3846
I took a quick look at this, and I think a simple solution could be done as follows: - Have a server configuration property for the product name - Have a template variable in the email contents that is replaced with the product name There are already similar variable substitutions that occur to copy here. The class that does the substitutions is: org.eclipse.orion.internal.server.servlets.useradmin.UserEmailUtil And the email contents are found here: http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/tree/bundles/org.eclipse.orion.server.servlets/emails This would be an easy 30+ minute work item for a bug day or student project. Of course a more complete solution would allow for completely customized messages, but that is a bit more work if someone is willing to dig into it.
I also removed some gratuitous uses of the word "orion" from the confirmation messages: http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=f69b2ebd88fdd1fa6500f3d825d02a064a590882
Paul, do you want to give this to a student.
(In reply to Steve Northover from comment #8) > Paul, do you want to give this to a student. Yes, I think so.
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see: https://dev.eclipse.org/mhonarc/lists/orion-dev/msg04002.html
Reopening as suggested.
Rafeal, would documenting this be enough?
Steve, do you mean there is already a way of customizing things and it just isn't documented yet? Yes, that would be great! Anything that allows the email templates to be customized without having to change the code/files shipped in Orion itself would be good. Last time I checked the strings I needed to replace were hardcoded into the code (or internal resource files).
I meant documenting the string changes. A mechanism does not exist and it is unlikely we will get to this bug. Please submit a patch and we will take a look at it.