Index: apps/app_voicemail.c =================================================================== --- apps/app_voicemail.c (revision 195319) +++ apps/app_voicemail.c (working copy) @@ -1383,6 +1383,12 @@ void *buf; int tempcopy = 0; STRING str; + + /* Back out early if this is a greeting and we don't want to store greetings in IMAP + */ + if (msgnum < 0 && !imapgreetings) { + return 0; + } /* Attach only the first format */ fmt = ast_strdupa(fmt);