Browse Source

add response to unsubscribed (but registered) users trying to send mail

Pi 1 year ago
parent
commit
3122ad053c
2 changed files with 9 additions and 2 deletions
  1. 2 1
      filters/cropswap-members@shandan.one
  2. 7 1
      responses/2.html

+ 2 - 1
filters/cropswap-members@shandan.one

@@ -42,7 +42,8 @@ if ($DISPATCH)
       gdbmclose
       EXITCODE=$UNSUBSCRIBED
       cc "|$DEBUGMAIL unsubscribed"
-      exit
+      RESP="$RESPDIR/$EXITCODE.html"
+      to "|$MAILBOT"
    }
    gdbmclose
 

+ 7 - 1
responses/2.html

@@ -1,3 +1,9 @@
 <html><head></head><body>
-<p>ERROR <strong>unsubscribed</strong>
+<p>You must be subscribed in order to send or receive mail from <a href="mailto:cropswap-members@shandan.one">cropswap-members@shandan.one</a>
+<p>You may <a href="mailto:cropswap-members@shandan.one?subject=[SUBSCRIBE]">subscribe</a> at any time by sending an email to <a href="mailto:cropswap-members@shandan.one">cropswap-members@shandan.one</a>, with [SUBSCRIBE] as the subject (square brackets included). For example:
+<p><pre>
+To:      cropswap-members@shandan.one
+Subject: [SUBSCRIBE]
+</pre>
+<p>You may also contact the organizers for assistance by sending an e-mail to <a href="mailto:cropswap@shandan.one">cropswap@shandan.one</a>
 </body></html>