home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / lan / pmail301.zip / RESOURCE.ZIP / PM-MIME.R < prev    next >
Text File  |  1993-08-26  |  3KB  |  62 lines

  1. ##
  2. ##  PM-Mime.r
  3. ##  Pegasus Mail MIME localisation resource.
  4. ##  Copyright (c) 1993, David Harris, All Rights Reserved.
  5. ##
  6. ##  Use this file to define site-specific character sets and viewers
  7. ##  for MIME message types which PMail does not support directly.
  8. ##
  9. ##  The first resource in the file has a repeating data type. Each
  10. ##  instance of the data type identifies a particular MIME sub-type
  11. ##  and the DOS command which should be run to display it.
  12. ##
  13. ##  To define localizations for your site, make any changes necessary
  14. ##  to this file, then compile it using the Pegasus Mail Resource
  15. ##  Compiler, ResCom, using the command "rescom pm-mime.r". The result
  16. ##  will be a file called PM-MIME.RSC - you can either copy this file
  17. ##  into the same directory as PMAIL.EXE if you want it to be available
  18. ##  to all users on your network, or into your home mailbox if you want
  19. ##  it to apply only to you.
  20. ##
  21.  
  22. typedef mime_handlers 27   ####  DON'T CHANGE OR REMOVE THIS DEFINITION!!!
  23.    {
  24.    integer     #  The number of viewer commands you have defined in this file
  25.    repeat
  26.    integer     #  Non-zero if PMail is to run this without prompting the user
  27.    string 20   #  The Primary message type, string, max 20 characters
  28.    string 20   #  The Secondary message type, string, max 20 characters
  29.    string 100  #  The command to run for this message type, max 100 characters
  30.    };
  31.  
  32. ##  The following definition is intended as a sample for you to use; it
  33. ##  declares only four viewers even though there are several lines in it.
  34. ##  The message types can be declared in any order in the file - PMail
  35. ##  scans the list sequentially. Note that you have to double any '\'
  36. ##  characters you use in filenames because the resource compiler views
  37. ##  a single '\' as an escape character.
  38. ##
  39. ##  The command to run for a viewer can include most of the command
  40. ##  substitutions defined in the User-defined gateway guide (UDG.TXT)
  41. ##  contained in this release of PMail in the file UDG.ZIP. The command
  42. ##  substitution you will use most often is "~c", which is replaced by
  43. ##  the name of the temporary file PMail creates containing the data
  44. ##  from the message.
  45.  
  46.  
  47. mime_handlers resource_0
  48.    {
  49.    4,  ## Note that this means only the first four entries are valid viewers
  50.  
  51.    0, "APPLICATION", "POSTSCRIPT",   "<command to run goes here>",
  52.    0, "APPLICATION", "OCTET-STREAM", "bview ~c",
  53.    1, "AUDIO",       "BASIC",        "i:\\scratch\\4\\auplay.bat ~c",
  54.    1, "IMAGE",       "GIF",          "j:\\gif\\tview.bat ~c",
  55.    0, "APPLICATION", "ODA",          " ",
  56.    0, "IMAGE",       "JPEG",         " ",
  57.    0, "VIDEO",       "MPEG",         " ",
  58.  
  59.    #  You may add other MIME types to this list as they are defined.
  60.    };
  61.  
  62.