Thank you Gabriel,
it solved my problem.

Eduardo Martinho


Gabriel Cabillón wrote:
Eduardo Martinho wrote:
Andreas,
I tried with $LOGNAME and appeared VMAIL instead of email recipient (To). I need of recipient to execute spamc with "-u" parameter.




Andreas Stollar wrote:
Try $LOGNAME


On Fri, 17 Feb 2006, Eduardo Martinho wrote:

Date: Fri, 17 Feb 2006 13:30:25 -0300
From: Eduardo Martinho <[EMAIL PROTECTED]>
To: [email protected]
Subject: deliveryProgramPath and Maildrop

Hi,

I have a problem. I'm trying to use attribute deliveryProgramPath "/usr/bin/maildrop", but inside of file /etc/maildroprc the variable $USER is empty.
Any idea ?

Thanks,

Eduardo Martinho

sample of /etc/maildroprc:

###############################################################################
#
# Use SpamAssassin to filter SPAM
#
###############################################################################
if( $SIZE < $SCANSPAMSIZE ) {
xfilter "/usr/bin/spamc -u $USER -s $SCANSPAMSIZE"
}

if (/^X-Spam-Status: *Yes/:h)
{
#Create SPAM IMAP folder if they don't have one
`test -d $DEFAULT/.Spam`
if( $RETURNCODE == 1 )
{
  `/usr/bin/maildirmake -f Spam $DEFAULT`
  `echo INBOX.Spam >> $DEFAULT/courierimapsubscribed`
}
exception {
  to "$DEFAULT/.Spam/"
}
}






what about insert at the begin of the script:
import RECIPIENT

...then use $RECIPIENT

other useful:
import EXT
import HOST
import SIZE
import SENDER



--

Reply via email to