]> granicus.if.org Git - mutt/commitdiff
Don't try to create $maildir if it's an IMAP folder.
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 18 Aug 1999 06:53:24 +0000 (06:53 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 18 Aug 1999 06:53:24 +0000 (06:53 +0000)
main.c

diff --git a/main.c b/main.c
index 5aeb897532a788115fc855deded36ff23eca774c..18e042024974405a20ce6a59a16279297cf7cec7 100644 (file)
--- a/main.c
+++ b/main.c
@@ -512,7 +512,7 @@ int main (int argc, char **argv)
     mutt_error = mutt_curses_error;
   }
 
-  /* Create the ~/Mail directory if it doesn't exist. */
+  /* Create the Maildir directory if it doesn't exist. */
   if (!option (OPTNOCURSES) && Maildir)
   {
     struct stat sb;
@@ -521,6 +521,10 @@ int main (int argc, char **argv)
 
     strfcpy (fpath, Maildir, sizeof (fpath));
     mutt_expand_path (fpath, sizeof (fpath));
+#ifdef USE_IMAP
+    /* we're not connected yet - skip mail folder creation */
+    if (!mx_is_imap (fpath))
+#endif
     if (stat (fpath, &sb) == -1 && errno == ENOENT)
     {
       snprintf (msg, sizeof (msg), _("%s does not exist. Create it?"), Maildir);