app_voicemail: Fix ill-formatted pager emails with custom subject.

Add missing end-of-headers newline to pager emails with custom
subjects, since this was missing from this code path.

Resolves: #902
pull/914/head
Naveen Albert 7 months ago committed by asterisk-org-access-app[bot]
parent 73836c7d97
commit 6f16d13709

@ -6033,12 +6033,15 @@ static int sendpage(char *srcemail, char *pager, int msgnum, char *context, char
}
} else {
if (ast_strlen_zero(flag)) {
fprintf(p, "Subject: New VM\n\n");
fprintf(p, "Subject: New VM" ENDL);
} else {
fprintf(p, "Subject: New %s VM\n\n", flag);
fprintf(p, "Subject: New %s VM" ENDL, flag);
}
}
/* End of headers */
fputs(ENDL, p);
if (pagerbody) {
struct ast_channel *ast;
if ((ast = ast_dummy_channel_alloc())) {

Loading…
Cancel
Save