Ok, at the advice of some people a few days ago about the AuthCourier.pm
stuff for spamd/spamc, and some troubles I was having, I started using:

import USER
xfilter "spamc -u $USER"

I was told this would work for everything, but apparently it does not
work (not defined, or empty) for those messages those delivered by
fetchmail from a cron process (even though it works when I just run
fetchmail from the command line).  So I've had to use the following
hack:

    import USER
    if ($USER ne "")
    {
        xfilter "spamc -u $USER"
    }
    else
    {
        xfilter "spamc -u $LOGNAME"
    }
                                                                                       
                  This is just weird, since from what I've seen, LOGNAME only exists 
when USER doesn't.  I figured I'd mention this, since it just doesn't seem right to me.


-- 
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