procmail
[Top] [All Lists]

Re: quick start of procmail

1995-10-25 09:19:06
Subject headings of: dail or Dail or NCD

:0
* ^Subject:dail* Dail*
$MAILDIR/95Daily_Reps

If you want to save mail based on these subject headings, you might
want to make a note of these points:

  Most headers have a space after the colon.

  Unless specified otherwise, the regex is not case sensitive.

  The * doesn't stand alone like it does for shell filename expansion.
  Dail* means Dai followed by zero or more ells.

  Since this isn't shell filename expansion, you don't need the * at
  the end, unless you anchor the end of the expression with a $.

  Since the script specified MAILDIR at the beginning of the script,
  there isn't any need to specify it on each recipe.

  General recipes must be before more specific recipes.  Recipes are
  executed in order, and the first one that delivers the mail will
  generally exit the script.

  I hope I've got everything correct.


:0
* ^From.*danielt
* ^Subject:.*dail
sysadm_daily

:0
* ^Subject:.*dail
95Daily_Reps

:0
* ^Subject:.*NCD
NCD_tech


If you want to specify alternate key words, try this:

:0
* ^Subject: (foo|bar)
foo

Rodger Anderson

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