diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1999-08-18 06:53:24 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1999-08-18 06:53:24 +0000 |
commit | cdf07a691ac11c0eb5c69a3885a87d76fbc011cd (patch) | |
tree | 409e764238ee9ca522e1003f128627cb7d8fe206 /main.c | |
parent | 291581b2d11ad91ee04112881412a06586da3b6e (diff) |
Don't try to create $maildir if it's an IMAP folder.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); |