configuration/local/bin/mreflow

26 lines
462 B
Plaintext
Raw Normal View History

#!/bin/sh
# Do not modify headers
while read line && [ -n "$line" ]; do
printf "%s\n" "$line"
done
printf "\n"
read line || exit 0
while true; do
2021-05-18 23:51:52 +02:00
if [ "${line% wrote:}" != "$line" -o "${line%,}" != "$line" ]; then
printf "%s\n" "$line"
read line || exit 0
fi
while [ -n "$line" ]; do
printf "%s\n" "$line"
read line || exit 0
done | par $* | sed 's/$/ /;$s/ $//'
read line || exit 0
if [ -z "$line" ]; then
exit 0
else
printf "\n"
fi
done