contrib/plan9/9mail
author Siddharth Agarwal <sid0@fb.com>
Thu, 02 Apr 2015 19:17:32 -0700
changeset 24608 1c533e23ce95
parent 19613 4bfd3c7160d9
permissions -rw-r--r--
util.h: define an enum for normcase specs These will be used in upcoming patches to efficiently create a dirstate foldmap.

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