procmail
[Top] [All Lists]

Re: Possible procmail filter to trap spam relays?

1998-06-09 01:10:31
On Mon, Jun 08, 1998 at 11:50:30PM -0700, Tristan Horn wrote:
Also, any suggestions on the best method to modify the Subject line
(i.e. with sed) on incoming messages?  I could just do:

      :0:
      * ^From linux-mac68k-owner(_at_)wave(_dot_)lm(_dot_)com
      | sed 's/^Subject: \[linux-mac68k\] /Subject: /' >> linux-mac68k

However, that also changes the body.

Never mind that; I answered my own question, I think:


:0 fhw
* ^From linux-mac68k-owner(_at_)wave(_dot_)lm(_dot_)com
| sed 's/^Subject: \[linux-mac68k\] /Subject: /'

  :0 A
  linux-mac68k

The question of how to use the -a argument for filtering still remains,
though.  procmailrc(5) says:

                                                      When the -a
       or  -m  options are used, "$@" will expand to respectively
       the specified argument (list); but only when passed as  in
       the argument list to a program.

Thanks,

-- 
**************************************************************
Tristan Horn                            voice: +1-650-482-2840
Network Operations Center               fax:   +1-650-482-2844
PRIORI NETWORKS, INC.                   http://www.priori.net/
              "Tomorrow's Performance... Today"
**************************************************************

Attachment: pgpKednOMc3uO.pgp
Description: PGP signature