summaryrefslogtreecommitdiffstats
path: root/init.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2000-08-10 12:13:27 +0000
committerThomas Roessler <roessler@does-not-exist.org>2000-08-10 12:13:27 +0000
commit71ad8d11771a43c5c68bd0cfc33697ebb17734b1 (patch)
tree91698fd111f7b0b2b8beef92e7d5e7ad22a6ef50 /init.c
parent42ded3ca6f256df3e70f877d9b2616567c0ea475 (diff)
Tell mutt about the MAILDIR environment variable DJB talks about in
maildir (5).
Diffstat (limited to 'init.c')
-rw-r--r--init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/init.c b/init.c
index fefaaa61..8f45724b 100644
--- a/init.c
+++ b/init.c
@@ -1767,6 +1767,8 @@ void mutt_init (int skip_sys_rc, LIST *commands)
if ((p = getenv ("MAIL")))
Spoolfile = safe_strdup (p);
+ else if ((p = getenv ("MAILDIR")))
+ Spoolfile = safe_strdup (p);
else
{
#ifdef HOMESPOOL