From 772d2264a5cf43b64c08ff9394d589431da2b8d9 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Fri, 13 Nov 1998 18:31:06 +0000 Subject: [PATCH] Currently, Mutt won't use a default folder if just the IMAP server is specified. In fact, if the folder isn't specified, it will core-dump. The attached patch will use INBOX as the IMAP folder name if none is specified, eliminating the core-dump. (From: Aaron Schrab ) --- imap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imap.c b/imap.c index f1a17e540..105731605 100644 --- a/imap.c +++ b/imap.c @@ -969,7 +969,7 @@ int imap_open_mailbox (CONTEXT *ctx) ctx->data = safe_malloc (sizeof (IMAP_DATA)); memset (ctx->data, 0, sizeof (IMAP_DATA)); - CTX_DATA->mailbox = safe_strdup (pc); + CTX_DATA->mailbox = safe_strdup (*pc?pc:"INBOX"); conn = mutt_socket_select_connection (host, IMAP_PORT, M_NEW_SOCKET); CTX_DATA->conn = conn; -- 2.40.0