Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!casbah.acns.nwu.edu!navarra From: navarra@casbah.acns.nwu.edu (John Navarra) Newsgroups: comp.mail.elm Subject: Re: filter rule won't work Message-ID: <3748@casbah.acns.nwu.edu> Date: 20 Feb 91 05:06:35 GMT References: <490@shrike.AUSTIN.LOCKHEED.COM> Organization: Northwestern University Lines: 66 In article <490@shrike.AUSTIN.LOCKHEED.COM> aihaug@AUSTIN.LOCKHEED.COM (Daniel A Haug) writes: > >I'm trying to write a filter rule to move messages of this form: > > Received: by shrike.Austin.Lockheed.COM (4.1/1.49); Tue, 19 Feb 91 14:39:12 CST > From: Daniel A Haug > Message-Id: <9102192039.AA10872@shrike.Austin.Lockheed.COM> > Subject: news status > To: aihaug (Daniel A Haug) > Date: Tue, 19 Feb 91 14:39:11 CDT > ... > >into a specific folder. Here is the rule I wrote to try to do this: > >if [from = "Daniel A Haug" and subject = "news status"] then > save "/usr6/aihaug/Mail/news-status" > do this: if (from contains "aihung@wherever" and subject contains "news status" ) then save "/whereever" this worked fine for me -- just dont use "Daniel A Hung " but the username instead. Your .forward file is fine. > >Another question about filters: as soon as I started using this, >I no longer get biff-type notification at my terminal when new >mail has arrived. Is there a way to still get notified for most >of my mail? I played around with this one for a while. First of I am using Elm 2.3 and I am running bash (yeah bash!) as my shell but this should not make a differ- ence in the following description. As far as biff is concerned, I don't think you can get it to look anywhere but the usual place to notify you about mail. Therefore, I used newmail-- which you should have if you are running 2.2. I did this: I changed my MAILPATH=/usr/spool/mail/navarra:/home/u3/navarra/Mail and put a line like /usr/local/bin/newmail $HOME/Mail in my .bash_profile so newmail knows to check this directory (because that is where filtered mail is kept) Now when I sent myself mail using a filter rule which saved mail in $HOME/Mail/test I DID NOT get notified of new mail!! SO what I did was to include the file test in my MAILPATH and then i was notified that I got mail. The only problem is that as far as I know, you would have to specify a file for each message. I could be wrong on this but if anyone knows for sure, please answer this. Just remember that if you try this, the default check on newmail is 60 sec so you can either change the interval (which I recommend if you are going to try it). Good luck -- trust me with a little tinkering it works!! ---------------------- from the lab of the MaD ScIenTISt navarra@casbah.acns.nwu.edu > >thanks, > >dan haug-- >Internet: haug@austin.lockheed.com >UUCP: ut-emx!lad-shrike!aihaug >Phone: (512) 386-4634