Index: apps/app_voicemail.c =================================================================== --- apps/app_voicemail.c (revision 140937) +++ apps/app_voicemail.c (working copy) @@ -8802,8 +8802,10 @@ ast_filerename(tempfile, recordfile, NULL); ast_stream_and_wait(chan, "vm-msgsaved", chan->language, ""); if (!outsidecaller) { +#ifndef IMAP_STORAGE STORE(recordfile, vmu->mailbox, vmu->context, -1, chan, vmu, fmt, *duration, vms); DISPOSE(recordfile, -1); +#endif } cmd = 't'; return res;