diff options
Diffstat (limited to 'bin/mail')
-rwxr-xr-x | bin/mail/comment.sh | 14 |
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 | ||
31 | if [ -n "$REQUEST_METHOD" ]; then | ||
32 | <<-RESPONSE cat | ||
33 | Status: 200 | ||
34 | Content-Type: text/plain | ||
35 | |||
36 | $(cat $0) | ||
37 | RESPONSE | ||
38 | exit 0 | ||
39 | fi | ||
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 |