Browse Source

header cache fix

tags/v3.1
Luke 6 years ago
parent
commit
43799fb7a9
2 changed files with 4 additions and 4 deletions
  1. +3
    -3
      autoconf/mutt_profile
  2. +1
    -1
      mutt_install.sh

+ 3
- 3
autoconf/mutt_profile View File

@@ -5,9 +5,9 @@ set from = "$fulladdr"
set smtp_url = "smtp://$fulladdr@$smtp:$sport/" set smtp_url = "smtp://$fulladdr@$smtp:$sport/"
set sendmail = "/usr/bin/msmtp -a $title" set sendmail = "/usr/bin/msmtp -a $title"
set folder = "~/.mail/$title" set folder = "~/.mail/$title"
set header_cache = ~/.config/mutt/$title/cache/headers
set message_cachedir = ~/.config/mutt/$title/cache/bodies
set certificate_file = ~/.config/mutt/$title/certificates
set header_cache = ~/.config/mutt/accounts/$title/cache/headers
set message_cachedir = ~/.config/mutt/accounts/$title/cache/bodies
set certificate_file = ~/.config/mutt/accounts/$title/certificates
source "~/.config/mutt/credentials/getmuttpass $title |" source "~/.config/mutt/credentials/getmuttpass $title |"


set spoolfile = "+$spoolfile" set spoolfile = "+$spoolfile"


+ 1
- 1
mutt_install.sh View File

@@ -67,7 +67,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


# Adding directory structure for cache. # Adding directory structure for cache.
mkdir -p "$muttdir"accounts/$title/cache/bodies "$muttdir"accounts/$title/cache/headers
mkdir -p "$muttdir"accounts/$title/cache/bodies


# 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 =$/accounts = $title/g" ~/.offlineimaprc


Loading…
Cancel
Save