Solved: [CLUE-Tech] using procmail to send a message to a script?

David Guntner davidg at akaMail.com
Mon Oct 21 13:32:28 MDT 2002


Dave Price grabbed a keyboard and wrote:
> 
> Here is what i got working (trivial examples to test methods):
> 
> :0fbw
> * ^Subject.*EMAZING Virgo
> | /home/davep/filter_virgo.pl
> 
> #:0:
> #* ^Subject.*EMAZING Virgo
> #virgo
> 
> The 1st rule pipes the body (b) of the message to a filter (f) and waits
> (w) until the filter completes before further processing,
> 
> 2nd rule matches the (unchanged) header and stuffs filtered message into
> a folder.

There is no "f" flag, and "b" should be "B".  Also, by "body," it's not 
controlling what's going into a filter, it's controlling what part of the 
message procmail is looking at.  Without the "B" flag, procmail only looks 
at the message header.  Your above example worked because "Subject" is 
within the message header and thus procmail found a match, which caused it 
to then pipe the message to your script.

man proxmailrc  will fully explain what flags exist and what they do.

man proxmailex  will provide some examples for recipes.

                --Dave
-- 
      David Guntner      GEnie: Just say NO!
 http://www.akaMail.com/pgpkey/davidg or key server
                 for PGP Public key




More information about the clue-tech mailing list