Fix error where improper IMAP greetings would be deleted.
(closes issue ASTERISK-20435) Reported by: fhackenberger Patches: asterisk-20435-imap-del-greeting.diff uploaded by Michael L. Young (License #5026) (with suggested modification made by me) ........ Merged revisions 373735 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 373737 from http://svn.asterisk.org/svn/asterisk/branches/10 ........ Merged revisions 373738 from http://svn.asterisk.org/svn/asterisk/branches/11 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@373740 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
318c7bea44
commit
7bfa978495
1 changed files with 5 additions and 0 deletions
|
@ -1965,6 +1965,11 @@ static void vm_imap_delete(char *file, int msgnum, struct ast_vm_user *vmu)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (msgnum < 0) {
|
||||||
|
imap_delete_old_greeting(file, vms);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/* find real message number based on msgnum */
|
/* find real message number based on msgnum */
|
||||||
/* this may be an index into vms->msgArray based on the msgnum. */
|
/* this may be an index into vms->msgArray based on the msgnum. */
|
||||||
messageNum = vms->msgArray[msgnum];
|
messageNum = vms->msgArray[msgnum];
|
||||||
|
|
Loading…
Reference in a new issue