Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucselx!bionet!agate!ucbvax!bloom-beacon!bloom-picayune.mit.edu!athena.mit.edu!tompalka From: tompalka@athena.mit.edu (thomas m. palka) Newsgroups: comp.mail.mh Subject: Re: Auto-refiler? Message-ID: Date: 10 Apr 91 20:15:55 GMT References: <3adgpgc@rpi.edu> Sender: news@athena.mit.edu (News system) Organization: Massachusetts Institute of Technology Lines: 42 In-Reply-To: nautilus@nuge114.its.rpi.edu's message of 10 Apr 91 19:55:02 GMT In article <3adgpgc@rpi.edu> nautilus@nuge114.its.rpi.edu (John M Twilley) writes: I have been using Mh for a while, and one of the greatest advantages to using mh is it's folders. Now, what I would like is some routine that can sort my +inbox and put messages from certain people in certain folders. A simple script would be wonderful. Thanks!! You can use the "pick" program to do that. Here is a simple script that I wrote a while ago: #!/bin/csh -f echo "refiling mail from myself ..." (refile `pick +inbox -from tompalka` +drafts) >&/dev/null echo "refiling mail from Luciana ..." (refile `pick +inbox -from duarte` +lu_mail) >&/dev/null echo "refiling mail from Tata ..." (refile `pick +inbox -from lncc` +tata) >&/dev/null echo "refiling personal mail ..." (refile `pick +inbox -to tompalka -or -to s20063` +personal ) >&/dev/null echo "and " echo "sorting the inbox folder ..." sortm +inbox echo "done! " echo " " I hope this helps, tom -- =============================================== thomas m. palka arpa: tompalka@athena.mit.edu bitnet: tompalka%athena.mit.edu@mitvma uucp: ...!mit-eddie!athena.mit.edu!tompalka ===============================================