contrib/plan9/9mail
author Boris Feld <boris.feld@octobus.net>
Fri, 25 Jan 2019 18:43:48 -0500
changeset 41460 e9891c734bf8
parent 19613 4bfd3c7160d9
permissions -rw-r--r--
perf: add a no-lookup variant to perfindex It is useful to check how long it takes to create a index object without doing anything with it. We add a new flag dedicated to that.

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