summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke <luke@lukesmith.xyz>2018-02-20 22:33:26 -0700
committerLuke <luke@lukesmith.xyz>2018-02-20 22:33:26 -0700
commit4b186c6370593d6a0f43ca3ad1745e9af9f02225 (patch)
tree7089b633510b0285c9bbe003975361ad736c0313
parentaa1bdbb7d677236053042c681e1286c5ac3de09d (diff)
reordering
-rwxr-xr-xmutt-wizard.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/mutt-wizard.sh b/mutt-wizard.sh
index 1625267..2f2fa04 100755
--- a/mutt-wizard.sh
+++ b/mutt-wizard.sh
@@ -149,6 +149,9 @@ addAccount() {
shred -u /tmp/$title
mv /tmp/$title.gpg ~/.config/mutt/credentials/
+ # Adding directory structure for cache.
+ mkdir -p "$muttdir"accounts/$title/cache/bodies
+
# Creating the offlineimaprc if it doesn't exist already.
if [ ! -f ~/.offlineimaprc ]; then cp "$muttdir"autoconf/offlineimap_header ~/.offlineimaprc; fi
cat "$muttdir"autoconf/offlineimap_profile | sed -e "$replacement" >> ~/.offlineimaprc
@@ -159,9 +162,6 @@ addAccount() {
# Add a numbered shortcut in the muttrc
echo "macro index,pager i$idnum '<sync-mailbox><enter-command>source "$muttdir"accounts/$title.muttrc<enter><change-folder>!<enter>'" >> "$muttdir"personal.muttrc
- # Adding directory structure for cache.
- mkdir -p "$muttdir"accounts/$title/cache/bodies
-
# Add to offlineimaprc sync list.
sed -i "s/^accounts =.*[a-zA-Z]$/&, $title/g;s/^accounts =$/accounts = $title/g" ~/.offlineimaprc