From 6b02211f03d2e9c3d9c49e27bac1c560c6839981 Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Mon, 29 Jan 2007 17:39:09 +0000 Subject: [PATCH] Merged revisions 52523 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r52523 | file | 2007-01-29 12:33:19 -0500 (Mon, 29 Jan 2007) | 2 lines Set quota information to 0 when creating a vm_state. (issue #8924 reported by neutrino88) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@52524 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_voicemail.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 22fdc2707f..ee041a050c 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -2545,9 +2545,11 @@ static int inboxcount(const char *mailbox, int *newmsgs, int *oldmsgs) vms_p->mailstream = NIL; /* save for access from interactive entry point */ if(option_debug > 2) ast_log (LOG_DEBUG,"Copied %s to %s\n",vmu->imapuser,vms_p->imapuser); - vms_p->updated = 1; - vms_p->interactive = 0; - /* set mailbox to INBOX! */ + vms_p->quota_limit = 0; + vms_p->quota_usage = 0; + vms_p->updated = 1; + vms_p->interactive = 0; + /* set mailbox to INBOX! */ ast_copy_string(vms_p->curbox, mbox(0), sizeof(vms_p->curbox)); init_vm_state(vms_p); vmstate_insert(vms_p);