diff options
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r-- | apps/app_voicemail.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index b1fd123e3..76c852a99 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -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); |