mutt-wizard/stat.sh
2018-02-09 23:47:29 -07:00

9 lines
250 B
Bash
Executable File

#!/bin/sh
# Gets all accounts used by offlineimaps.
cat ~/.offlineimaprc | grep "^accounts =" | sed -e 's/accounts =\( \)//g;s/\(,\) /\n/g;'
# Another option
# Get current accounts
#accountsline=$(cat ~/.offlineimaprc | grep ^accou | sed 's/,//g')