mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
Since greetings are not stored in IMAP, we should
not be DISPOSE'ing of them the same way we do with other messages. (closes issue #13414) Reported by: mthomasslo Patches: 13414v2.patch uploaded by putnopvut (license 60) Tested by: mthomasslo git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@141267 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2704,8 +2704,16 @@ static int remove_file(char *dir, int msgnum)
|
||||
if (msgnum > -1) {
|
||||
snprintf(msgnums, sizeof(msgnums), "%d", msgnum);
|
||||
make_file(fn, sizeof(fn), dir, msgnum);
|
||||
} else
|
||||
} else {
|
||||
#ifndef IMAP_STORAGE
|
||||
ast_copy_string(fn, dir, sizeof(fn));
|
||||
#else
|
||||
/*IMAP stores greetings locally so it should not
|
||||
* try to dispose of them
|
||||
*/
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
ast_filedelete(fn, NULL);
|
||||
snprintf(full_fn, sizeof(full_fn), "%s.txt", fn);
|
||||
unlink(full_fn);
|
||||
|
Reference in New Issue
Block a user