vwhois and faces assume you have a upas/fs mail dir called mbox, mine are work and home, this makes them agnostic. Also fixed usage. Reference: /n/sources/patch/applied/faces-vwhois Date: Sat Jan 22 17:06:50 CET 2005 --- /sys/src/cmd/faces/main.c Sat Jan 22 17:06:50 2005 +++ /sys/src/cmd/faces/main.c Sat Jan 22 17:06:50 2005 @@ -597,12 +597,14 @@ eresized(0); return; }else{ - for(i=first; istr[Sshow], "/mail/fs/mbox/XXX")){ + for(i=first; istr[Sshow], '/'); + if(ptinrect(p, facerect(i-first)) && + s && strstr(s, "/XXX")){ delface(i); flushimage(display, 1); } + } } break; case 2: @@ -674,7 +676,7 @@ void usage(void) { - fprint(2, "usage: faces [-hi]\n"); + fprint(2, "usage: faces [-hi] [-m mail-fs-dir]\n"); exits("usage"); } --- /rc/bin/vwhois Sat Jan 22 17:06:50 2005 +++ /rc/bin/vwhois Sat Jan 22 17:06:50 2005 @@ -1,8 +1,16 @@ #!/bin/rc -if(test -f /mnt/plumb/seemail || test -f /mnt/term/mnt/plumb/seemail){ +rfork e + +box=mbox +if(! test -d /mail/fs/$box) + box=`{ls -p /mail/fs | grep -v ctl | sed 1q} +if(~ $#box 0) + box=mbox # we tried + +if(~ $#box 1 && test -f /mnt/plumb/seemail || test -f /mnt/term/mnt/plumb/seemail){ for(i) - plumb -dseemail -a 'filetype=vwhois digest='$i.$pid' mailtype=new sender='$i /mail/fs/mbox/XXX + plumb -dseemail -a 'filetype=vwhois digest='$i.$pid' mailtype=new sender='$i /mail/fs/$box/XXXvwhois } if not for (i){ echo vwhois: vwhois: vwhois: delivered `{cat /dev/user} From $i '(vwho)' >> /sys/log/mail