spamassassin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Spamassassin Wiki] Update of "IntegratedSpamdInPostfix" by JamieMcCarthy
Date Sat, 01 Sep 2007 18:56:39 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Spamassassin Wiki" for change notification.

The following page has been changed by JamieMcCarthy:
http://wiki.apache.org/spamassassin/IntegratedSpamdInPostfix

The comment on the change is:
postfix can send multiple ${recipient}'s; send all to spamvac, not just last one

------------------------------------------------------------------------------
  SPAMASSASSIN=/usr/bin/spamc
  COMMAND="$SENDMAIL $@"
  USER=`echo $COMMAND | awk '{ print $NF }' | sed 's/@.*$//'`
- NEW_COMMAND=`echo $COMMAND | awk '{ gsub($NF, "spamvac"); print }'`
+ NEW_COMMAND=`echo $COMMAND | awk '{ $6 = "spamvac"; NF = 6; print }'`
  
  # Exit codes from <sysexits.h>
  EX_TEMPFAIL=75

Mime
View raw message