Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
new_msg
Package: Server_win_src.rar [view]
Upload User: wzkunzhan
Upload Date: 2022-04-23
Package Size: 2618k
Code Size: 2k
Category:
Game Server Simulator
Development Platform:
Visual C++
- #!/bin/sh
- #
- # new_msg script for use with OpenAM
- # Copyright (C) Equivalence Pty Ltd 1999
- #
- # Permission is given to freely copy, redistribute or change this
- # program, provided this notice is retained intact.
- #
- # The information and code herein is provided "as is"
- # without warranty of any kind, either expressed or implied.
- # In no event shall EQUIVALENCE be liable for any damages
- # whatsoever including direct, indirect, incidental,
- # consequential, loss of business profits or special damages,
- # even if EQUIVALENCE has been advised of the possibility of such damages.
- #
- extension="wav"
- contenttype="audio/x-wav"
- mimencode=/usr/bin/mimencode
- sendmail=/usr/lib/sendmail
- sox=/usr/bin/sox
- fn="$1"
- src="$2"
- remoteParty="$3"
- duration="$4"
- codec="$5"
- product="$6"
- #tempfn=${fn}.tmp
- tempfn=/tmp/voice.temp
- #email=equival@equival.com.au
- email="${USER}@`dnsdomainname`"
- sourceemail=h323voice
- seperator="========== $$fn =========="
- echo Date: `date` > $tempfn
- echo To: $email >> $tempfn
- echo From: ${sourceemail}@`hostname` >> $tempfn
- echo Subject: H323 voice message from ""$remoteParty"" >> $tempfn
- echo Mime-Version: 1.0 >> $tempfn
- echo Content-Type: multipart/mixed; boundary="$seperator" >> $tempfn
- echo "">> $tempfn
- echo --$seperator >> $tempfn
- echo Content-Type: text/plain >> $tempfn
- echo Content-Transfer-Encoding: 8bit >> $tempfn
- echo "">> $tempfn
- echo "Filename: $fn" >> $tempfn
- echo "Source: $src" >> $tempfn
- echo "RemoteParty: $remoteParty" >> $tempfn
- echo "Duration: $duration" >> $tempfn
- echo "Codecs: $codec" >> $tempfn
- echo "Product: $product" >> $tempfn
- echo "">> $tempfn
- echo --$seperator >> $tempfn
- echo Content-Type: $contenttype; name="$pagefn" >> $tempfn
- echo Content-Transfer-Encoding: base64 >> $tempfn
- echo Content-Disposition: attachment; filename="$pagefn" >> $tempfn
- echo "">> $tempfn
- $mimencode $fn >> $tempfn
- #rm -f $fn
- echo --$seperator >> $tempfn
- $sendmail < $tempfn $email
- rm -f $tempfn