]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
I made this same adjustment in trunk to fix a bug, and it makes sense to do it in...
authorMark Michelson <mmichelson@digium.com>
Thu, 8 Nov 2007 16:47:23 +0000 (16:47 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 8 Nov 2007 16:47:23 +0000 (16:47 +0000)
well. If an imapfolder is specified in voicemail.conf, don't ever explicitly connect to
INBOX since it may not exist.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@89111 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 4a5f4ad064a7492268bd7a78bd3dfa8ad37f827e..e333fb228c88ce25b0edfb138b7190d2ad45a0b6 100644 (file)
@@ -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);