commit f16c365b0b72c024c333e70a717abc90527a858f
parent 8c0121b9d8840215e1e55b061024e839d7f41f3e
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Sun, 29 Dec 2019 20:40:55 +0100
Fix handling of local mailboxes
Diffstat:
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/.config/mutt/muttrc b/.config/mutt/muttrc
@@ -1,7 +1,6 @@
set folder = "~/.mail"
source "~/.config/mutt/mailboxes"
set spoolfile = "+adamsgaard/INBOX"
-set mbox_type=Maildir
# Account-specific settings
folder-hook adamsgaard 'set \
diff --git a/.local/bin/mailboxes b/.local/bin/mailboxes
@@ -14,7 +14,10 @@ fi
echo "mailboxes \\"
if [ -f "/var/mail/$USER" ]; then
- printf ' "+%s" \\\n' "/var/mail/$USER"
+ printf ' "%s" \\\n' "/var/mail/$USER"
+fi
+if [ -f "$HOME/mbox" ]; then
+ printf ' "%s" \\\n' "$HOME/mbox"
fi
cd $mailroot