procmail
[Top] [All Lists]

Help with filter recipe.

1998-12-11 07:34:49

Hi all.

I have made a little filter script because a announce list I 
subscribe tends to sometimes Control-K as a line separator
(weird ain't it???).

This is the script:

------
#! /bin/sh
/bin/sed 's/[   ]*[    ]*/\
/g' | /bin/sed 's/[     ]*^K[   ]*/\
/g'
exit 0
-----

I call it on my .procmailrc like this:

:0 fw
*$ ${FROM_LIST}(@|\<)pilotgear
| $HOME/bin/pilotgear.strip.k

:0:
*$ ${FROM_LIST}(@|\<)pilotgear
mail.pilot-gear

The mails are delivered to mail.pilot-gear however they
still have Control-G in it, dispite the filter which I know 
for sure it works (I already tried it!!!)
I was under the impression that if you have a filter rule,
the mail filtered result is available to the following
recipes.

What am I doing wrong ?

Can you help me troubleshoot it ?

Best regards,

        Nelson Ferreira
---
Nelson Jose dos Santos Ferreira |  .  .  .  | INESC/PT-Servicos 
Systems Integrator              | |. /  / . | Lisbon,PORTUGAL
mailto:Nelson(_dot_)Ferreira(_at_)inesc(_dot_)pt |.||\| | /  | Phone:+351 (1) 
3100050
                                | .|<:/  \. | Fax  :+351 (1) 3100008

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