> Also, what are you using for the -u option for spamc?  I've tried
> LOGNAME and USER but these aren't always set properly (eg. when running
> maildrop via fetchmail).

ok, weird.  I was importing $LOGNAME, and it seems that it didn't need
to be imported.  However, I've had to resort to the following to make
things work for all cases (LOGNAME works for fetchmail calls, but
standard delivery requires $RECIPIENT

    import RECIPIENT
    SH_RECIPIENT=escape($RECIPIENT)
    if ($LOGNAME ne "")
    {
        xfilter "spamc -u $LOGNAME"
    }
    else
    {
        if ($SH_RECIPIENT ne "")
        {
            xfilter "spamc -u $SH_RECIPIENT"
        }
        else
        {
            xfilter "spamc"
        }
    }
                                                                                       
                  
This seems to work, but just seems overkill - isn't there ONE variable
somewhere that will list the courier-user in all instances?

-- 
Chris Petersen
Programmer / Web Designer
Silicon Mechanics:  http://www.siliconmechanics.com/
Blade Servers:      http://www.siliconmechanics.com/c292/blade-server.php
1U Servers:         http://www.siliconmechanics.com/c272/1u-server.php




-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to