mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 08:13:22 +00:00
Bug # 1957. No more sending e-mails if the address isn't
present. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3365 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -834,6 +834,11 @@ static int sendmail(char *srcemail, struct ast_vm_user *vmu, int msgnum, char *m
|
|||||||
struct tm tm;
|
struct tm tm;
|
||||||
struct vm_zone *the_zone = NULL;
|
struct vm_zone *the_zone = NULL;
|
||||||
|
|
||||||
|
if (vmu && (strchr(vmu->email, '@') == NULL)) {
|
||||||
|
ast_log(LOG_WARNING, "Invalid e-mail address %s. E-mail will not be sent.\n", vmu->email);
|
||||||
|
return(0);
|
||||||
|
}
|
||||||
|
|
||||||
if (!strcmp(format, "wav49"))
|
if (!strcmp(format, "wav49"))
|
||||||
format = "WAV";
|
format = "WAV";
|
||||||
ast_log(LOG_DEBUG, "Attaching file '%s', format '%s', uservm is '%d', global is %d\n", attach, format, attach_user_voicemail, attach_voicemail);
|
ast_log(LOG_DEBUG, "Attaching file '%s', format '%s', uservm is '%d', global is %d\n", attach, format, attach_user_voicemail, attach_voicemail);
|
||||||
|
Reference in New Issue
Block a user