Przeglądaj źródła

muttdir fixed

tags/v3.1
Luke 6 lat temu
rodzic
commit
7e14425ec7
2 zmienionych plików z 8 dodań i 8 usunięć
  1. +6
    -6
      mutt_install.sh
  2. +2
    -2
      removeaccount.sh

+ 6
- 6
mutt_install.sh Wyświetl plik

@@ -62,12 +62,12 @@ replacement="


addAccount() {
if [ ! -f ~/.offlineimaprc ]; then cp "$muttdir"autoconf/offlineimap_header ~/.offlineimaprc; fi
cat "$muttdir"autoconf/offlineimap_profile | sed -e "$replacement" >> ~/.offlineimaprc
# Add the mutt profile.
cat "$muttdir"autoconf/mutt_profile | sed -e "$replacement" > "$muttdir"accounts/$title.muttrc
# Add on offlineimaprc sync list.
sed -i "s/^accounts =.*[a-zA-Z]$/&, $title/g;s/^accounts =$/accounts = $title/g" ~/.offlineimaprc ;}
if [ ! -f ~/.offlineimaprc ]; then cp "$muttdir"autoconf/offlineimap_header ~/.offlineimaprc; fi
cat "$muttdir"autoconf/offlineimap_profile | sed -e "$replacement" >> ~/.offlineimaprc
# Add the mutt profile.
cat "$muttdir"autoconf/mutt_profile | sed -e "$replacement" > "$muttdir"accounts/$title.muttrc
# Add on offlineimaprc sync list.
sed -i "s/^accounts =.*[a-zA-Z]$/&, $title/g;s/^accounts =$/accounts = $title/g" ~/.offlineimaprc ;}

addAccount



+ 2
- 2
removeaccount.sh Wyświetl plik

@@ -1,5 +1,5 @@
#!/bin/sh
muttdir="$HOME/Repos/email-mutt-offline/"
muttdir="$HOME/.config/mutt/"

# This script will remove an account from ~/.offlineimaprc and the
# designated location in ~/.config/mutt/accounts.
@@ -17,4 +17,4 @@ removeAccount() { sed -ie "
" ~/.offlineimaprc
rm "$muttdir"accounts/$title.muttrc
echo $title deleted. ;}
removeAccount $title
#removeAccount $title

Ładowanie…
Anuluj
Zapisz