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:
Mark Michelson
2007-11-28 17:30:47 +00:00
parent d0cd120d47
commit f1d612adb9

View File

@@ -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);