home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / mail / elm / 2029 < prev    next >
Encoding:
Text File  |  1992-07-30  |  1.8 KB  |  42 lines

  1. Newsgroups: comp.mail.elm
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!nucsrl!ddsw1!dattier
  3. From: dattier@ddsw1.mcs.com (David W. Tamkin)
  4. Subject: Re: A couple of questions about filter
  5. Message-ID: <1992Jul30.171422.26868@ddsw1.mcs.com>
  6. Organization: Contributor Account at ddsw1, Chicago, Illinois  60657
  7. References: <1992Jul29.135745.3238@julian.uwo.ca>
  8. Date: Thu, 30 Jul 1992 17:14:22 GMT
  9. X-Disclaimer:  Material posted in this article is the sole responsibility of
  10.                 the poster and does not represent MCSNet or the system owners.
  11. Lines: 29
  12.  
  13. baycroft@zoi.lib.uwo.ca (Mike Baycroft) wrote in
  14. <1992Jul29.135745.3238@julian.uwo.ca>:
  15.  
  16. | 1) ... is there any way of specifying multiple actions for a single
  17. | set of conditions? For example:
  18. |     if <condition> then <action1> <action2> . . .
  19.  
  20. Not directly; you can execute an program or script that will perform both
  21. action1 and action2 with its stdin, but you cannot ask filter to do both
  22. itself.
  23.  
  24. | 2) is there any way of changing the subject line of the messages
  25. | generated by filter?
  26.  
  27. I'm not sure what you mean.  The only messages "generated" by filter are the
  28. notes in .elm/filterlog and, if one uses the -o option, those in the errors
  29. file.  The latter have no subject lines, and I don't understand why one would
  30. want the former to have subject lines different from those of the letters
  31. being logged.
  32.  
  33. If you meant that you want to change the subject line of a letter being
  34. processed by filter, then, as with #1, the easiest way is to have filter
  35. execute something that changes the subject line and then puts the letter
  36. wherever you want it, or, if you can be sure to avoid loops, feeds it back
  37. to filter to be tested in its new condition.
  38.  
  39. David W. Tamkin   Box 59297   Northtown Station, Illinois  60659-0297
  40. dattier@ddsw1.mcs.com    CompuServe: 73720,1570    MCI Mail: 426-1818
  41.