contrib/plan9/9mail
author Augie Fackler <raf@durin42.com>
Fri, 20 Apr 2018 14:37:47 -0400
branchstable
changeset 37806 61713e857708
parent 19613 4bfd3c7160d9
permissions -rw-r--r--
Added tag 4.6rc1 for changeset 1ec874717d8a

#!/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