Blob
1 #!/bin/rc3 rfork e4 TMP=/tmp/myupassend.$pid6 # collect upas/send options7 options=()8 while (! ~ $#* 0 && ~ $1 -*) {9 options=($options $1);10 shift11 }13 # collect addresses and add them to my patterns14 dests=()15 while (! ~ $#* 0) {16 dests=($dests $1);17 shift18 }19 echo $dests > $TMP20 upas/list add /mail/box/$user/_pattern $TMP >[2] /dev/null21 rm $TMP23 # send mail24 upas/send $options $dests