Reverse login on voicemail email sending. Last change made it send email only if...
authorJames Golovich <james@gnuinter.net>
Thu, 1 Jul 2004 17:34:42 +0000 (17:34 +0000)
committerJames Golovich <james@gnuinter.net>
Thu, 1 Jul 2004 17:34:42 +0000 (17:34 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3371 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 8a132b2..413b6f2 100755 (executable)
@@ -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);
        }