contrib/plan9/9mail
author Gregory Szorc <gregory.szorc@gmail.com>
Wed, 24 Aug 2016 20:00:52 -0700
changeset 30011 d81fe5af92b8
parent 19613 4bfd3c7160d9
permissions -rw-r--r--
revlog: make code in builddelta() slightly easier to read self.compress() is destructured into its components. "l" is renamed to "deltalen."

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