diff options
author | root <root@dev.spline.de> | 2008-08-17 15:30:06 +0200 |
---|---|---|
committer | root <root@dev.spline.de> | 2008-08-17 15:30:06 +0200 |
commit | d712a8a289885ca242b0de173535ab6ded2a833c (patch) | |
tree | 6831b78a140d6f17b178a4a99635e7a1895f93aa /bin | |
parent | 4f886b2cbbc86353c81364710f187cc07aec0305 (diff) | |
download | dev-scripts-d712a8a289885ca242b0de173535ab6ded2a833c.tar.gz dev-scripts-d712a8a289885ca242b0de173535ab6ded2a833c.tar.xz dev-scripts-d712a8a289885ca242b0de173535ab6ded2a833c.zip |
send confirmation email
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/addproject | 20 |
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 } |