diff options
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r-- | apps/app_voicemail.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 84fd181e4..4ee9e4354 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -1965,6 +1965,11 @@ static void vm_imap_delete(char *file, int msgnum, struct ast_vm_user *vmu) return; } + if (msgnum < 0) { + imap_delete_old_greeting(file, vms); + return; + } + /* find real message number based on msgnum */ /* this may be an index into vms->msgArray based on the msgnum. */ messageNum = vms->msgArray[msgnum]; |