2 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Filtering TO: FROM: f...
FromSent OnAttachments
Steve SchofieldAug 24, 2003 8:11 pm 
Matthias AndreeAug 25, 2003 8:03 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] Filtering TO: FROM: for this newbieActions...
From:Matthias Andree (ma@dt.e-technik.uni-dortmund.de)
Date:Aug 25, 2003 8:03:56 pm
List:net.sourceforge.lists.courier-maildrop

"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?