home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / archiver.zip / ATTACH.TXT next >
Text File  |  1998-02-09  |  5KB  |  131 lines

  1. What it is
  2. ----------
  3. Some e-mail programs insert the full path name of a file into an e-mail
  4. when attaching a file to the e-mail message.  This is incorrect, and will
  5. cause PMMail to be unable to detach the attachment.
  6.  
  7. This program is designed to examine an e-mail message and remove the
  8. complete path from the attachment name, leaving just the file name.
  9.  
  10. The Attach program is supplied as both OS/2 and Windows executables.
  11.  
  12.      OS       Executable Name
  13.      --       ---------------
  14.      OS/2     oAttach.exe
  15.      Windows  wAttach.exe
  16.  
  17. __________________________________________________________________________
  18.  
  19. Installation
  20. ------------
  21. Copy the appropriate executable to your PMMail directory (where the
  22. PMMail.exe/PMMailW.exe file is)
  23.  
  24. __________________________________________________________________________
  25.  
  26. Usage
  27. -----
  28. Depending upon your needs there are two methods of usage, either via a
  29. "Message Receive Hook" which will get called for every message you
  30. receive, or a "Message Filter" which will call the program for those
  31. messages the filter determines needs to be scanned.
  32.  
  33. There are two sets of instructions, the first set for Windows-95/NT,
  34. and the second set for OS/2.  While the instructions are essentially
  35. the same, the terminology has changed between the two programs.
  36.  
  37. __________________________________________________________________________
  38.  
  39. Windows-95/NT Instructions
  40. --------------------------
  41.  
  42. Message Receive Hook
  43. --------------------
  44. This method will call the Attach program once for every message you
  45. receive.  If you have multiple accounts you will need to do these
  46. steps for each account:
  47.  
  48. 1. Open the Properties for your e-mail account.
  49. 2. Select the "Hooks" tab (last tab on the right, it may be hidden)
  50. 3. Find the entry labeled "Message receive hook".  Click on the
  51.    box to put a check mark in it.
  52. 4. In the "Program Location" field type the name of the executable you
  53.    are using (wAttach.exe)
  54. 5. Click on the OK box at the bottom.
  55.  
  56.  
  57. Message Filter
  58. --------------
  59. This method will create a message filter which will call the Attach
  60. program once for each message that the filter determines needs it.
  61. Generally this should be used only if you know exactly where the
  62. attachments come from (ie: Compuserve) and you don't want to call
  63. the Attach program for every message that arrives.
  64.  
  65. 1. Open the Properties for your e-mail account.
  66. 2. Select the "Filters" tab.
  67. 3. Click on the "New" button on the right.
  68. 4. In the "Description" field type a name for this, for
  69.    example, "Attach Filter".
  70. 5. In the "Search" field select the field that will contain the
  71.    data which will identify the message as needing to be scanned,
  72.    for example: "<Header>" if the text will be somewhere in the header.
  73. 6. In the "For" field put the text that will uniquely identify
  74.    a message as needing to be scanned, for example, "Compuserve".
  75. 7. Under the "Type" box click on "Incoming" to enable this filter
  76.    for incoming messages.
  77. 8. Under "Actions" select "User Hook (background)"
  78. 9. After you select the "User Hook" entry a new entry field will
  79.    appear to the right.  Enter the name of the executable you are
  80.    using (wAttach.exe).
  81. 10. Click the OK button at the bottom to save the new filter.
  82. 11. Click the OK button at the bottom to close the "Properties" window.
  83.  
  84. __________________________________________________________________________
  85.  
  86. OS/2 Instructions
  87. -----------------
  88.  
  89. Message Receive Exit
  90. --------------------
  91. This method will call the Attach program once for every message you
  92. receive.  If you have multiple accounts you will need to do these
  93. steps for each account:
  94.  
  95. 1. Open the Settings for your e-mail account.
  96. 2. Select the "REXX" tab (second tab from the right, it may be hidden)
  97. 3. Find the entry labeled "Message Receive Exit".  Click on the
  98.    box to put a check mark in it.
  99. 4. In the "Script to run" field type the name of the executable you
  100.    are using (oAttach.exe).
  101. 5. Click on the OK box at the bottom.
  102.  
  103.  
  104. Message Filter
  105. --------------
  106. This method will create a message filter which will call the Attach
  107. program once for each message that the filter determines needs it.
  108. Generally this should be used only if you know exactly where the
  109. attachments come from (ie: Compuserve) and you don't want to call
  110. the Attach program for every message that arrives.
  111.  
  112. 1. Open the Settings for your e-mail account.
  113. 2. Select the "Filters" tab.
  114. 3. Click on the "New" button on the right.
  115. 4. In the "Description" field type a name for this, for
  116.    example, "Attach Filter".
  117. 5. In the "Search" field select the field that will contain the
  118.    data which will identify the message as needing to be scanned,
  119.    for example: "<Header>" if the text will be somewhere in the header.
  120. 6. In the "For" field put the text that will uniquely identify
  121.    a message as needing to be scanned, for example, "Compuserve".
  122. 7. Under the "Type" box click on "Incoming" to enable this filter
  123.    for incoming messages.
  124. 8. Under "Actions" select "Rexx Exit (background)"
  125. 9. After you select the "Rexx Exit" entry a new entry field will
  126.    appear to the right.  Enter the name of the executable you are
  127.     using (oAttach.exe).
  128. 10. Click the OK button at the bottom to save the new filter.
  129. 11. Click the OK button at the bottom to close the "Settings" window.
  130.  
  131.