[svn-commits] mmichelson: branch mmichelson/imap_consistency r131127 - /team/mmichelson/ima...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Jul 15 17:06:52 CDT 2008


Author: mmichelson
Date: Tue Jul 15 17:06:51 2008
New Revision: 131127

URL: http://svn.digium.com/view/asterisk?view=rev&rev=131127
Log:
Fix compilation under dev mode by removing unused variables

Add a createdirpath call to IMAP's open_mailbox call so that
messages are saved to the appropriate directory.


Modified:
    team/mmichelson/imap_consistency/apps/app_voicemail.c

Modified: team/mmichelson/imap_consistency/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/team/mmichelson/imap_consistency/apps/app_voicemail.c?view=diff&rev=131127&r1=131126&r2=131127
==============================================================================
--- team/mmichelson/imap_consistency/apps/app_voicemail.c (original)
+++ team/mmichelson/imap_consistency/apps/app_voicemail.c Tue Jul 15 17:06:51 2008
@@ -4164,9 +4164,6 @@
 static int forward_message(struct ast_channel *chan, char *context, struct vm_state *vms, struct ast_vm_user *sender, char *fmt, int flag, signed char record_gain)
 {
 #ifdef IMAP_STORAGE
-	BODY *body;
-	char *header_content;
-	char *temp;
 	char todir[256];
 	int todircount=0;
 	struct vm_state *dstvms;
@@ -4812,6 +4809,8 @@
 		ast_log (LOG_ERROR,"Could not initialize mailstream\n");
 		return -1;
 	}
+	
+	create_dirpath(vms->curdir, sizeof(vms->curdir), vmu->context, vms->username, vms->curbox);
 
 	/* Check Quota */
 	if  (box == 0)  {




More information about the svn-commits mailing list