Change "boundary" to be less likely to cause e-mail conflicts (bug #1602)
authorMark Spencer <markster@digium.com>
Tue, 11 May 2004 15:03:52 +0000 (15:03 +0000)
committerMark Spencer <markster@digium.com>
Tue, 11 May 2004 15:03:52 +0000 (15:03 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2946 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index fbff1ee..6842d55 100755 (executable)
@@ -862,7 +862,7 @@ static int sendmail(char *srcemail, struct ast_vm_user *vmu, int msgnum, char *m
                fprintf(p, "MIME-Version: 1.0\n");
                if (attach_user_voicemail) {
                        /* Something unique. */
-                       snprintf(bound, sizeof(bound), "Boundary=%d%s%d", msgnum, mailbox, getpid());
+                       snprintf(bound, sizeof(bound), "voicemail_%d%s%d", msgnum, mailbox, getpid());
 
                        fprintf(p, "Content-Type: multipart/mixed; boundary=\"%s\"\n\n\n", bound);