📄 t.ignore_spam_header
字号:
#! /bin/sh. ${srcdir=.}/t.frame# t.ignore_spam_header## bogofilter should remove all copies of the spam # header line in the incoming message, i.e. # the output file should exactly 1 copy of it.shn=`./spam_header_name`cat > $TMPDIR/input <<EOFFrom somewhere@example.com Fri Nov 22 11:30:23 2002$shn: blah1$shn: blah2 ... folded continuation 1 ... folded continuation 2$shn: blah3Friend,EOF# check seekable input$VAL $BOGOFILTER -p -e -C < $TMPDIR/input > $TMPDIR/output1# check non-seekable inputcat $TMPDIR/input | $VAL $BOGOFILTER -p -e -C >$TMPDIR/output2count1=`grep $shn $TMPDIR/output1 | wc -l`count2=`grep $shn $TMPDIR/output2 | wc -l`if [ $count1 = "1" ] && [ $count2 = "1" ] ; then exit 0else echo count1: $count1, count2: $count2 exit 1fi
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -