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