home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.mail.elm
- Path: sparky!uunet!ukma!darwin.sura.net!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!nucsrl!ddsw1!dattier
- From: dattier@ddsw1.mcs.com (DWT)
- Subject: Re: HELP: Elm filter not working
- Message-ID: <Bx9BC7.8Ap@ddsw1.mcs.com>
- Date: Thu, 5 Nov 1992 18:57:43 GMT
- References: <18390001@hpkslx.mayfield.HP.COM>
- Organization: Contributor Account at ddsw1, Chicago, Illinois 60657
- Lines: 63
-
- lou@hpkslx.mayfield.HP.COM (Lou Kvitek) wrote in
- <18390001@hpkslx.mayfield.HP.COM>:
-
- | I am trying to use filter to forward a message based on the subject.
- | I want to forward it to myself as well as other people, but I must
- | change the subject before forwarding in order to prevent filter
- | from looping on the message.
- |
- | Please help with my Elm filter problem:
- |
- | # $HOME/.elm/filter-rules
- | if (subject = "On This Day") then
- | execute "mailx -s 'Fwd: On This Day' kvitekl"
- |
- | filter -r
- | filter (kvitekl): Error reading line 8 of rules - field "_kvitekl"" unknown!
- | filter (kvitekl): Couldn't get rules!
- |
- | Filter can't handle the quote conflicts apparently.
-
- You'll still get a loop because the subject search string is included in the
- new subject. filter doesn't go buy regexps and there is no way to anchor a
- search string. I don't know about the quote problem, though.
-
- | I also tried:
- |
- | # $HOME/.elm/filter-rules
- | if (subject = "On This Day") then
- | execute otd.fwd
- |
- | # otd.fwd
- | | mailx -s 'Fwd: On This Day' kvitekl
- |
- | This did not work either, filter does not seem to pass the message
- | through as stdin (as documented).
-
- It would have solved your quote troubles, but there should be no pipe symbol
- there in the script. It's a shell script, not a .forward file.
-
- Moreover, filter daemons do not know the path variable set in your .profile
- or .login when you are actually on the system yourself. They have a bare
- minimum default $PATH like /bin/:/usr/bin. You may need to specify the
- entire path to otd.fwd in the execute instruction, or the filter daemon will
- never find it and will silently lose the letter.
-
- Note that the one and only example of execute in the Filter Guide called
- a common utility and left the question of the filter daemons' $PATH
- unaddressed.
-
- The current versions of filter (2.4 at all patchlevels) support a "forwardc"
- instruction that keeps a copy of mail that you forward. Use it and take your
- own name off the mailing list, or change the new subject to something that
- doesn't include the search string for that rule. Alternatively, change the
- rule to
-
- if subject = "On This Day" and not subject = Fwd then
- execute /full/path/to/otd.fwd
-
- And otd.fwd must have execute permission either for world or for you as
- its owner.
-
- David W. Tamkin Box 59297 Northtown Station, Illinois 60659-0297
- dattier@ddsw1.mcs.com CompuServe: 73720,1570 MCI Mail: 426-1818
-