summaryrefslogtreecommitdiff
path: root/bin/mw
diff options
context:
space:
mode:
authorJonassenher <jonflod@outlook.com>2020-08-30 19:02:15 +0200
committerGitHub <noreply@github.com>2020-08-30 19:02:15 +0200
commitd60d2398869796ee1fd7e6c424afe11654e2e702 (patch)
tree5c66bc34ab107b4232b1ce2399411d5e7394c441 /bin/mw
parent06f416f5eb73c4d01df25046d17a1cfdbfb116ae (diff)
Fixed the case for no environmental variables
Diffstat (limited to 'bin/mw')
-rwxr-xr-xbin/mw6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/mw b/bin/mw
index fffc965..5e5a610 100755
--- a/bin/mw
+++ b/bin/mw
@@ -38,7 +38,7 @@ msmtp_header="defaults
auth on
tls on
tls_trust_file $sslcert
-logfile $XDG_CONFIG_HOME/msmtp/msmtp.log
+logfile ${XDG_CONFIG_HOME/:-$HOME/.config}/msmtp/msmtp.log
"
msmtp_profile="account $title
host $smtp
@@ -59,8 +59,8 @@ CertificateFile $sslcert
MaildirStore $title-local
Subfolders Verbatim
-Path $XDG_DATA_HOME/mail/$title/
-Inbox $XDG_DATA_HOME/mail/$title/INBOX
+Path ${XDG_DATA_HOME:-$HOME/.local/share}/mail/$title/
+Inbox ${XDG_DATA_HOME:-$HOME/.local/share}/mail/$title/INBOX
Flatten .
Channel $title