mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
Recording greetings when using IMAP storage was causing zero-length files to be stored.
Since greetings are not retrieved from IMAP anyway, it is pointless to attempt storing them there. (closes issue #11359, reported by spditner, patched by me) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@89999 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2310,6 +2310,10 @@ static int imap_store_file(char *dir, char *mailboxuser, char *mailboxcontext, i
|
||||
void *buf;
|
||||
int tempcopy = 0;
|
||||
STRING str;
|
||||
|
||||
/*Greetings are not retrieved from IMAP, so there is no reason to attempt storing them there either*/
|
||||
if(msgnum < 0)
|
||||
return 0;
|
||||
|
||||
/* Attach only the first format */
|
||||
fmt = ast_strdupa(fmt);
|
||||
|
Reference in New Issue
Block a user