You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdepim/kmail/kmail-3.2-update-loop-on-go...

22 lines
416 B

#! /usr/bin/env bash
while read; do
KEY="${REPLY%%=*}"
VALUE="${REPLY#*=}"
if [ "$KEY" = "LoopOnGotoUnread" ]; then
case "$VALUE" in
[Ff][Aa][Ll][Ss][Ee]|0)
echo "LoopOnGotoUnread=0"
;;
2) # we were run already, be nice and don't change anything
echo "LoopOnGotoUnread=2"
;;
*) # default
echo "LoopOnGotoUnread=1"
;;
esac
else
echo "$REPLY"
fi
done