contrib/plan9/9mail
author Matt Harbison <matt_harbison@yahoo.com>
Sun, 09 Apr 2017 22:19:27 -0400
changeset 31857 08fbc97d1364
parent 19613 4bfd3c7160d9
permissions -rw-r--r--
tests: print Unix style paths in *.py tests These tests don't support (glob). I didn't audit all tests, but these ones were failing.

#!/bin/rc
# 9mail - Mercurial email wrapper for upas/marshal

fn usage {
	echo >[1=2] usage: mercurial/9mail -f from to [cc]
	exit usage
}

from=()
cc=()
to=()

switch($1){
case -f
	from=$2
case *
	usage
}

to=($3)
if(~ $#* 4)
	cc=(-C $4)

upasname=$from
upas/marshal $cc $to