Mercurial > hgrepos > hgweb.cgi > s4
diff s4-blog.sh @ 960:0d9caeab3d81 draft
Instant notify by "@all" sign at the beginning of article.
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Sat, 29 Jan 2022 10:41:41 +0900 |
parents | b8ce08814228 |
children | b327b5691b59 |
line wrap: on
line diff
--- a/s4-blog.sh Fri Dec 24 08:39:25 2021 +0900 +++ b/s4-blog.sh Sat Jan 29 10:41:41 2022 +0900 @@ -43,7 +43,10 @@ blogtitle=`getvalbyid blog title "$blogid"` blogurl="$urlbase?replyblog+$blogid" action=${4:-書き込み} - mode=`getvalbyid blog notify "$blogid"` + case "$3" in + @all*) mode=all ;; + *) mode=`getvalbyid blog notify "$blogid"` ;; + esac isgroup "$blogowner" && _isgroup=true || _isgroup=false ### EXCEPT=`sqlquote "$user"` ## User should receive to feal some annoyance case $mode in @@ -94,6 +97,8 @@ fi elif echo "$firstline" | grep -q "^## "; then subject=${firstline#\#\# } + elif echo "$firstline" | grep -q "^@all "; then + subject=${firstline#@all } fi else # This else block is not symmetry, check later(2020-1209) @@ -609,7 +614,9 @@ ntmode="通知モード=$blog_notify${blog_team:+ (team=$blog_team)} 記事の1行目を「## 」(半角シャープシャープ空白=大見出し) にするとそれより後ろの部分がSubject(件名)になります。 -If the first line begins with "## ", sent it as Subject of email." +記事先頭に @all で全員(チーム所有の場合はチーム全体)通知になります。 +If the first line begins with "## ", sent it as Subject of email. +If begins with "@all", notify to all group(or team) members." textform=$(cat<<-EOF <div class="fold"> <input type="checkbox" id="cmt" checked><label