mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 03:02:04 +00:00
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
(cherry picked from commit 9423710a5e
)
This commit is contained in:
committed by
Asterisk Development Team
parent
ea0edbf456
commit
6da65e52d3
@@ -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())) {
|
||||
|
Reference in New Issue
Block a user