[asterisk-commits] mmichelson: branch mmichelson/1.4-test r69706 - /team/mmichelson/1.4-test/apps/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jun 18 11:37:56 CDT 2007


Author: mmichelson
Date: Mon Jun 18 11:37:56 2007
New Revision: 69706

URL: http://svn.digium.com/view/asterisk?view=rev&rev=69706
Log:
Changed imap_retrieve_file to hopefully get greetings from the appropriate folder


Modified:
    team/mmichelson/1.4-test/apps/app_voicemail.c

Modified: team/mmichelson/1.4-test/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/team/mmichelson/1.4-test/apps/app_voicemail.c?view=diff&rev=69706&r1=69705&r2=69706
==============================================================================
--- team/mmichelson/1.4-test/apps/app_voicemail.c (original)
+++ team/mmichelson/1.4-test/apps/app_voicemail.c Mon Jun 18 11:37:56 2007
@@ -4805,10 +4805,12 @@
 
 static int imap_retrieve_file (char *dir, int msgnum, char *mailbox, char *context)
 {
+	ast_log(LOG_DEBUG, "Mailbox is %s\n", mailbox);
 	struct ast_vm_user *vmu;
 	struct vm_state *vms_p;
 	char *file, *filename;
 	char *attachment;
+	char folder[256];
 	/*char *mb, *cur;*/
 	int ret = 0, i;
 	BODY *body;
@@ -4878,7 +4880,7 @@
 		return -1;
 	}
 
-	imap_mailbox_name(mailbox, vms_p, GREETING_FOLDER, 1);
+	imap_mailbox_name(folder, vms_p, GREETING_FOLDER, 1);
 
 	for (i = 0; i < vms_p->mailstream->nmsgs; i++)
 	{




More information about the asterisk-commits mailing list