4 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] filtering by subject
FromSent OnAttachments
Jerry M. Howell IIOct 3, 2004 9:46 am 
Sam VarshavchikOct 3, 2004 10:32 am 
Thorsten HaudeOct 3, 2004 11:29 am 
Jerry M. Howell IIOct 3, 2004 11:58 am 
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 by subjectActions...
From:Thorsten Haude (list@thorstenhau.de)
Date:Oct 3, 2004 11:29:22 am
List:net.sourceforge.lists.courier-maildrop

Hi,

* Jerry M. Howell II wrote (2004-10-03 17:47):

I've finaly got maildrop up and running and it's working great. Only have one problem. I can't seem to get it working with a subject. Here is what I tried and it didn't work

if (/^Subject:.*Nightly Qmail Stats Report*/) to /home/vpopmail/domains/usalug.org/geeshock/Maildir/.reports

What subjects were matched that shouldn't? Not matched that should?

The last character looks like you mixed up regexes and file globs. The asterisk is a modifier for the preceeding character, like Sam already descreibed. In this case, you don't need to write anything; the regex is also a match if it matches only a part of the target. /^Subject:.*Nightly Qmail Stats Report/

To match the whole target, you'd use the end marker, just like you did with the start marker. This wouldn't allow anything after the last t: /^Subject:.*Nightly Qmail Stats Report$/

Thorsten