Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!sun-barr!decwrl!hplabs!hp-pcd!hplsla!hpubvwa!grlab!scott From: scott@grlab.UUCP (Scott Blachowicz) Newsgroups: comp.mail.elm Subject: Re: Can I use the "filter" program? Message-ID: <1200009@grlab.UUCP> Date: 5 Jun 89 00:30:48 GMT References: <778@cjsa.WA.COM> Organization: Graphicus Lines: 30 / grlab:comp.mail.elm / dheller@cory.Berkeley.EDU (Dan Heller) / 12:21 am Jun 2, 1989 / > In article <1989Jun1.193715.908@ateng.ateng.com> chip@ateng.ateng.com (Chip Salzenberg) writes: >... > Why is a separte program necessary? I don't know-- I think I should > really get and build Elm so I know what I'm talking about when it comes > to issues like this. but in mush, all you have to do is: > > pick -s "pattern" | mail -f
Except that requires that the command be issued and the mail gets dropped in your spool file before it can be dealt with. I know that the pick command could be done every time you run mush from your .mushrc or by setting up a script to run from cron every so often. Regardless of how you do it it shows up in your spool file, which triggers the programs that look for new mail (newmail, biff, whatever). I use my spool file for my "to do" list and reminders. I frequently get mail that I want filed away for future reference or just deleted out of hand, so it's real convenient for it to never end up in my spool file. I've got my filter-rules set up to look for ":save:" in the Subject line of a message...when found, the message is piped to a script of mine that cat's the message to the end of a specified mailbox. For instance, I might be looking through news articles, the run an article through the command "mailx -s 'filter program info :save:elm' scott", so I can have the article for future reference. BTW, I usually use mush for looking at my mailboxes so I can do commands like "pick -s 'pattern' | save +foo" or "folder +myfolder | pick -ago -3m | save +old/myfolder | delete" to "age" the messages in my mailboxes. Scott Blachowicz scott@grlab.UUCP