procmail
[Top] [All Lists]

nested block

1995-10-26 11:39:58
I have the following receipe. The idea is:

1. Filter messages that have a ratio of quoted-unquoted lines more than 1:2
2. put all filtered messages in 2in1 folder
3. write down the time, sender, subject, and size in a log file
4. For all other messages that pass the filter, write the same info as in
   (3) in a separate log file
5. Except for messages from me, leave the messages in (4) in the default 
   incoming folder

My procmail log file give some errors:

  Total  Number Folder
  -----  ------ ------
      0       1  ## procmail: Closing brace unexpected
      0       1  ## procmail: Error while writing to ""
      0       2  ## procmail: Skipped "{"

Can anybody help?

--- the recipe ---

:0HB
* ^TO.*(ppi|yuwono|Jaringan Warung Kopi)
* !^FROM_DAEMON

{

 FROM=`formail -xFrom:`
 SUBJECT=`formail -xSubject:`
 TIME=`date +%T`
 PSIZE= $=

         {
          :0 B
           * 20^1 ^>
           * -10^1 ^[^>]
           dobol

          :0c:logs1
          | echo $TIME $FROM [$SUBJECT] $PSIZE bytes >>$HOME/log/2in1-$DATE
         }

  :0c:logs
   | echo $TIME $FROM [$SUBJECT] $PSIZE bytes >>$HOME/log/ppi$DATE

  :0
   *FROM.*samanya
   /dev/null
}

--------------

ranan samanya

Internet: ranan(_dot_)samanya(_at_)rug(_dot_)ac(_dot_)be       FIDONet: 
2:292/880.5
Team OS/2

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