--- apps/app_voicemail.c 2005-08-01 14:36:08.000000000 +0200 +++ apps/app_voicemail.c.new 2005-08-01 14:33:33.000000000 +0200 @@ -3536,6 +3536,9 @@ int x; int res = 0; + if (vms->curbox || vms->deleted || vms->heard) + return 0; + if (vms->lastmsg <= -1) goto done;