summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xbin/addproject20
1 files changed, 18 insertions, 2 deletions
diff --git a/bin/addproject b/bin/addproject
index 660a245..f40e3ae 100755
--- a/bin/addproject
+++ b/bin/addproject
@@ -95,13 +95,29 @@ main() {
eheading "requesting new mailinglist for the project"
# register mailinglist (owner is user_email) for the new project
- eexec wget --no-check-certificate --post-data "name=commit-${project_name}&email=${user_email}" \
+ eexec wget -q -O /dev/null --no-check-certificate --post-data "name=commit-${project_name}&email=${user_email}" \
https://lists.spline.inf.fu-berlin.de/cgi-bin/neueliste.pl
+ eheading "sending confirmation email to applicant"
+ sendmail -t <<-EOF
+ From: dev@spline.de
+ Subject: your new project has been approved
+ To: ${user_email}
+
+ Dear ${user_name},
+
+ your project (${project_name}) has been created and can be found at
+ https://dev.spline.de/trac/${project_name}
+
+ Yours,
+ the dev.spline.de team
+ EOF
+ einfo "mail to ${user_email} has been sent"
+
echo
einfo
einfo "done! success! jipii! neeeat!"
- einfo "you can find your project at $(color yellow)https://dev.spline.de/trac/${project_name}$(color)"
+ einfo "you can find the project at $(color yellow)https://dev.spline.de/trac/${project_name}$(color)"
einfo
echo
}