diff options
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r-- | apps/app_voicemail.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index aab22ae96..8cce2d3f6 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -6777,14 +6777,16 @@ static int vm_forwardoptions(struct ast_channel *chan, struct ast_vm_user *vmu, } /* Back up the original file, so we can retry the prepend and restore it after forward. */ +#ifndef IMAP_STORAGE if (already_recorded) { ast_filecopy(backup, msgfile, NULL); copy(backup_textfile, textfile); } else { ast_filecopy(msgfile, backup, NULL); - copy(textfile,backup_textfile); + copy(textfile, backup_textfile); } +#endif already_recorded = 1; if (record_gain) |