procmail
[Top] [All Lists]

Re: Juno/hotmail/prodigy filtering

1998-01-13 14:29:55
Jari Aalto quoted W. Wesley Groleau from a post of Wesley's that I don't
remember:

| | :0
| | * ^From.*$FORGED_DOMAIN
| | * ! ^Received.*$FORGED_DOMAIN
| | * ! ^X-Loop: noloops_<personalized_unique_string>
| | $SPAMFOLDER
| |
| | :0
| | * ^Received.*$FORGED_DOMAIN
| | * ! ^From.*$FORGED_DOMAIN
| | * ! ^X-Loop: noloops_<personalized_unique_string>
| | $SPAMFOLDER

Whatever the goal there was, I'm sure that $FORGED_DOMAIN is supposed to
be a variable that needs substitution, not the static string
"<newline>FORGED<underscore>DOMAIN".  Therefore the ^From and ^Received
conditions need the "$" modifier:

    :0
    * ! ^X-Loop: noloops_<personalized_unique_string>
    {
     :0: # if you care about a lockfile on $SPAMFOLDER
     * $ ^From.*$FORGED_DOMAIN
     * $ ! ^Received.*$FORGED_DOMAIN
     $SPAMFOLDER

     :0:
     * $ ^Received.*$FORGED_DOMAIN
     * $ ! ^From.*$FORGED_DOMAIN
     $SPAMFOLDER
    }

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