Use the appropriate line ending for the X-Asterisk-VM-Message-Type header.
authorMark Michelson <mmichelson@digium.com>
Thu, 10 Jan 2008 20:05:43 +0000 (20:05 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 10 Jan 2008 20:05:43 +0000 (20:05 +0000)
(closes issue #11734, reported and patched by jaroth)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97846 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index f0b137c..b337e75 100644 (file)
@@ -2020,7 +2020,7 @@ static void make_email_file(FILE *p, char *srcemail, struct ast_vm_user *vmu, in
                fprintf(p, "X-Asterisk-VM-Duration: %d" ENDL, duration);
                if (!ast_strlen_zero(category)) 
                        fprintf(p, "X-Asterisk-VM-Category: %s" ENDL, category);
-               fprintf(p, "X-Asterisk-VM-Message-Type: %s\n", msgnum > -1 ? "Message" : greeting_attachment);
+               fprintf(p, "X-Asterisk-VM-Message-Type: %s" ENDL, msgnum > -1 ? "Message" : greeting_attachment);
                fprintf(p, "X-Asterisk-VM-Orig-date: %s" ENDL, date);
                fprintf(p, "X-Asterisk-VM-Orig-time: %ld" ENDL, (long)time(NULL));
        }