shithub: rc

Download patch

ref: 32599de11b852d2c353c0c63bf100d817375fb79
parent: 82068fdcbd8a6659cf03385f4353ad49ca4f416b
author: qwx <qwx@sciops.net>
date: Mon Sep 6 22:54:53 EDT 2021

add arc: automatic mail archival (via remotemail)

--- /dev/null
+++ b/bin/arc
@@ -1,0 +1,8 @@
+#!/bin/rc
+# started from /mail/lib/remotemail
+# message from stdin piped to upas/smtp
+dir=/mail/box/$user/arc
+if(! test -d $dir)
+	mkdir $dir || exit
+arc=$dir/`{date -n}
+exec tee -a $arc