home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / mail / elm / 1980 < prev    next >
Encoding:
Internet Message Format  |  1992-07-23  |  1.6 KB

  1. Path: sparky!uunet!ki.com!dwatts
  2. From: dwatts@ki.com (Dan Watts)
  3. Newsgroups: comp.mail.elm
  4. Subject: Enhancement request for ELM filter command
  5. Keywords: filter
  6. Message-ID: <1214@ki.com>
  7. Date: 23 Jul 92 23:58:39 GMT
  8. Organization: ki Research, Inc. Derry NH
  9. Lines: 25
  10.  
  11.  
  12. Recently I had the need to make an elm filter filer and ran into some
  13. problems getting it to do what I wanted.  A user of mine receives email
  14. from a mailing list.  The received email has a "From xxx" line that has
  15. the mailing list relay name it it.  The "From: xxx" line is the actual
  16. mail originator.  What I wanted to do was have all mail from the mailing
  17. list saved into a file.  Unfortuntely, I couldn't do this since we have
  18. elm configured to use the "From:" and "Reply-to:" lines.  I ended up
  19. building a special version of filter [filter_from] that uses the "From "
  20. header line instead of the "From: " header line.
  21.  
  22. An enhancement to filter I would like to  see would be to filter on both
  23. forms of from lines as well as reply-to.  Something like:
  24.  
  25.   if ( from: contains "userx" ) then save somefile1
  26.   if ( from contains "usery" ) then save somefile2
  27.   if ( reply-to contains "userz" ) then save somefile3
  28.   if ( fromany contains "userq" ) then save somefile4
  29.  
  30. fromany would check "From: ", "From ", and "Reply-to: " headers.
  31. -- 
  32. ##################### Naturism, Grin and Bare It ######################
  33. # CompuServe: >INTERNET:uunet.UU.NET!ki.com!dwatts  Dan Watts         #
  34. # UUCP      : ...!uunet!ki.com!dwatts               ki Research, Inc. #
  35. ############ Vote for the Bill of Rights: Vote Libertarian ############
  36.