muttdir fixed
This commit is contained in:
parent
efd3f26919
commit
7e14425ec7
@ -62,12 +62,12 @@ replacement="
|
|||||||
|
|
||||||
|
|
||||||
addAccount() {
|
addAccount() {
|
||||||
if [ ! -f ~/.offlineimaprc ]; then cp "$muttdir"autoconf/offlineimap_header ~/.offlineimaprc; fi
|
if [ ! -f ~/.offlineimaprc ]; then cp "$muttdir"autoconf/offlineimap_header ~/.offlineimaprc; fi
|
||||||
cat "$muttdir"autoconf/offlineimap_profile | sed -e "$replacement" >> ~/.offlineimaprc
|
cat "$muttdir"autoconf/offlineimap_profile | sed -e "$replacement" >> ~/.offlineimaprc
|
||||||
# Add the mutt profile.
|
# Add the mutt profile.
|
||||||
cat "$muttdir"autoconf/mutt_profile | sed -e "$replacement" > "$muttdir"accounts/$title.muttrc
|
cat "$muttdir"autoconf/mutt_profile | sed -e "$replacement" > "$muttdir"accounts/$title.muttrc
|
||||||
# Add on offlineimaprc sync list.
|
# Add on 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 =$/accounts = $title/g" ~/.offlineimaprc ;}
|
||||||
|
|
||||||
addAccount
|
addAccount
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
muttdir="$HOME/Repos/email-mutt-offline/"
|
muttdir="$HOME/.config/mutt/"
|
||||||
|
|
||||||
# This script will remove an account from ~/.offlineimaprc and the
|
# This script will remove an account from ~/.offlineimaprc and the
|
||||||
# designated location in ~/.config/mutt/accounts.
|
# designated location in ~/.config/mutt/accounts.
|
||||||
@ -17,4 +17,4 @@ removeAccount() { sed -ie "
|
|||||||
" ~/.offlineimaprc
|
" ~/.offlineimaprc
|
||||||
rm "$muttdir"accounts/$title.muttrc
|
rm "$muttdir"accounts/$title.muttrc
|
||||||
echo $title deleted. ;}
|
echo $title deleted. ;}
|
||||||
removeAccount $title
|
#removeAccount $title
|
||||||
|
Loading…
Reference in New Issue
Block a user