home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / cpymsg.zip / CPYMSG.USE < prev   
Internet Message Format  |  1997-10-06  |  3KB

  1. From: "Julian Thomas" <jt@epix.net>
  2. Date: Wed, 09 Jul 97 19:35:36 -0500
  3. Subject: Re: CPYMSG question
  4.  
  5. In reply to a query:
  6.  
  7. ::last night I received a copy of your CPYMSG.CMD. However, I have some
  8. ::doubts about how to implement this function. Could you please give me
  9. ::some details? (I'm no REXX nor filter guru!!!)
  10.  
  11. ::I would like to move older messages from f.ex. my MR2ICE folder, and
  12. ::append these to an external file, - and strip part of the headers. The
  13. ::same will be true for some of my other folders, as well.
  14.  
  15. ::All this will be done manually. I *don't* want it to take place
  16. ::automatically on incoming messages. 
  17.  
  18. ::As far as I can see, your program will do this trick. The question is,
  19. ::how do I setup the filter(s), and how do I initiate the process?
  20.  
  21. What I would suggest is the following:
  22.  
  23. 1.  Edit msgutil.cmd (in yr mr2ice directory) to define one of the unused
  24. keys
  25.     so that the action changes from:
  26.  
  27.   when FKey = 7 then
  28.   do
  29.      nop
  30.   end
  31.  
  32. to:
  33.  
  34.   when FKey = 7 then
  35.   do
  36.      call "cpymsg.cmd" "archiv.fil"
  37.   end
  38.  
  39. be sure that cpymsg.cmd is in your mr2ice directory, and that the
  40. archiv.fil will be ok if it is built there.
  41.  
  42. 2.  Now select a msg that you want to archive, open it, and press Ctrl-F7.
  43.  
  44. 3.  Verify that it has been copied (with a somewhat stripped header) to
  45. archiv.fil
  46.  
  47. Once this works to your satisfaction, you can repeat the process for all
  48. msgs you want to archive, and delete them after they have been copied.
  49.  
  50. Some versions of mr2i have a problem with multiple invocations of msgutil
  51. in a session; Nick is aware of this and hopefully is coming up with a fix
  52. "real soon now".
  53.  
  54. No filtering is involved.  Hope this helps.
  55.  
  56.  
  57. Mon Oct  6 17:40:38 edt 1997
  58.  
  59. Another good use of this program is to select (in one or more folder files)
  60. some messages, and then apply a demand filter to invoke the program.
  61. Here's the filter logic:
  62.  
  63. ---------- Filter 2  FIF-level 1.35nf1 ----------
  64. "Enabled"                                f1.1 1 +
  65. "Filter description"                     f1.2 * cpymsg to H
  66. "Filter alias"                           f2 * cpymsg
  67. "Search modes::  Body Header "           f3 # 24
  68. "Search text"                            f4 * 
  69. "Rexx cmd to call on match"              f10 * C:\MR2ICE\cpymsg.cmd h:msgfil
  70. "Filter type:: OnDemand "                f13.1 1 D
  71. "Search type:: Simple "                  f13.2 1 S
  72. "Match type:: Always "                   f13.3 1 A
  73. "Link to Rexx"                           f13.12 1 Y
  74. "Disposition:: No delete "               f13.13 1 N
  75.  
  76. You will note that this appends the selected messages to the target file:
  77.  
  78. H:MSGFIL
  79.  
  80. This is convenient for printing or saving them somewhere else.
  81.