diff options
author | Mark Spencer <markster@digium.com> | 2004-07-18 20:50:37 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-07-18 20:50:37 +0000 |
commit | 73f91fcc44e2c38e93a35c60d35745745b9afe28 (patch) | |
tree | a3d5b5550d2ce676ff0bc10b70b46754722b4723 /apps/app_voicemail.c | |
parent | 8a4967294f3a9d2ec34aa72a5aeaf1c90da620fe (diff) |
Grab the Message-ID too
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3473 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_voicemail.c')
-rwxr-xr-x | apps/app_voicemail.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 2cd996855..7f22806ad 100755 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -923,7 +923,7 @@ static int sendmail(char *srcemail, struct ast_vm_user *vmu, int msgnum, char *m fprintf(p, "Subject: New message %d in mailbox %s\n", msgnum + 1, mailbox); else fprintf(p, "Subject: [PBX]: New message %d in mailbox %s\n", msgnum + 1, mailbox); - fprintf(p, "Message-ID: <Asterisk-%d-%s-%d@%s>\n", msgnum, mailbox, getpid(), host); + fprintf(p, "Message-ID: <Asterisk-%d-%d-%s-%d@%s>\n", msgnum, (unsigned int)rand(), mailbox, getpid(), host); fprintf(p, "MIME-Version: 1.0\n"); if (attach_user_voicemail) { /* Something unique. */ |