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