mutt-wizard/stat.sh

9 lines
250 B
Bash
Raw Normal View History

2018-02-10 07:47:29 +01:00
#!/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')