Browse Source

fix for trailing whitespace in accounts line

tags/v3.1
Luke Smith 6 years ago
parent
commit
a4e016a8f3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mutt-wizard.sh

+ 1
- 1
mutt-wizard.sh View File

@@ -183,7 +183,7 @@ addAccount() {
echo "macro index,pager i$idnum '<sync-mailbox><enter-command>source "$muttdir"accounts/$title.muttrc<enter><change-folder>!<enter>'" >> "$muttdir"personal.muttrc echo "macro index,pager i$idnum '<sync-mailbox><enter-command>source "$muttdir"accounts/$title.muttrc<enter><change-folder>!<enter>'" >> "$muttdir"personal.muttrc


# Add to offlineimaprc sync list. # Add to offlineimaprc sync list.
sed -i "s/^accounts =.*[a-zA-Z]$/&, $title/g;s/^accounts =$/accounts = $title/g" ~/.offlineimaprc
sed -i "s/^accounts =.*[a-zA-Z]$/&, $title/g;s/^accounts =\s*$/accounts = $title/g" ~/.offlineimaprc


# Makes account default if there is no default account. # Makes account default if there is no default account.
grep "$muttdir"personal.muttrc -e "^source .*accounts.*" >/dev/null && echo there || \ grep "$muttdir"personal.muttrc -e "^source .*accounts.*" >/dev/null && echo there || \


Loading…
Cancel
Save