aboutsummaryrefslogtreecommitdiff
path: root/tests/etc/notify.rc
blob: 4461ce32e3bb909ce75d249b9cf60e8d2a983205 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
# This file is part of Wydawca testsuite
# Copyright (C) 2009, 2010 Sergey Poznyakoff
#
# Wydawca is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# Wydawca is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Wydawca.  If not, see <http://www.gnu.org/licenses/>.

# Notify the user about successful uploads
notify-event {
  event success;
  recipient user;
  message <<EOT
Subject: Upload of ${project} successful

Upload of ${project} to ${url}/${dir} finished successfully.
Files uploaded:

${triplet:ls:upload}

Regards,
Wydawca
The Project Submission Robot
EOT;
}

# Notify project admin about a successful upload.
notify-event {
  event success;
  recipient owner;
  message <<EOT
Subject: Upload of ${project} successful

${user:real-name} (${user:email}) successfully uploaded files
for ${project} to ${url}/${dir}. Files uploaded:

${triplet:ls:upload}

Regards,
Wydawca
The Project Submission Robot
EOT;
}

# Notify project admin, if someone non authorized attempted to upload some
# files for the project they run.
notify-event {
  event bad-ownership;
  recipient owner;
  message <<EOT
Subject: Suspicious upload of ${project}

Someone not authorized to make releases for ${project}
has attempted to upload the following files to ${url}/${dir}:

${triplet:ls:full}

This upload has been ignored and the files removed. The person who attempted
the upload was ${user:real-name}, user name ${user:name}, email ${user:email}.
If you think this is an error and wish this user to be authorized to make
releases for ${project}, please contact <puszcza-hackers@gnu.org.ua>.
Otherwise, let us know so we could undertake appropriate measures.

Regards,
Wydawca
The Project Submission Robot
EOT;
}

# Notify the user (submitter), if the directive signature does not match
# his record.
# It may be a good idea not to notify users about such events, just to
# stay on a safe side. Notifying project admins (see below) should be quite
# enough.
notify-event {
  event bad-directive-signature;
  recipient user;
  message <<EOT
Subject: Suspicious upload of ${project}

Someone (apparently you), has tried to make a release for ${project}.
However, the signature of the directive file was wrong, which looks
suspicious. The person uploaded the following files:

${triplet:ls:full}

This upload has been ignored and the files removed. If it was you who
attempted this upload, please make sure you use the right PGP key and
try again. If not, please let us know as soon as possible, so we can
track down the person trying to make believe he is you.

Regards,
Wydawca
The Project Submission Robot
EOT;
}

# Notify the project admin, if submitted directive signature did not match
# submitter record.
notify-event {
  event bad-directive-signature;
  recipient owner;
  message <<EOT
Subject: Suspicious upload of ${project}

${user:real-name} (${user:email}) has tried to make a release
for ${project}. However, the signature of the directive file was wrong,
which looks suspicious. The person uploaded the following files:

${triplet:ls:full}

This upload has been ignored and the files removed.

Regards,
Wydawca
The Project Submission Robot
EOT;
}

# Notify the user (submitter), if the detached signature does not match
# his record.
# It may be a good idea not to notify users about such events, just to
# stay on a safe side. Notifying project admins (see below) should be quite
# enough.
notify-event {
  event bad-detached-signature;
  recipient user;
  message <<EOT
Subject: Suspicious upload of ${project}

Someone (apparently you), has tried to make a release for ${project}.
However, the detached signature signature was wrong, which looks
suspicious. The person uploaded the following files:

${triplet:ls:full}

This upload has been ignored and the files removed. If it was you who
attempted this upload, please make sure you use the right PGP key and
try again. If not, please let us know as soon as possible, so we can
track down the person trying to make believe he is you.

Regards,
Wydawca
The Project Submission Robot
EOT;
}

# Notify the project admin, if submitted detached signature did not match
# submitter record.
notify-event {
  event bad-detached-signature;
  recipient owner;
  message <<EOT
Subject: Suspicious upload of ${project}

${user:real-name} (${user:email}) has tried to make a release
for ${project}. However, the detached signature file was wrong,
which looks suspicious. The person uploaded the following files:

${triplet:ls:full}

This upload has been ignored and the files removed.

Regards,
Wydawca
The Project Submission Robot
EOT;
}

notify-event {
  event check-failure;
  recipient user;
  message <<EOT
Subject: ${triplet:dist} rejected

Your upload of ${triplet:dist} has been rejected by the distribution
verification procedure with the following diagnostics:

${check:diagn}
Please fix the tarball and resubmit.

Regards,
Wydawca
The Project Submission Robot
EOT;
}


Return to:

Send suggestions and report system problems to the System administrator.