shithub: rc

Download patch

ref: 06a18acf1018d0ec8d8bcda72b8d82f2421dfd2d
parent: 2ed7a8de94ef1410dcba81772c64f173153ee40c
author: sl <sl@x1yg3>
date: Sun Jul 6 19:03:21 EDT 2025

add pipefrom

--- a/INDEX
+++ b/INDEX
@@ -48,6 +48,7 @@
 openbsd - Boot OpenBSD inside vmx(1).
 osuny - rcpu to or rimport from osuny.bell-labs.co
 pi - Calculate pi.
+pipefrom - Sender get's CC'd on every send.
 r - setup environment and run rio.
 rag - save image under http://notreally.info/transport/spacecraft/ragnarok/img/
 sparkline - create a sparkline (by anth)
--- /dev/null
+++ b/pipefrom
@@ -1,0 +1,23 @@
+#!/bin/rc
+# Sender get's CC'd on every send.
+# 2015-11-02T17:39:53-0500
+rfork en
+ramfs
+TMP=/tmp/myupassend.$pid
+
+# collect upas/send options
+options=()
+while (! ~ $#* 0 && ~ $1 -*) {
+	options=($options $1);
+	shift
+}
+
+# collect addresses
+dests=()
+while (! ~ $#* 0) {
+	dests=($dests $1);
+	shift
+}
+
+# send mail
+upas/send $options $dests $upasname
--