"Steve Schofield" <ste...@mail.adminblogs.com> writes:
well. I've searched the internet but found nothing that will help me filter
based on TO:, FROM: CC: etc. headers.
Most mailing lists set a List-Id or Delivered-To header that you can
filter on more reliably than To or Cc headers.
Please help this newbie! The TO: and FROM examples below didn't work so I
commented out until I get this figured out.
# Store messages to Qmail in their own folder
#if (/^To:priv...@aspadvice.com/)
This rule didn't skip white space, but white space is required after the
header name. However, as the user submitting the mail may include
arbitrary amounts of white space, try to us this inside the parentheses:
/^To:.*private-recreation@aspadvice\.com/
Note that what you stuff between the slashes is a regular expression, a
. is a wildcard for any single character, the * means "match zero or
more of the preceding object" (here: of any single character).
# Store messages to Qmail in their own folder
#if (/^From:.*bgeek.com/)
Comment and if don't match. "From" isn't used to mean any "addressed
to".
Did you read man maildropex?