aboutsummaryrefslogtreecommitdiffstats
path: root/modules/subversion/templates/hook_sendmail.pl
diff options
context:
space:
mode:
Diffstat (limited to 'modules/subversion/templates/hook_sendmail.pl')
-rw-r--r--modules/subversion/templates/hook_sendmail.pl21
1 files changed, 20 insertions, 1 deletions
diff --git a/modules/subversion/templates/hook_sendmail.pl b/modules/subversion/templates/hook_sendmail.pl
index 1fdc381f..cf3be6a4 100644
--- a/modules/subversion/templates/hook_sendmail.pl
+++ b/modules/subversion/templates/hook_sendmail.pl
@@ -6,8 +6,27 @@
handler: Alternative
alternative: HTML::ColorDiff
with-diff: 1
+ max_diff_length: 20000
+ ticket_map:
+ '(\bmga#(\d+)\b)': 'https://bugs.mageia.org/show_bug.cgi?id=%s'
+ revision-url: "https://svnweb.mageia.org/packages/?revision=%s&view=revision"
+ subject_cx: 1
+ from: subversion_noreply@ml.<%= @domain %>
to:
<%- commit_mail.each do |mail| -%>
- <%= mail %>
<%- end -%>
- from: root@<%= domain %>
+<%- if i18n_mail != '' -%>
+'.*\.pot$':
+ PATH: "/usr/bin:/usr/local/bin"
+ handler: Alternative
+ alternative: HTML::ColorDiff
+ with-diff: 1
+ max_diff_length: 20000
+ ticket_map:
+ '(\bmga#(\d+)\b)': 'https://bugs.mageia.org/show_bug.cgi?id=%s'
+ revision-url: "https://svnweb.mageia.org/packages/?revision=%s&view=revision"
+ subject_cx: 1
+ from: subversion_noreply@ml.<%= @domain %>
+ to: <%= i18n_mail %>
+<%- end -%>