aboutsummaryrefslogtreecommitdiffstats
path: root/modules/subversion/templates/hook_sendmail.pl
blob: 81b786d225203b35664bc4db3066dde4a0ce426c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/perl -MSVN::Notify::Config=$0
--- #YAML:1.0

'':
  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:
<%- commit_mail.each do |mail|  -%>
    - <%= mail %>
<%- end -%>
<%- 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 -%>