From b10039d9b415cc16ffcbcae711de8e299137816a Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Sun, 24 Apr 2022 21:42:11 +0300 Subject: [PATCH] feat(scripts): add him.sh to list emails from all accs --- scripts/him.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 scripts/him.sh diff --git a/scripts/him.sh b/scripts/him.sh new file mode 100755 index 0000000..2796fd3 --- /dev/null +++ b/scripts/him.sh @@ -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 + +