From 1c7cb960b1974b637b3ab75c79d8d8281df06b5c Mon Sep 17 00:00:00 2001 From: citats Date: Thu, 1 Jul 2004 17:34:42 +0000 Subject: Reverse login on voicemail email sending. Last change made it send email only if there was no address specified git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3371 f38db490-d61c-443f-a65b-d21fe96a405b --- apps/app_voicemail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 8a132b29b..413b6f210 100755 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -833,7 +833,7 @@ static int sendmail(char *srcemail, struct ast_vm_user *vmu, int msgnum, char *m time_t t; struct tm tm; struct vm_zone *the_zone = NULL; - if (vmu && !ast_strlen_zero(vmu->email)) { + if (vmu && ast_strlen_zero(vmu->email)) { ast_log(LOG_WARNING, "E-mail address missing for mailbox [%s]. E-mail will not be sent.\n", vmu->mailbox); return(0); } -- cgit v1.2.3