home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / Chip_2004-04_cd1.bin / tema / arachne / archn170.exe / MIME.CFG < prev    next >
Encoding:
Text File  |  2001-01-20  |  10.8 KB  |  227 lines

  1. ;--------------------------------------------------------------------------
  2. ;Arachne understands four basic file types: HTM, GIF, BMP, TXT, CSS and ASF.
  3. ;Only GIF and BMP can be inlined using <IMG> tag. If the file has different
  4. ;extension than one those and if in the following conversion table no
  5. ;corresponding action is defined, Arachne offers moving of downloaded file
  6. ;from CACHE directory (or of local file) to DOWNLOAD directory.
  7. ;ASF files are treated as script files (simply lists of URLs).
  8. ;
  9. ;For conversion to supported format is used macro "ext1>ext2|command",
  10. ;for calling external viewer macro "extension|command". See syntax rules
  11. ;(at the end of this file.)
  12. ;--------------------------------------------------------------------------
  13. [MIME]
  14. text/html                HTM
  15. text/plain               TXT
  16. text/css                 CSS
  17. image/gif                GIF
  18. audio/x-wav              WAV|$eplany.exe $1
  19. audio/basic              AU|$eplany.exe $1
  20. ;Disable (comment out) this, if you want use Arachne on PC XT or PC AT:
  21. ;DPMI memory available only on 386 or better CPU... apply package "16bit.apm"
  22. image/jpeg               JPG>BMP|$edjpeg32.exe $j $1 $2
  23. image/png PNG>BMP|$epng2bmp.exe -s -o $2 $1
  24. image/x-png PNG>BMP|$epng2bmp.exe -s -o $2 $1
  25. ;
  26. ;defaultly not distributed APMs - use "Find APM" button in Arachne....
  27. video/mpeg       MPG
  28. video/x-msvideo  AVI
  29. video/quicktime  MOV
  30. audio/mpeg       MP3
  31. audio/x-mpeg     MP3
  32. audio/mpeg       MP3
  33. audio/x-mpeg     MP3
  34. application/postscript   PS
  35. application/mac-binhex40 >HTM|[100]type binhex.htm>$2
  36. ;
  37. ;I will save this with correct extension:
  38. text/enriched            RTF
  39. text/richtext            RTF
  40. image/x-bitmap           BMP
  41. image/tiff               TIF
  42. image/x-xbitmap          XBM
  43. message/rfc822           RFC
  44. message/rfc822           CNM
  45. message/rfc822           SNT
  46. message/rfc822           MES
  47. message/rfc822           TBS
  48. message/partial          RFC
  49. message/news             NWS
  50. application/rtf          RTF
  51. application/wordperfect5.1 WPD
  52. application/pdf          PDF
  53. application/msword       DOC
  54. application/zip          ZIP
  55. application/octet-stream EXE
  56. application/octet-stream COM
  57. application/x-zipped     ZIP
  58. application/zip          ZIP
  59. ;
  60. ;Arachne-specific:
  61. application/x-arachne-package APM>HTM|$eapm.exe -u $u $1>$2
  62. ;application/x-netdos-exe EXE|@$eapm.exe -v $u $1
  63. ;application/x-netdos-com COM|@$eapm.exe -v $u $1
  64. ;--------------------------------------------------------------------------
  65. ;Pseudomime types - "Arachne extensions to MIME" :-)
  66. ;--------------------------------------------------------------------------
  67. [ARACHNE]
  68. gopher/0   TXT
  69. gopher/1   GOP>HTM|[100]$esystem\\dgi\\goph2htm.exe $1>$2
  70. gopher/5   ZIP
  71. gopher/6   UUE
  72. gopher/7   GOP>HTM|[100]$esystem\\dgi\\goph2htm.exe -s>$2
  73. gopher/g   GIF
  74. finger/out TXT
  75. news/list  TXT
  76. ftp/list   FTP>HTM|[110]$ewwwman.exe -f $1>$2
  77. ;--------------------------------------------------------------------------
  78. ;External internet protocols - any new protocol can be declared using this:
  79. ;--------------------------------------------------------------------------
  80. external/edit   |@$! $d
  81. external/telnet |@telnet.exe $p
  82. external/irc    |@$eapm.exe -t http://home.arachne.cz/apm/irc
  83. ;external/pop3   |@echo Insert your mail floppy disk into drive A:\npause\nmove a:\\*.cnm $m
  84. ;external/smtp   |@echo Insert your mail floppy disk into drive A:\npause\nmove $m*.tbs a:\\*.cnm
  85. ;external/ftp    |@ftp.exe
  86. ;external/gopher |@minuet.exe $u
  87. ;--------------------------------------------------------------------------
  88. ;Local files and DGI:
  89. ;--------------------------------------------------------------------------
  90. ;Try to uncomment following, and you will have MSIE 9.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 and DGI scripts:
  97. file/*.eml           >HTM|[130]$einsight.exe -i $1 -cache=$t>$2
  98. file/*.mes           >HTM|[130]$einsight.exe -i $1 -cache=$t>$2
  99. file/*.cnm           >HTM|[130]$einsight.exe -i $1 -cache=$t>$2
  100. file/*               >HTM|[120]$ewwwman.exe $f $1 -x=$r>$2
  101. file/cacheindex.dgi  >HTM|[110]$ewwwman.exe -c $c>$2
  102. file/history.dgi     >HTM|[110]$ewwwman.exe -h $h>$2
  103. file/wwwmanset.dgi   >HTM|[110]$ewwwman.exe -s $S>$2
  104. file/galery.dgi      >HTM|[110]$ewwwman.exe -g $S>$2
  105. file/playlist.dgi    >ASF|$ewwwman.exe -p $S>$2
  106. file/.cnm            >HTM|[115]$einsight.exe $1 -cache=$t>$2
  107. file/.eml            >HTM|[115]$einsight.exe $1 -cache=$t>$2
  108. file/.rfc            >HTM|[115]$einsight.exe $1 -cache=$t>$2
  109. file/.mes            >HTM|[115]$einsight.exe $1 -cache=$t>$2
  110. file/.tbs            >HTM|[115]$einsight.exe $1 -cache=$t>$2
  111. file/.snt            >HTM|[115]$einsight.exe $1 -cache=$t>$2
  112. file/inbox.dgi       >HTM|[130]$einsight.exe -i $M*.cnm -cache=$t>$2
  113. file/outbox.dgi      >HTM|[130]$einsight.exe -i $M*.tbs -cache=$t>$2
  114. file/readmail.dgi    >HTM|[115]$einsight.exe -folders $M*.* -cache=$t>$2
  115. file/sentmail.dgi    >HTM|[130]$einsight.exe -i $M*.snt -cache=$t>$2
  116. file/trashfolder.dgi >HTM|[130]$einsight.exe -i $Mtrash\\*.mes -cache=$t>$2
  117. file/reply.dgi       >HTM|[115]$einsight.exe -r -q=$q -cache=$t>$2
  118. file/resend.dgi      >HTM|[115]$einsight.exe -e -q=$q -cache=$t>$2
  119. file/forward.dgi     >HTM|[115]$einsight.exe -f -q=$q -cache=$t>$2
  120. file/movemail1.dgi   >HTM|[130]$einsight.exe -1 -q=$q -cache=$t>$2
  121. file/movemail2.dgi   >HTM|[130]$einsight.exe -2 -q=$q -cache=$t>$2
  122. ;
  123. ;Trash mail folder management:
  124. ;people who don't like TRASH folder can copy delmail1.dgi as delmail2.dgi ..
  125. file/delmail1.dgi     >HTM|[130]$einsight.exe -2 -q=$q -cache=$t>$2
  126. file/delmail2.dgi     >HTM|[130]$einsight.exe -d -q=$q -cache=$t>$2
  127. file/emptytrash.dgi >HTM|if exist $Mtrash\\*.mes del $Mtrash\\*.mes\n$einsight.exe -i $Mtrash\\*.mes -cache=$t>$2
  128. ;
  129. file/test.dgi        >TXT|[100]COPY $q $2>NUL
  130. file/echo.dgi        >TXT|[100]ECHO $s>$2
  131. file/mem.dgi         >HTM|mem|$esystem\\dgi\\fixmem>$2
  132. file/memc.dgi        >HTM|mem /C|$esystem\\dgi\\fixmem /C>$2
  133. file/wizard.dgi      >HTM|@$esystem\\dgi\\wizard.exe $2
  134. file/wizardm.dgi     >HTM|$esystem\\dgi\\wizard.exe -m $2
  135. file/pktchk.dgi      >HTM|@set PKT=y\n$esystem\\pktdrvrs\\pktchk.com 0x60\nif errorlevel 1 set PKT=n\ntype $esystem\\gui\\etherwz%%PKT%%.ah>$2
  136. file/reboot.dgi      |@echo Please stand by while restarting the system...\ndel lock\n$esystem\\dgi\\reboot.com
  137. file/grep.dgi        >TXT|FIND "$s" *.htm /S>$2
  138. file/pktstat.dgi     >TXT|[100]$esystem\\pktdrvrs\\pktstat.com>$2
  139. file/dosshell.dgi    |@call $esystem\\dgi\\dosshell.bat $e
  140. file/clearcache.dgi  |call $esystem\\dgi\\clr.bat $c $a $t
  141. file/clearhtml.dgi   |[100]if exist $a*.htm del $a*.htm\nif exist $aheaders\\*.htt del $aheaders\\*.htt
  142. file/printprn.dgi    |[100]type _4prt.txt>PRN
  143. file/printcom.dgi    |print /d:prn\n print _4prt.txt
  144. ;file/psprintprn.dgi  |[100]type _4prt.ps>PRN
  145. ;file/psprintcom.dgi  |print /d:prn _4prt.ps
  146. file/export.dgi      |[100]COPY _4prt.txt $s>NUL
  147. file/exportps.dgi    |[100]COPY _4prt.ps $s>NUL
  148. file/exportbmp.dgi   |[100]COPY _4prt.bmp $s>NUL
  149. file/.acf            |COPY $1 ARACHNE.CFG\nif exist lock del lock\narachne.bat
  150. file/.bhx            >HTM|[100]type $edoc\\binhex.htm>$2
  151. file/.fil            >TXT|[100]DIR $l>$2
  152. file/.apm            >HTM|$eapm.exe -u $u $1>$2
  153. file/apm.dgi         >HTM|[100]copy $eapm.htp+$esystem\\apm.db\\*.htm $2>NUL
  154. file/.ook |@COPY $1 $$roura3.bat>NUL\nCALL $$roura3.bat
  155. File/.eek |@COPY $1 $$roura3.bat>NUL\nCALL $$roura3.bat $i $n $g $x
  156. file/edithotlist.dgi  >HTM|$esystem\\dgi\\hotlsman.exe $s>$2
  157. file/makehotlist.dgi  >HTM|$esystem\\dgi\\hotlsman.exe -q $q>$2
  158. file/hotlistmgr.dgi   >HTM|$esystem\\dgi\\hotlsman.exe $b>$2
  159. ;
  160. ;installation:
  161. file/autoexecwiz.dgi   >HTM|[200]$esystem\\dgi\\cfgwiz.exe edit $s >$2
  162. file/saveautoexec.dgi  >HTM|[200]$esystem\\dgi\\cfgwiz.exe ok $q>$2
  163. file/changeconfig.dgi  >HTM|[200]$esystem\\dgi\\cfgwiz.exe change $s >$2
  164. file/cfgwiz.dgi        >HTM|[200]$esystem\\dgi\\cfgwiz.exe detect >$2
  165. file/setup_os.dgi      >HTM|@$esystem\\dgi\\cfgwiz.exe profile >$2
  166. file/changeprofile.dgi |COPY $s ARACHNE.CFG>NUL\nif exist lock del lock\narachne.bat file://cfgwiz.dgi
  167. ;
  168. ;aliases and standard file types
  169. file/.htt            HTM
  170. file/.htp            HTM
  171. file/.ah             HTM
  172. file/.gop            TXT
  173. file/.ftp            TXT
  174. file/.log            TXT
  175. file/.cfg            TXT
  176. file/.com            COM
  177. ;file/.c              TXT
  178. file/.bat            TXT
  179. file/file_id.diz     TXT
  180. file/.wav            |$eplany.exe $1
  181. file/.au             |$eplany.exe $1
  182. file/files.bbs       TXT
  183. ;disable on PC AT/XT (apply package "16bit.apm")
  184. file/.jpg            >BMP|$edjpeg32.exe $j $1 $2
  185. file/.jpe            >BMP|$edjpeg32.exe $j $1 $2
  186. file/.png >BMP|$epng2bmp.exe -s -o $2 $1
  187. ;not enabled:
  188. ;file/.zip            >TXT|[300]PKUNZIP -v $1>$2
  189. ;file/.arj            >TXT|[300]ARJ l $1>$2
  190. ;---------------------------------------------------------------------------
  191. ;Syntax of MIME.CFG (please don't beat me, I'll never do it again !! ;-)
  192. ;--------------------------------------------------------------------------
  193. ;* If command starts '@', it will be executed in text mode and with maximum
  194. ;  memory.
  195. ;* If command starts with [nn] string, it will be executed without
  196. ;  temporary leaving of Arachne if there is [nn] kB available for program.
  197. ;* In command arguments you can use following macros. Instead of $1, $2, etc.
  198. ;  like in Unix scripts you can use %1, %2 like in DOS batch files.
  199. ;  $1 ... full input filename
  200. ;  $2 ... full output filename
  201. ;  $a ... patch to cache ("Archive") (typicaly CACHE\)
  202. ;  $b ... full name of Bookmarks (typicaly HOTLIST.HTM)
  203. ;  $c ... full name of Cache index (typicaly CACHE.IDX)
  204. ;  $d ... Document name (ftp://ftp.provider.com/pub/ -> /pub/)
  205. ;  $e ... path to Executable files (CORE.EXE, insight.exe, etc.)
  206. ;  $f ... file browser arguments (icons or file list)
  207. ;  $g ... ip address of 1st Gateway (according to ARACHNE.CFG)
  208. ;  $h ... full name of History file (typicaly HISTORY.LST)
  209. ;  $i ... your Ip address
  210. ;  $j ... DJPEG arguments - ARACHNE.CFG variable DJPEGargs + color depth, etc.
  211. ;  $l ... Last visited document (filename)
  212. ;  $m ... path to Mail directory (typicaly MAIL\)
  213. ;  $n ... ip address of 1st Nameserver (according to ARACHNE.CFG)
  214. ;  $p ... host ("Pocitac") (telnet://cyberspace.org -> cyberspace.org)
  215. ;  $q ... filename of Query string (file created only when using this macro)
  216. ;  $r ... horizontal Resolution of the screen (value is 640, 800 or 1024)
  217. ;  $s ... cgi compatible query String (max. 80 characters)
  218. ;  $t ... path for Temporary files (either CACHE\ or %TEMP% - see Cache2TEMP)
  219. ;  $u ... Url of document
  220. ;  $w ... doWnload path (typicaly DOWNLOAD\)
  221. ;  $x ... netmask (according to ARACHNE.CFG)
  222. ;  \n ... end of line (note: this won't work for "|[nn]xx" style commands!)
  223. ;  %% ... % character
  224. ;  $$ ... $ character
  225. ;  \\ ... \ character
  226. ;--------------------------------------------------------------------------
  227.