[asterisk-commits] mmichelson: trunk r89092 - /trunk/apps/app_voicemail.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Nov 7 17:18:22 CST 2007
Author: mmichelson
Date: Wed Nov 7 17:18:22 2007
New Revision: 89092
URL: http://svn.digium.com/view/asterisk?view=rev&rev=89092
Log:
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)
Modified:
trunk/apps/app_voicemail.c
Modified: trunk/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_voicemail.c?view=diff&rev=89092&r1=89091&r2=89092
==============================================================================
--- trunk/apps/app_voicemail.c (original)
+++ trunk/apps/app_voicemail.c Wed Nov 7 17:18:22 2007
@@ -4910,8 +4910,8 @@
#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);
More information about the asterisk-commits
mailing list