summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-08-18 06:53:24 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-08-18 06:53:24 +0000
commitcdf07a691ac11c0eb5c69a3885a87d76fbc011cd (patch)
tree409e764238ee9ca522e1003f128627cb7d8fe206 /main.c
parent291581b2d11ad91ee04112881412a06586da3b6e (diff)
Don't try to create $maildir if it's an IMAP folder.
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.c b/main.c
index 5aeb8975..18e04202 100644
--- 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);