2022-04-24 21:42:11 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
case $1 in
|
|
|
|
"" | "list")
|
|
|
|
bin=~/repos/himalaya/target/release
|
|
|
|
for acc in $(NO_COLOR=1 $bin/himalaya accounts | grep imap | awk '{ print $1 }')
|
|
|
|
do
|
|
|
|
echo "account: $acc"
|
|
|
|
$bin/himalaya -a "$acc" list
|
|
|
|
echo "---"
|
|
|
|
done
|
|
|
|
;;
|
2022-04-25 09:57:09 +03:00
|
|
|
|
|
|
|
"watch")
|
|
|
|
while true
|
|
|
|
do
|
|
|
|
printf '\033[2J'
|
|
|
|
$0 list
|
|
|
|
sleep 10
|
|
|
|
done
|
|
|
|
;;
|
2022-04-24 21:42:11 +03:00
|
|
|
esac
|
|
|
|
|
|
|
|
|