summaryrefslogtreecommitdiff
path: root/srv
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2022-08-09 20:56:34 -0600
committerBrian Picciano <mediocregopher@gmail.com>2022-08-09 20:56:34 -0600
commitcd1d97bebf73ba513a3b89df92cc3030f264f7d8 (patch)
treeb7a831c6fc06c371a24e3f5730257da37f452584 /srv
parent7f6d7366e3b7bb9bceb01bdd658b0210800f479d (diff)
don't allow gmail addresses to subscribe
Diffstat (limited to 'srv')
-rw-r--r--srv/src/http/mailinglist.go4
-rw-r--r--srv/src/http/tpl/follow.html6
2 files changed, 10 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)
diff --git a/srv/src/http/tpl/follow.html b/srv/src/http/tpl/follow.html
index 48b7541..501b310 100644
--- a/srv/src/http/tpl/follow.html
+++ b/srv/src/http/tpl/follow.html
@@ -42,6 +42,12 @@
complete the process if you don't immediately see anything in your inbox.
</p>
+<p style="color: red;">
+ Unfortunately Google considers all emails from my mail server to be spam. I'm
+ tired of seeing the bounce errors on my side, so I'm disabling the ability to
+ sign up for the mailing list with a GMail address. Sorry (not sorry).
+</p>
+
<style>
#emailStatus.success {