# HG changeset patch # User Jeff Sickel # Date 2013-08-12 22:36:49 # Node ID 4bfd3c7160d99aba3fc98abcbbf1e86cca8354f0 # Parent df54cc67b91bea97c4fc299241a67aeecf099d00 9mail: new script to add support for Plan 9 upas/marshal email wrapper diff --git a/contrib/plan9/9mail b/contrib/plan9/9mail new file mode 100644 --- /dev/null +++ b/contrib/plan9/9mail @@ -0,0 +1,26 @@ +#!/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 +