procmail
[Top] [All Lists]

Re: PERL within .procmailrc

1999-08-10 14:32:33
At 15:20 -0500 10 Aug 1999, Philip Guenther <guenther(_at_)gac(_dot_)edu> wrote:
Give the following a try:

      :0 fhw
      | /usr/local/bin/perl -e "s/^(Subject:\s*)/$1[naztalk]/i"

Actually, there's still a problem there.  perl hasn't been told that it
should read or print anything.  The -p should fix this, so the fixed
recipe is:

        :0 fhw
        | /usr/local/bin/perl -pe "s/^(Subject:\s*)/$1[naztalk]/i"

-- 
Aaron Schrab     aaron(_at_)schrab(_dot_)com      http://www.execpc.com/~aarons/
 Error in operator: add beer

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