nautilus@nuge114.its.rpi.edu (John M Twilley) (04/11/91)
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!! -- |John M. Twilley (Nautilus)|"Electricity is the dangerous|Disclaimer: Take| |Internet: nautilus@rpi.edu| stuff in an extension cord."|what I say with | |BITNet: Nautilus@RPITSMTS|(paraphrased from S. Dorner) |a grain of salt.|
tompalka@athena.mit.edu (thomas m. palka) (04/11/91)
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
===============================================