mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 06:48:25 +00:00
Reverse login on voicemail email sending. Last change made it send email only if there was no address specified
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3371 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -833,7 +833,7 @@ static int sendmail(char *srcemail, struct ast_vm_user *vmu, int msgnum, char *m
|
|||||||
time_t t;
|
time_t t;
|
||||||
struct tm tm;
|
struct tm tm;
|
||||||
struct vm_zone *the_zone = NULL;
|
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);
|
ast_log(LOG_WARNING, "E-mail address missing for mailbox [%s]. E-mail will not be sent.\n", vmu->mailbox);
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user