diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 070b78d02acca0b1a83b786686aed1be7c9b0704..45de598360595048673a633a148b0a3312f6becf 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -1911,9 +1911,9 @@ static int imap_store_file(char *dir, char *mailboxuser, char *mailboxcontext, i } imap_delete_old_greeting(fn, vms); } - - make_email_file(p, myserveremail, vmu, msgnum, vmu->context, vmu->mailbox, S_OR(chan->cid.cid_num, NULL), S_OR(chan->cid.cid_name, NULL), fn, introfn, fmt, duration, 1, chan, NULL, 1, flag); - /* read mail file to memory */ + + make_email_file(p, myserveremail, vmu, msgnum, vmu->context, vmu->mailbox, "INBOX", S_OR(chan->cid.cid_num, NULL), S_OR(chan->cid.cid_name, NULL), fn, introfn, fmt, duration, 1, chan, NULL, 1, flag); + /* read mail file to memory */ len = ftell(p); rewind(p); if (!(buf = ast_malloc(len + 1))) {