aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-12-07 19:36:18 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-12-07 19:36:18 +0800
commita42ea5a5814113e6952b97f597a78d1061a3f9ea (patch)
tree5b864d6b281e08193ca9a94383326d3882496e04 /bin
parent88f3ecd4e6c00db30befc4f6f1a7cf1a85748fe3 (diff)
Update
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mail/comment.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/mail/comment.sh b/bin/mail/comment.sh
index 8d36e32..20ecb1e 100755
--- a/bin/mail/comment.sh
+++ b/bin/mail/comment.sh
@@ -25,6 +25,20 @@
25# </div> 25# </div>
26# <!-- END OF COMMENT BLOCK --> 26# <!-- END OF COMMENT BLOCK -->
27 27
28# 0. Work as CGI {{{
29
30# Print this script as HTTP Response
31if [ -n "$REQUEST_METHOD" ]; then
32 <<-RESPONSE cat
33 Status: 200
34 Content-Type: text/plain
35
36 $(cat $0)
37 RESPONSE
38 exit 0
39fi
40
41# }}}
28# 1. Check mail is for comment {{{ 42# 1. Check mail is for comment {{{
29 43
30# Restore mail into variables 44# Restore mail into variables