summaryrefslogtreecommitdiff
path: root/stat.sh
diff options
context:
space:
mode:
Diffstat (limited to 'stat.sh')
-rwxr-xr-xstat.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/stat.sh b/stat.sh
new file mode 100755
index 0000000..fa0143f
--- /dev/null
+++ b/stat.sh
@@ -0,0 +1,8 @@
+#!/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')