summaryrefslogtreecommitdiff
path: root/srv/src/http/mailinglist.go
diff options
context:
space:
mode:
Diffstat (limited to 'srv/src/http/mailinglist.go')
-rw-r--r--srv/src/http/mailinglist.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/srv/src/http/mailinglist.go b/srv/src/http/mailinglist.go
index 90e602c..eab2f51 100644
--- a/srv/src/http/mailinglist.go
+++ b/srv/src/http/mailinglist.go
@@ -18,6 +18,10 @@ func (a *api) mailingListSubscribeHandler() http.Handler {
len(email) >= 512 {
apiutil.BadRequest(rw, r, errors.New("invalid email"))
return
+
+ } else if strings.ToLower(parts[1]) == "gmail.com" {
+ apiutil.BadRequest(rw, r, errors.New("gmail does not allow its users to receive email from me, sorry"))
+ return
}
err := a.params.MailingList.BeginSubscription(email)