contrib/plan9/9mail
author Boris Feld <boris.feld@octobus.net>
Tue, 10 Jul 2018 15:17:05 -0700
changeset 38635 d083ae26c325
parent 19613 4bfd3c7160d9
permissions -rw-r--r--
revlog: early return in _slicechunk when span is already small enough If the full span is smaller than the minimum gap size we'll consider, we know we won't do any slicing and we can return earlier.

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