@ -2027,7 +2029,8 @@ static int sendmail(char *srcemail, struct ast_vm_user *vmu, int msgnum, char *c
}
if(!strcmp(format,"wav49"))
format="WAV";
ast_log(LOG_DEBUG,"Attaching file '%s', format '%s', uservm is '%d', global is %d\n",attach,format,attach_user_voicemail,ast_test_flag((&globalflags),VM_ATTACH));
if(option_debug>2)
ast_log(LOG_DEBUG,"Attaching file '%s', format '%s', uservm is '%d', global is %d\n",attach,format,attach_user_voicemail,ast_test_flag((&globalflags),VM_ATTACH));
/* Make a temporary file instead of piping directly to sendmail, in case the mail
commandhangs*/
if((p=vm_mkftemp(tmp))==NULL){
@ -4649,7 +4652,8 @@ static int init_mailstream(struct vm_state *vms, int box)
if(option_debug>2)
ast_log(LOG_DEBUG,"vm_state user is:%s\n",vms->imapuser);