aboutsummaryrefslogtreecommitdiff
path: root/tests/etc/notify.rc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/etc/notify.rc')
-rw-r--r--tests/etc/notify.rc160
1 files changed, 160 insertions, 0 deletions
diff --git a/tests/etc/notify.rc b/tests/etc/notify.rc
new file mode 100644
index 0000000..00c6bda
--- /dev/null
+++ b/tests/etc/notify.rc
@@ -0,0 +1,160 @@
+# 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: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: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: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: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: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: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:full}
+
+This upload has been ignored and the files removed.
+
+Regards,
+Wydawca
+The Project Submission Robot
+EOT;
+}

Return to:

Send suggestions and report system problems to the System administrator.