[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vps-mail] spam and procmail tricks



is there a way to tell procmail :

if you are processing for the user postmaster then stop processing (so
only the part "i am postmaster" is needed as we have the rest. I
wondered if we can also skip any spam test as spam or not they will end
in postmaster files anyway :)

something like

if LOGNAME = postmaster

{ SWITCHRC }


?

Cordialement,
Ghislain ADNET.
AQUEOS.


Scott Wiersdorf a écrit :
> On Tue, Jan 31, 2006 at 01:26:19AM +0100, ADNET Ghislain wrote:
>   
>>>     ## deliver seen messages immediately
>>>     :0
>>>     * H ?? ^X-Loop: postmaster
>>>     { SWITCHRC }
>>>
>>>   
>>>       
>> it means if we find the loop header then we stop processing ? this is
>> not well documented in the man page
>>     
>
> I think most people would agree with you. The procmail man pages are
> definitely not for learning procmail, but more as a reference to those
> who already know it. Fwiw, here's the reference in procmailrc(5):
>
>        SWITCHRC    Names an rcfile (relative  to  the  current  directory)  to
>                    which  processing  will  be  switched.  If the named rcfile
>                    doesn't exist or is not a normal file or /dev/null then  an
>                    error  will  be  logged and processing will continue in the
>                    current  rcfile.   Otherwise,  processing  of  the  current
>                    rcfile  will  be  aborted  and  the  named  rcfile started.
>   Read here ====>  Unsetting SWITCHRC aborts processing of the current  rcfile
>                    as  if  it had ended at the assignment.  As with INCLUDERC,
>                    no checking is done on the permissions or ownership of  the
>                    rcfile and command line assignments have no effect.
>
> Scott
>   

Main Index | Thread Index
Match: Format: Sort by:
Search: