You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

9 lines
250 B

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