⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pipeto.sample-hold

📁 这是一个同样来自贝尔实验室的和UNIX有着渊源的操作系统, 其简洁的设计和实现易于我们学习和理解
💻 SAMPLE-HOLD
字号:
#!/bin/rc# create a /tmp for here documentsrfork enbind -c /mail/tmp /tmpKEY=whocaresUSER=kenRECIP=$1MBOX=$2PF=/mail/box/$USER/_patternTMP=/mail/tmp/mine.$pidBIN=/bin/upasD=/mail/fs/mbox/1# save and parse the mail file{sed '/^$/,$ s/^From / From /'; echo} > $TMPupas/fs -f $TMP# if we like the source# or if the subject contains a valid token# then deliver the mail and allow all the addressesif( $BIN/list check $PF $D/from $D/sender $D/replyto ){	$BIN/deliver $RECIP $D/from $MBOX < $D/raw	$BIN/list add $PF $D/from $D/to $D/cc $D/sender	rm $TMP	exit 0}switch($status){case *!match*	echo `{date} dropped $RECIP From `{cat $D/replyto} >> /mail/box/$USER/_bounced >[2] /dev/null	rm $TMP	exit 0}# don't recognize the sender so hold the message$BIN/deliver $RECIP $D/from /mail/box/$USER/_held < $D/rawrv=$statusrm $TMPexit $status

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -