procmail
[Top] [All Lists]

Re: Check whitelist file and if not there add to whitelist

2005-08-20 12:40:36
Am 2005-08-20 23:54:25, schrieb Tim Rice:

:0 
* ?formail -x"From:" -x"Sender:" \ 

I think, it should be

* ?? formail -x"From:" -x"Sender:" \ 

  -x"Reply-To:" -x"Return-Path:" \ 
| fgrep -is -f $HOME/whitelist 
{  
    :0 hif 
    | formail -A"X-Puremail: Global Whitelist" 
} 
 
:0
* 
^To:.*(feedback|malaysia|maldives|myanmar|phuket|samui|seychelles|singapore|sri-lanka)
* ! ^X-Puremail: Global Whitelist
* ! ^From:.*(seal|phuket|siam)
{          
    :0 hicw:
    | (formail -r -z -iFrom: \
      -xFrom: >> $HOME/whitelist)
}

It's now starting to look like an error on the ^To line. Is there a limit
to the line length in Procmail?

I have some lines with more then 500 chars and it works properly...

I'm going to try breaking the To line into two lines and see if that helps. 

Greetings
Michelle

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/3/88452356    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail