procmail
[Top] [All Lists]

Re: How to prevent this mail loop

1997-07-28 22:25:00
        Author: "Matthew G. Saroff" <msaroff(_at_)pca(_dot_)net>
        Date: Mon, 28 Jul 1997 20:21:52 -0500 (CDT)
        Message-ID: 
<Pine(_dot_)LNX(_dot_)3(_dot_)95(_dot_)970728201522(_dot_)15112A-100000(_at_)pcans1(_dot_)pca(_dot_)net>

:0c
!saroff(_at_)vs(_dot_)lmco(_dot_)com

1st of all, about half of the message length you sent was entirely unnecessary.

There was a huge amount of blank space at the end, plus the body of the  
message, which we don't need.  In fact, the entire thing looked like a spam  
message.

All you needed to post was your recipe and I could tell what was wrong (I 
think).

:0c
* ! ^X-forwarded-to: saroff(_at_)vs\(_dot_)lmco\(_dot_)com
{

        :0fhw
        | formail -I"X-forwarded-to: saroff(_at_)vs(_dot_)lmco(_dot_)com"
        
        :0
        !saroff(_at_)vs(_dot_)lmco(_dot_)com
}

This should prevent all mail loops from this forwarding recipe.

Note: I think (although I am not 100% sure) that putting the standard  
'duplicate-check'

        :0wh: .idfile.lock
        | formail -D 81920 .procmail.idfile

at the top would also help, but this is only a backup.

TjL

<Prev in Thread] Current Thread [Next in Thread>