home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BUG 12
/
BUGCD1998_03.ISO
/
internet
/
arachne
/
arachne.exe
/
MIME.CFG
< prev
next >
Wrap
Text File
|
1998-01-15
|
8KB
|
181 lines
;--------------------------------------------------------------------------
;Arachne understands four basic file types: HTM, GIF, BMP and TXT. Only
;GIF and BMP can be inlined using <IMG> tag. If the file has different
;extension than HTM, GIF or TXT and in the following conversion table is no
;corresponding action defined, Arachne offers copying of downloaded file
;from CACHE directory (or of local file) to DOWNLOAD directory.
;
;For conversion to supported format is used macro "ext1>ext2|command",
;for calling external viewev macro "extension|command". See syntax rules
;(at the end of this file.)
;
[MIME]
text/html HTM
text/plain TXT
image/gif GIF
image/jpeg JPG>BMP|DJPEG.EXE -bmp -colors 256 $1 $2
audio/x-wav WAV|PLANY.EXE $1
audio/basic AU|PLANY.EXE $1
video/mpeg MPG|@MPEG.EXE $1
;
;(My pseudo jpeg mime type - usage depends on ARACHNE.CFG)
fastimage/jpeg JPG>BMP|DJPEG.EXE -bmp $1 $2
;(Replace image/jpeg config like with this to save disk space)
;image/jpeg JPG>GIF|DJPEG.EXE $1 $2
;(Comment this out, if you want use Arachne on PC XT or PC AT)
image/png PNG>BMP|[200]JPNG2BMP.EXE $1 $2
;
;(I will save this with correct extension)
text/enriched RTF
text/richtext RTF
image/x-bitmap BMP
image/tiff TIF
image/x-xbitmap XBM
video/x-msvideo AVI
video/quicktime MOV
message/rfc822 CNM
message/rfc822 SNT
message/partial CNM
message/news NWS
application/postscript PS
application/rtf RTF
application/wordperfect5.1 WPD
application/pdf PDF
application/msword DOC
application/zip ZIP
application/octet-stream EXE
application/x-zipped ZIP
application/zip ZIP
application/mac-binhex40 BHX
;
;Pseudomime types - "Arachne extensions to MIME" :-)
;
[ARACHNE]
gopher/0 TXT
gopher/1 GOP>HTM|[20]GOPH2HTM.EXE $1>$2
gopher/5 ZIP
gopher/6 UUE
gopher/7 GOP>HTM|[20]GOPH2HTM.EXE -s>$2
gopher/g GIF
finger/out TXT
news/list TXT
;
;(not yet implemented)
;irc/tick TMP>HTM|IRC2HTM.EXE -u$U $1 $2
;ftp/*list* TMP>HTM|BBS2HTML.EXE -l$U $1 $2
;ftp/files.bbs TMP>HTM|BBS2HTML.EXE -u$U $1 $2
;ftp/00index TMP>HTM|BBS2HTML.EXE -u$U $1 $2
;ftp/.jpeg JPG>GIF|DJPEG.EXE $1 $2
;ftp/.jpg JPG>GIF|DJPEG.EXE $1 $2
;ftp/.mpeg MPG|@MPEG.EXE $1
;ftp/.mpg MPG|@MPEG.EXE $1
;ftp/.html HTM
;ftp/.tiff TIF
;ftp/.wav WAV|PLANY.EXE $1
;ftp/.au AU|PLANY.EXE $1
;
;External utilities for internet protocols:
;
;external/ftp |@ftp.exe $p
external/ftp |@pause $p
external/telnet |@telnet.exe $p
;
;(not yet implemented)
;external/irc |@irc.exe
;external/pop3 |@popdump.exe
;external/gopher |@minuet.exe $u
;
;Local files and DGI:
;
;(try to uncomment following, and you will have MSIE 4.0 style desktop ;-)
;(note: extension .com must preceed .c, etc.)
;file/.exe |@$1
;file/.com |@$1
;file/.bat |@$1
;
;(other files)
file/* >HTM|[100]WWWMAN.EXE -d $1>$2
fastfile/* >HTM|[100]WWWMAN.EXE -l $1>$2
file/cacheindex.dgi >HTM|[100]WWWMAN.EXE -c $c>$2
file/history.dgi >HTM|[100]WWWMAN.EXE -h $h>$2
file/wwwmanset.dgi >HTM|[100]WWWMAN.EXE -s $S>$2
file/galery.dgi >HTM|[100]WWWMAN.EXE -g $S>$2
file/.cnm >HTM|[120]MAILMAN.EXE $1>$2
file/.mes >HTM|[120]MAILMAN.EXE $1>$2
file/.tbs >HTM|[120]MAILMAN.EXE $1>$2
file/.snt >HTM|[120]MAILMAN.EXE $1>$2
file/inbox.dgi >HTM|[160]MAILMAN.EXE -i $M*.cnm>$2
file/outbox.dgi >HTM|[160]MAILMAN.EXE -i $M*.tbs>$2
file/readmail.dgi >HTM|[160]MAILMAN.EXE -i $M*.mes>$2
file/sentmail.dgi >HTM|[160]MAILMAN.EXE -i $M*.snt>$2
file/reply.dgi >HTM|[125]MAILMAN.EXE -r -s=$S>$2
file/resend.dgi >HTM|[125]MAILMAN.EXE -e -s=$S>$2
file/forward.dgi >HTM|[125]MAILMAN.EXE -f -s=$S>$2
file/delmail.dgi >HTM|[125]MAILMAN.EXE -d -s=$S>$2
file/markmail.dgi >HTM|[125]MAILMAN.EXE -m -s=$S>$2
file/test.dgi >TXT|[100]COPY $q $2>NUL
file/echo.dgi >TXT|[100]ECHO $s>$2
file/mem.dgi >TXT|MEM>$2
file/grep.dgi >TXT|FIND "$s" *.htm /S>$2
file/pktstat.dgi >TXT|[100]PKTSTAT.COM>$2
file/unpackklos.dgi |@setup.bat -k
file/configklos.dgi |@PPPMENU.EXE
file/dosshell.dgi |@%%COMSPEC%%
file/.acf |COPY $1 ARACHNE.CFG|arachne.bat
file/.bhx >HTM|[100]type binhex.htm>$2
file/.fil >TXT|[100]DIR $l>$2
file/.htt HTM
file/.htp HTM
file/.ah HTM
file/.gop TXT
;
file/killhot.dgi |[40]del hotlist.bak|ren $b hotlist.bat|COPY killhot.htm $b>NUL
file/sorthot.dgi |COPY $b _.tmp|COPY killhot.htm $b|find "A HR" _.tmp|find ---- /V|sort>>$b
file/proikn.dgi |@if exist *.pro REN buttons?.ikn *.alt|REN buttons?.pro *.ikn
file/altikn.dgi |@if exist *.alt REN buttons?.ikn *.pro|REN buttons?.alt *.ikn
;
file/.log TXT
file/.doc TXT
file/.cfg TXT
file/.c TXT
file/.bat TXT
file/file_id.diz TXT
file/.jpg >BMP|DJPEG.EXE -bmp -colors 256 $1 $2
file/.jpe >BMP|DJPEG.EXE -bmp -colors 256 $1 $2
file/.png >BMP|[200]JPNG2BMP.EXE $1 $2
file/.wav |PLANY.EXE $1
file/.au |PLANY.EXE $1
file/.mpg |@MPEG.EXE $1
file/.mpe |@MPEG.EXE $1
file/.zip >TXT|[300]PKUNZIP -v $1>$2
file/.arj >TXT|[300]ARJ l $1>$2
file/files.bbs >HTM|BBS2HTML.EXE $1 $2
file/00index >HTM|BBS2HTML.EXE $1 $2
;
;
;---------------------------------------------------------------------------
;
;Syntax of MIME.CFG (please don't beat me, I'll never do it again !! ;-)
;
;* If command starts '@', it will be executed in text mode and with maximum
; memory.
;* If command starts with [nn] string, it will be executed without
; temporary leaving of Arachne if there is [nn] kB available for program.
;* In command arguments you can use following macros. Instead of $1, $2, etc.
; like in Unix scripts you can use %1, %2 like in DOS batch files.
; $1 ... full input filename
; $2 ... full output filename
; $u ... url of document
; $p ... host (telnet://cyberspace.org -> cyberspace.org)
; $d ... file (ftp://ftp.vse.cz/pub/msdos/Arachne/ -> /pub/msdos/Arachne/)
; $q ... file with query string (created only when using this macro)
; $s ... CGI compatible query string (max. 80 characters)
; $c ... full name of cache index (typicaly TOHLEUZ.MAM)
; $h ... full name of history file (typicaly TADYJSEM.BYL)
; $b ... full name of bookmarks (typicaly HOTLIST.HTM)
; $m ... path to mail directory (typicaly MAIL\)
; $a ... patch to cache ("archive") (typicaly CACHE\)
; $l ... last visited document (filename)
; %% ... % character
; $$ ... $ character