> I used to keep all my mail this way using MH; it worked well up to > the point where directories got so full that directory operations > were taking too long (I remember a nasty n^2 sort in the early days > of linux). If Plan9's file handling is up to it, I'm in favour of > this approach. Just remember that it has to work well with 10's of > thousands of emails in a directory - search is making organization > obsolete. Heck, some of us didn't manage organization before search > made it obsolete.
for complex queries, grep's speed is very good; i keep lots of messages around. regarding searching/organization, if google could integrate their search engine with a scanner/paper shredder, i would start getting organized tomorrow. cpu% time mgrep plalonde MH I used to keep all my mail this way using MH; it worked well up to /mail/fs/mbox/1796 0.12u 1.19s 2.87r mgrep plalonde MH cpu% cat /bin/mgrep #! /bin/rc if (test ($#* -lt 1) -o ($#* -gt 2)) { echo 'usage: mgrep [from] regex' exit } if (test ! -d /mail/fs/mbox) { echo '/mail/fs/mbox does not exist' exit } if (~ $#* 1) { grep $1 /mail/fs/mbox/*/body exit $? } for (i in `{grep $1 /mail/fs/mbox/*/from}) { d=`{basename -d $i} if (grep $2 $d/body) { echo $d } }