Plan 9 from Bell Labs’s /usr/web/sources/contrib/nemo/sys/src/cmd/mail2fs/Spam-

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc
# do not edit. Edit /sys/src/cmd/mail2fs/Spam- instead.
#

TMP=/tmp/spam.$sysname.$pid
cd /mail/box/$user
{
	echo '# hash table'
	cat $file | upas/msgtok |
		grep -v '^....................(.*)	' |
		sed 's/$/	1/'
	} >$TMP.tok
upas/addhash -o _prof.mbox _prof.mbox 1 $TMP.tok 1
upas/addhash -o _prof.spam _prof.spam 1 $TMP.tok -1
rm -f $TMP.*
exit ''

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.