]> granicus.if.org Git - neomutt/commitdiff
Tell mutt about the MAILDIR environment variable DJB talks about in
authorThomas Roessler <roessler@does-not-exist.org>
Thu, 10 Aug 2000 12:13:27 +0000 (12:13 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Thu, 10 Aug 2000 12:13:27 +0000 (12:13 +0000)
maildir (5).

init.c

diff --git a/init.c b/init.c
index fefaaa61b8e3f9fac0acda86274eea9de2d432e7..8f45724b864b6ff5cda1d2d9a1a73932893f9cd8 100644 (file)
--- 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