procmail
[Top] [All Lists]

Re: regular expressions & testing

1998-03-12 08:25:48
On Thu, 12 Mar 1998 08:22:44 -0500 (EST), Jeremy Dinsel
<dinselj(_at_)sighsy(_dot_)cup(_dot_)edu> wrote:
Is there an easy way to test a newly added field to a .procmailrc file?
Sorta like a sanity check on what's been written.

Run it from the command line. Putting your recipes in separate
included .rc files helps a bit here. 

 $ procmail VERBOSE=yes DEFAULT=/dev/null myfile.rc
From justme  Thu Mar 12 17:05:58 1998
From: me
To: you
Subject: I'm just testing here

You type in something like a message of the sort you would like to
filter here. Then press ctrl-D when you're done. 
^D

The FAQ contains a helpful experimental rc file and some more
instructions. <http://www.iki.fi/~era/procmail/mini-faq.html>

Secondly, are the regular expression used by procmail standard .. in such

Not in any meaningful sense. They're modeled on "classical" egrep but
have their own extensions. 

that a person familiar with perl and shell scripts would be able to jump
right in or are there odd quirks to pay attention to?

Read the manual and you should be fine. Hope this helps.

/* era */

-- 
 Paparazzi of the Net: No matter what you do to protect your privacy,
  they'll hunt you down and spam you. <http://www.iki.fi/~era/spam/>

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