aboutsummaryrefslogtreecommitdiffstats
path: root/modules/subversion/templates/hook_sendmail.pl
blob: cf3be6a475be0dfa9aa7be4ebb11dfcf57f07dbb (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 -%>