解决方法
看起来
someone else已经回答了这个问题,但我想我会给你一个具体的答案.
我会使用procmail并在.procmailrc中使用与此类似的配方:
#turn this off when you're finished testing :) VERBOSE=on LOGFILE=/home/user/procmail.log :0 c #the c means continue on after this recipe is parsed | /path/to/your/script