diff options
author | Matteo Brancaleoni <mbrancaleoni@espia.it> | 2003-02-23 06:00:11 +0000 |
---|---|---|
committer | Matteo Brancaleoni <mbrancaleoni@espia.it> | 2003-02-23 06:00:11 +0000 |
commit | 17769619c2d3d5c96c906a383ec06df2efbb0e35 (patch) | |
tree | e05618b650b51c146c697c794e3e510343de7230 /contrib | |
parent | 877a281b742fc0d7cda64f34aa633d8b3972da47 (diff) |
Sun Feb 23 07:00:00 CET 2003
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@621 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/scripts/vmail.cgi | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/scripts/vmail.cgi b/contrib/scripts/vmail.cgi index 7071b34f4..4d5528714 100755 --- a/contrib/scripts/vmail.cgi +++ b/contrib/scripts/vmail.cgi @@ -341,11 +341,12 @@ sub message_audio() # Mailbox and folder are already verified if (open(AUDIO, "<$path")) { + $size = -s $path; $|=1; if ($forcedownload) { - print header(-type=>$formats{$format}->{'mime'}, -attachment => "msg${msgid}.$format"); + print header(-type=>$formats{$format}->{'mime'}, -Content_length => $size, -attachment => "msg${msgid}.$format"); } else { - print header(-type=>$formats{$format}->{'mime'}); + print header(-type=>$formats{$format}->{'mime'}, -Content_length => $size); } while(($amt = sysread(AUDIO, $data, 4096)) > 0) { |