Hi @acalantog,
Thanks.
I am in step 6 “Testing my changes”.
I read both tutorials that you mentioned.
One example what I tried:
- extracted confluence-email-notifications-plugin-8.8.3.jar
- edited /templates/content/notification-comment-pattern-1.0.0.soy:
Original:
{namespace Confluence.Templates.Mail.Content}
/**
* Notification Comment Pattern
* @param comment
*/
{template .notificationCommentPattern}
<table class="notification-comment-pattern" cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td class="notification-comment-pattern-container mobile-resize-text">
{$comment|noAutoescape}
</td>
</tr>
</table>
{/template}
- delete @param content and {$comment|noAutoescape}
Customized
{namespace Confluence.Templates.Mail.Content}
/**
* Notification Comment Pattern
*/
{template .notificationCommentPattern}
<table class="notification-comment-pattern" cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td class="notification-comment-pattern-container mobile-resize-text">
</td>
</tr>
</table>
{/template}
- dropped the new jar file with changes to /confluence/WEB-INF/atlassian-bundled-plugins folder and restarted the instance
- Now I created a Test Page
- Made one user to page-watcher
- Commented with a second user
Result:
Confluence no longer sends mails.
If I undo the change, the mails are sent again.
I do not know if I edit the correct template, or if I edit the template incorrectly
I would be glad if someone can help me
Regards
Marcel