📄 t.maildir
字号:
#! /bin/sh# Note: When run via "make check", test output files are automatically deleted.# When run from the command line, output files are left in directory# maildir.YYYYMMDD. This is useful when something is different.## ./inputs/spam.mbx & ./inputs/good.mbx - test inputs# ./outputs - known correct outputs## maildir.YYYYMMDD:# directory containing individual output filesNODB=1 . ${srcdir=.}/t.frameOUT="${TMPDIR}/maildir.out"CORRECT="${SYSTEST}/outputs/maildir.out"for f in good spam ; do mkdir $TMPDIR/$f mkdir $TMPDIR/$f/cur mkdir $TMPDIR/$f/tmp mkdir $TMPDIR/$f/new cat ${srcdir}/inputs/$f.mbx | ( cd $TMPDIR/$f/new && splitmbox )done$BOGOFILTER -C -D -n -B $TMPDIR/good$BOGOFILTER -C -D -s -B $TMPDIR/spamwords=".MSG_COUNT Lotus Magazine Min Service connection more most set that unsubscribe"$BOGOUTIL -w $WORDLIST $words >$OUT || rm -f $OUTif [ $verbose -eq 0 ]; then cmp $CORRECT $OUTelse diff $DIFF_BRIEF $CORRECT $OUTfi
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -