Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

removeaccount.sh 466 B

pirms 6 gadiem
1234567891011121314151617181920
  1. #!/bin/sh
  2. muttdir="$HOME/Repos/email-mutt-offline/"
  3. # This script will remove an account from ~/.offlineimaprc and the
  4. # designated location in ~/.config/mutt/accounts.
  5. # Feed the script the title of the account.
  6. title=$1
  7. removeAccount() { sed -ie "
  8. /Account $title]/,/Account/{//!d}
  9. /Account $title]/d
  10. s/ $title\(,\|$\)//g
  11. s/=$title\(,\|$\)/=/g
  12. s/,$//g
  13. " ~/.offlineimaprc
  14. rm "$muttdir"accounts/$title.muttrc
  15. echo $title deleted. ;}
  16. removeAccount $title