home *** CD-ROM | disk | FTP | other *** search
/ BUG 12 / BUGCD1998_03.ISO / internet / arachne / arachne.exe / MIME.CFG < prev    next >
Text File  |  1998-01-15  |  8KB  |  181 lines

  1. ;--------------------------------------------------------------------------
  2. ;Arachne understands four basic file types: HTM, GIF, BMP and TXT. Only
  3. ;GIF and BMP can be inlined using <IMG> tag. If the file has different
  4. ;extension than HTM, GIF or TXT and in the following conversion table is no
  5. ;corresponding action defined, Arachne offers copying of downloaded file
  6. ;from CACHE directory (or of local file) to DOWNLOAD directory.
  7. ;
  8. ;For conversion to supported format is used macro "ext1>ext2|command",
  9. ;for calling external viewev macro "extension|command". See syntax rules
  10. ;(at the end of this file.)
  11. ;
  12. [MIME]
  13. text/html                   HTM
  14. text/plain                  TXT
  15. image/gif                   GIF
  16. image/jpeg                  JPG>BMP|DJPEG.EXE -bmp -colors 256 $1 $2
  17. audio/x-wav                 WAV|PLANY.EXE $1
  18. audio/basic                 AU|PLANY.EXE $1
  19. video/mpeg                  MPG|@MPEG.EXE $1
  20. ;
  21. ;(My pseudo jpeg mime type - usage depends on ARACHNE.CFG)
  22. fastimage/jpeg              JPG>BMP|DJPEG.EXE -bmp $1 $2
  23. ;(Replace image/jpeg config like with this to save disk space)
  24. ;image/jpeg                 JPG>GIF|DJPEG.EXE $1 $2
  25. ;(Comment this out, if you want use Arachne on PC XT or PC AT)
  26. image/png                   PNG>BMP|[200]JPNG2BMP.EXE $1 $2
  27. ;
  28. ;(I will save this with correct extension)
  29. text/enriched              RTF
  30. text/richtext              RTF
  31. image/x-bitmap             BMP
  32. image/tiff                 TIF
  33. image/x-xbitmap            XBM
  34. video/x-msvideo            AVI
  35. video/quicktime            MOV
  36. message/rfc822             CNM
  37. message/rfc822             SNT
  38. message/partial            CNM
  39. message/news               NWS
  40. application/postscript     PS
  41. application/rtf            RTF
  42. application/wordperfect5.1 WPD
  43. application/pdf            PDF
  44. application/msword         DOC
  45. application/zip            ZIP
  46. application/octet-stream   EXE
  47. application/x-zipped       ZIP
  48. application/zip            ZIP
  49. application/mac-binhex40   BHX
  50. ;
  51. ;Pseudomime types - "Arachne extensions to MIME" :-)
  52. ;
  53. [ARACHNE]
  54. gopher/0                   TXT
  55. gopher/1                   GOP>HTM|[20]GOPH2HTM.EXE $1>$2
  56. gopher/5                   ZIP
  57. gopher/6                   UUE
  58. gopher/7                   GOP>HTM|[20]GOPH2HTM.EXE -s>$2
  59. gopher/g                   GIF
  60. finger/out                 TXT
  61. news/list                  TXT
  62. ;
  63. ;(not yet implemented)
  64. ;irc/tick                  TMP>HTM|IRC2HTM.EXE -u$U $1 $2
  65. ;ftp/*list*                TMP>HTM|BBS2HTML.EXE -l$U $1 $2
  66. ;ftp/files.bbs             TMP>HTM|BBS2HTML.EXE -u$U $1 $2
  67. ;ftp/00index               TMP>HTM|BBS2HTML.EXE -u$U $1 $2
  68. ;ftp/.jpeg                 JPG>GIF|DJPEG.EXE $1 $2
  69. ;ftp/.jpg                  JPG>GIF|DJPEG.EXE $1 $2
  70. ;ftp/.mpeg                 MPG|@MPEG.EXE $1
  71. ;ftp/.mpg                  MPG|@MPEG.EXE $1
  72. ;ftp/.html                 HTM
  73. ;ftp/.tiff                 TIF
  74. ;ftp/.wav                  WAV|PLANY.EXE $1
  75. ;ftp/.au                   AU|PLANY.EXE $1
  76. ;
  77. ;External utilities for internet protocols:
  78. ;
  79. ;external/ftp              |@ftp.exe $p
  80. external/ftp              |@pause $p
  81. external/telnet           |@telnet.exe $p
  82. ;
  83. ;(not yet implemented)
  84. ;external/irc              |@irc.exe
  85. ;external/pop3             |@popdump.exe
  86. ;external/gopher           |@minuet.exe $u
  87. ;
  88. ;Local files and DGI:
  89. ;
  90. ;(try to uncomment following, and you will have MSIE 4.0 style desktop ;-)
  91. ;(note: extension .com must preceed .c, etc.)
  92. ;file/.exe                 |@$1
  93. ;file/.com                 |@$1
  94. ;file/.bat                 |@$1
  95. ;
  96. ;(other files)
  97. file/*                >HTM|[100]WWWMAN.EXE -d $1>$2
  98. fastfile/*            >HTM|[100]WWWMAN.EXE -l $1>$2
  99. file/cacheindex.dgi   >HTM|[100]WWWMAN.EXE -c $c>$2
  100. file/history.dgi      >HTM|[100]WWWMAN.EXE -h $h>$2
  101. file/wwwmanset.dgi    >HTM|[100]WWWMAN.EXE -s $S>$2
  102. file/galery.dgi       >HTM|[100]WWWMAN.EXE -g $S>$2
  103. file/.cnm             >HTM|[120]MAILMAN.EXE $1>$2
  104. file/.mes             >HTM|[120]MAILMAN.EXE $1>$2
  105. file/.tbs             >HTM|[120]MAILMAN.EXE $1>$2
  106. file/.snt             >HTM|[120]MAILMAN.EXE $1>$2
  107. file/inbox.dgi        >HTM|[160]MAILMAN.EXE -i $M*.cnm>$2
  108. file/outbox.dgi       >HTM|[160]MAILMAN.EXE -i $M*.tbs>$2
  109. file/readmail.dgi     >HTM|[160]MAILMAN.EXE -i $M*.mes>$2
  110. file/sentmail.dgi     >HTM|[160]MAILMAN.EXE -i $M*.snt>$2
  111. file/reply.dgi        >HTM|[125]MAILMAN.EXE -r -s=$S>$2
  112. file/resend.dgi       >HTM|[125]MAILMAN.EXE -e -s=$S>$2
  113. file/forward.dgi      >HTM|[125]MAILMAN.EXE -f -s=$S>$2
  114. file/delmail.dgi      >HTM|[125]MAILMAN.EXE -d -s=$S>$2
  115. file/markmail.dgi     >HTM|[125]MAILMAN.EXE -m -s=$S>$2
  116. file/test.dgi         >TXT|[100]COPY $q $2>NUL
  117. file/echo.dgi         >TXT|[100]ECHO $s>$2
  118. file/mem.dgi          >TXT|MEM>$2
  119. file/grep.dgi         >TXT|FIND "$s" *.htm /S>$2
  120. file/pktstat.dgi      >TXT|[100]PKTSTAT.COM>$2
  121. file/unpackklos.dgi   |@setup.bat -k
  122. file/configklos.dgi   |@PPPMENU.EXE
  123. file/dosshell.dgi     |@%%COMSPEC%%
  124. file/.acf             |COPY $1 ARACHNE.CFG|arachne.bat
  125. file/.bhx             >HTM|[100]type binhex.htm>$2
  126. file/.fil             >TXT|[100]DIR $l>$2
  127. file/.htt             HTM
  128. file/.htp             HTM
  129. file/.ah              HTM
  130. file/.gop             TXT
  131. ;
  132. file/killhot.dgi |[40]del hotlist.bak|ren $b hotlist.bat|COPY killhot.htm $b>NUL
  133. file/sorthot.dgi |COPY $b _.tmp|COPY killhot.htm $b|find "A HR" _.tmp|find ---- /V|sort>>$b
  134. file/proikn.dgi  |@if exist *.pro REN buttons?.ikn *.alt|REN buttons?.pro *.ikn
  135. file/altikn.dgi  |@if exist *.alt REN buttons?.ikn *.pro|REN buttons?.alt *.ikn
  136. ;
  137. file/.log             TXT
  138. file/.doc             TXT
  139. file/.cfg             TXT
  140. file/.c               TXT
  141. file/.bat             TXT
  142. file/file_id.diz      TXT
  143. file/.jpg             >BMP|DJPEG.EXE -bmp -colors 256 $1 $2
  144. file/.jpe             >BMP|DJPEG.EXE -bmp -colors 256 $1 $2
  145. file/.png             >BMP|[200]JPNG2BMP.EXE $1 $2
  146. file/.wav             |PLANY.EXE $1
  147. file/.au              |PLANY.EXE $1
  148. file/.mpg             |@MPEG.EXE $1
  149. file/.mpe             |@MPEG.EXE $1
  150. file/.zip             >TXT|[300]PKUNZIP -v $1>$2
  151. file/.arj             >TXT|[300]ARJ l $1>$2
  152. file/files.bbs        >HTM|BBS2HTML.EXE $1 $2
  153. file/00index          >HTM|BBS2HTML.EXE $1 $2
  154. ;
  155. ;
  156. ;---------------------------------------------------------------------------
  157. ;
  158. ;Syntax of MIME.CFG (please don't beat me, I'll never do it again !! ;-)
  159. ;
  160. ;* If command starts '@', it will be executed in text mode and with maximum
  161. ;  memory.
  162. ;* If command starts with [nn] string, it will be executed without
  163. ;  temporary leaving of Arachne if there is [nn] kB available for program.
  164. ;* In command arguments you can use following macros. Instead of $1, $2, etc.
  165. ;  like in Unix scripts you can use %1, %2 like in DOS batch files.
  166. ;  $1 ... full input filename
  167. ;  $2 ... full output filename
  168. ;  $u ... url of document
  169. ;  $p ... host (telnet://cyberspace.org -> cyberspace.org)
  170. ;  $d ... file (ftp://ftp.vse.cz/pub/msdos/Arachne/ -> /pub/msdos/Arachne/)
  171. ;  $q ... file with query string (created only when using this macro)
  172. ;  $s ... CGI compatible query string (max. 80 characters)
  173. ;  $c ... full name of cache index (typicaly TOHLEUZ.MAM)
  174. ;  $h ... full name of history file (typicaly TADYJSEM.BYL)
  175. ;  $b ... full name of bookmarks (typicaly HOTLIST.HTM)
  176. ;  $m ... path to mail directory (typicaly MAIL\)
  177. ;  $a ... patch to cache ("archive") (typicaly CACHE\)
  178. ;  $l ... last visited document (filename)
  179. ;  %% ... % character
  180. ;  $$ ... $ character
  181.