diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-07 23:18:22 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-07 23:18:22 +0000 |
commit | 6d57cf41b7a0dd828748f99fc9cb18ba5e074a34 (patch) | |
tree | ae1a2c151a4526ca63700b10bdf40ec6c8632cf7 /apps | |
parent | fba187de25da4c295b964892f77c55ff47cbb2fc (diff) |
If imapfolder has been specified in voicemail.conf, we should not connect to INBOX...
ever. It may not exist.
(closes issue #11151, reported by selsky, patched by me)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89092 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_voicemail.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 4359ee7e6..0d98b18de 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -4910,8 +4910,8 @@ static int init_mailstream(struct vm_state *vms, int box) #else #include "linkage.c" #endif - /* Connect to INBOX first to get folders delimiter */ - imap_mailbox_name(tmp, sizeof(tmp), vms, 0, 0); + /* Connect to mailbox to get mailstream so we can get delimiter */ + 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); |