Displaying 1 result from an estimated 1 matches for "isspamfile".
2006 Apr 29
1
How to notify dovecot that maildir contents is changed by third-party helper ?
...ng values
VMAIL_TOPDIR=/var/vmail/default/e/evseev
FIND_DEPTH=1
INBOX_DIRNAME=cur
KILLSPAM_DIRNAME='.KillSpam'
SPAM_DIRNAME='.Spam'
MSGHEADLEN=30
RM="/bin/rm -f"
MV="/bin/mv -f"
#========= Routines ==========================================#
IsSpamFile() {
local msgfile="$1" score2clean="$2"
local spamstatus=$(head -$MSGHEADLEN "$msgfile" | egrep '^X-Spam-Status: Yes')
test -z "$spamstatus" && return 1
if [ -n "$score2clean" ]; then
l...