feat(scripts): add him.sh to list emails from all accs

This commit is contained in:
Dmitriy Pleshevskiy 2022-04-24 21:42:11 +03:00
parent bd191aa942
commit b10039d9b4

15
scripts/him.sh Executable file
View file

@ -0,0 +1,15 @@
#!/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
;;
esac