You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by Apache Wiki <wi...@apache.org> on 2007/09/01 20:56:39 UTC

[Spamassassin Wiki] Update of "IntegratedSpamdInPostfix" by JamieMcCarthy

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