update issues_change_detector from pbot-ng, change unknown ip6 2001:ba8:1f1:f216::5 to ::1, ignore bot_settings.sh, fix description on hack_of_all_hacks
This commit is contained in:
@@ -14,30 +14,34 @@ shopt -s extglob
|
||||
next_line_is_url=0
|
||||
|
||||
inotifywait -m --format '%w%f' -e create "${maildir}" 2>/dev/null |
|
||||
while read email
|
||||
do
|
||||
while read line
|
||||
while read email
|
||||
do
|
||||
case "${line}" in
|
||||
'Subject: ['* )
|
||||
lp1="${line#Subject: [}"
|
||||
lp="${lp1%% - *}"
|
||||
echo -n "${lp}"
|
||||
;;
|
||||
'Issue #'* )
|
||||
echo -n " - ${line}"
|
||||
;;
|
||||
*' #'+([[:digit:]])': '* )
|
||||
echo -n " (${line#'Bug #'+([[:digit:]])': '})"
|
||||
next_line_is_url=1
|
||||
;;
|
||||
'https://issues.hyperbola.info/issues/'* )
|
||||
(( next_line_is_url )) &&
|
||||
echo -n " ${line}"
|
||||
break
|
||||
;;
|
||||
esac
|
||||
done < "${email}"
|
||||
while read line
|
||||
do
|
||||
case "${line}" in
|
||||
'Subject: ['* )
|
||||
lp1="${line#Subject: [}"
|
||||
lp="${lp1%% - *}"
|
||||
echo -n "${lp}"
|
||||
;;
|
||||
'Issue #'* )
|
||||
echo -n " - ${line}"
|
||||
;;
|
||||
*' #'+([[:digit:]])': '* )
|
||||
echo -n " (${line#'Bug #'+([[:digit:]])': '})"
|
||||
next_line_is_url=1
|
||||
;;
|
||||
'https://labs.parabola.nu/issues/'* )
|
||||
(( next_line_is_url )) &&
|
||||
echo -n " ${line}"
|
||||
break
|
||||
;;
|
||||
esac
|
||||
done < "${email}"
|
||||
|
||||
echo
|
||||
done >> "${bot_ipc}"
|
||||
echo
|
||||
done |
|
||||
while read message
|
||||
do
|
||||
echo "${message}" >> "${bot_ipc}"
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user