diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 4a5f4ad064..e333fb228c 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -4677,7 +4677,7 @@ static int init_mailstream(struct vm_state *vms, int box) char *cp; #include "linkage.c" /* Connect to INBOX first to get folders delimiter */ - imap_mailbox_name(tmp, sizeof(tmp), vms, 0, 0); + imap_mailbox_name(tmp, sizeof(tmp), vms, 0, 1); stream = mail_open (stream, tmp, debug ? OP_DEBUG : NIL); if (stream == NIL) { ast_log (LOG_ERROR, "Can't connect to imap server %s\n", tmp);