From 7eb83f1777d750ae575fdd6f470b1ed04ab76ce9 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Thu, 28 Dec 2017 16:18:29 +0000 Subject: [PATCH] env: use MAILDIR variable where possible --- mutt/muttrc | 2 +- offlineimap/config | 2 +- zshenv | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mutt/muttrc b/mutt/muttrc index 9c19c86..44cec6a 100644 --- a/mutt/muttrc +++ b/mutt/muttrc @@ -74,7 +74,7 @@ auto_view text/html # view html automaticall alternative_order text/plain text/enriched text/html # save html for last # IMAP: offlineimap -set folder = "~/mail" # mail folder +set folder = "$MAILDIR" # mail folder set spoolfile = "+gmail/inbox" # set inbox unset record # do not move sent msgs to a folder, gmail does that unset move # do not move read msgs, gmail does that diff --git a/offlineimap/config b/offlineimap/config index 4b63ed6..e79d65e 100644 --- a/offlineimap/config +++ b/offlineimap/config @@ -38,7 +38,7 @@ ignorelabels = \Draft, \Important [Repository gmail-local] type = GmailMaildir -localfolders = ~/mail/gmail +localfolders = $MAILDIR/gmail #sep = . #restoreatime = no nametrans = translocal diff --git a/zshenv b/zshenv index b161335..8482db3 100644 --- a/zshenv +++ b/zshenv @@ -29,6 +29,7 @@ export VISUAL=vim export BROWSER=qutebrowser # mail +export MAILDIR="$HOME/mail" export NOTMUCH_CONFIG="$XDG_CONFIG_HOME/notmuch" # less -- 2.48.1