From: Jeff Peeler Date: Tue, 8 Feb 2011 19:18:50 +0000 (+0000) Subject: Backup file storing message duration is not used with IMAP_STORAGE, remove code. X-Git-Tag: 1.4.41-rc1~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bd2bfb5872bed957b4116956010de0665da1021;p=thirdparty%2Fasterisk.git Backup file storing message duration is not used with IMAP_STORAGE, remove code. The message duration is stored in the body of the email when using IMAP_STORAGE, so nothing needs to happen with the backup file. (closes issue #18718) Reported by: kerframil git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@306960 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 37e1c6bb55..89f108a643 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -5236,10 +5236,14 @@ static int vm_forwardoptions(struct ast_channel *chan, struct ast_vm_user *vmu, /* Back up the original file, so we can retry the prepend */ if (already_recorded) { ast_filecopy(backup, msgfile, NULL); +#ifndef IMAP_STORAGE copy(textfile, backup_textfile); +#endif } else { ast_filecopy(msgfile, backup, NULL); +#ifndef IMAP_STORAGE copy(textfile, backup_textfile); +#endif } already_recorded = 1;