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

  1. Newsgroups: comp.mail.elm
  2. Path: sparky!uunet!centerline!noc.near.net!news.cs.brandeis.edu!chaos.cs.brandeis.edu!cos
  3. From: cos@chaos.cs.brandeis.edu (Ofer Inbar)
  4. Subject: Re: Enhancement request for ELM filter command
  5. Message-ID: <cos.712183928@chaos.cs.brandeis.edu>
  6. Keywords: filter
  7. Sender: news@news.cs.brandeis.edu (USENET News System)
  8. Organization: Brandeis University
  9. References: <1214@ki.com> <14nsc6INNbh7@betty.cs.widener.edu> <1215@ki.com>
  10. Date: Sun, 26 Jul 1992 20:52:08 GMT
  11. Lines: 57
  12.  
  13. dwatts@ki.com (Dan Watts) writes:
  14. >In article <14nsc6INNbh7@betty.cs.widener.edu> brendan@cs.widener.edu (Brendan Kehoe) writes:
  15. >|dwatts@ki.com wrote:
  16. >|>An enhancement to filter I would like to  see would be to filter on both
  17. >|>forms of from lines as well as reply-to.  Something like:
  18. >|>
  19. >|>  if ( from: contains "userx" ) then save somefile1
  20. >|>  if ( from contains "usery" ) then save somefile2
  21. >|>  if ( reply-to contains "userz" ) then save somefile3
  22. >|>  if ( fromany contains "userq" ) then save somefile4
  23. >|
  24. >|Relying on From_ is dangerous, I think.  Any number of mailer aberrations
  25. >|could mangle `From ' into a nasty twisted figment of its former self.
  26.  
  27. The same is true for other headers, though.  What I'd like is for the
  28. three filter header names to be meta-names that refer to a variety of
  29. headers, like this:
  30.  
  31.   from     From_, From:, Resent-From:, Sender:, Originator:, Reply-To:
  32.            (and maybe also Return-Receipt-To: and Errors-To:)
  33.   to       To:, Apparently-To:, Resent-To:, Cc:
  34.   subject  Subject:, Comments:, Keywords:, Summary:
  35.  
  36. In addition, you should have a way to name a specific header line and
  37. filter on that line only.  For any arbitrary header line.  Perhaps
  38. this could be done by adding a colon to the header name, so "from:"
  39. would duplicate the current (mis)functionality of "from", for example.
  40.  
  41. If 2.4 isn't going to have this feature, I'm going to write my own
  42. replacement for filter that works as described above.  It probably
  43. won't accept quite as broad a range of syntaxes for filter rules as
  44. elm's filter, 'cause I won't take the trouble to do that, so it would
  45. be better if elm filter added this feature and saved me the work :-)
  46.  
  47. >Alas no, there is nothing in the email other than this line to identify that
  48. >it came from the mailing list echoer.  I think I'll ask if they could add
  49. >an X-xxxxxx header with the mailing list name to the email that gets echoed
  50. >by the mailing list. Then all I need is filter support to check for
  51. >arbritrary X-xxx headers :-)
  52.  
  53. Aha, another person wants to filter on arbitrary headers (like
  54. X-Zippy-Says? :-) In the meantime, though, check if the list has a
  55. consistent To: line.  Every major mailing list I'm on, with the
  56. exception of comp-privacy, can be filtered based on the To: line.  If
  57. this list doesn't do that, ask the list administrator why.
  58.  
  59. >Hmm... I'll probably go hack something up while I await the next version
  60. >of ELM.
  61.  
  62. If you do it before I do, send me a copy.  Same to anyone else.  I
  63. probably won't be satisfied with anything short of what I described
  64. above, though :-)
  65.  
  66.   --  Cos (Ofer Inbar)  --  cos@chaos.cs.brandeis.edu
  67.   --  WBRS (BRiS)  --  WBRS@binah.cc.brandeis.edu  WBRS@brandeis.bitnet
  68.  Brandeis University Computer Science Department         (617) 736-2700
  69.  415 South Street, Waltham MA, 02254-9110        System Admin: 736-2717
  70.