contrib/plan9/9mail
author Matt Harbison <matt_harbison@yahoo.com>
Sat, 17 Mar 2018 01:47:57 -0400
changeset 37148 ea6fc58524d7
parent 19613 4bfd3c7160d9
permissions -rw-r--r--
lfs: add server side support for the Batch API

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