| From: Lovell Mcilwain <[EMAIL PROTECTED]>
| Can anyone tell me how I can get procmail to filter on a full subject line
| instead of just one word of the subject line?
This is not the best list to ask such questions. Maybe this would be
better:
http://www.procmail.org/era/lists.html
| Every FAQ and man page I went to only shows an example of filtering a subject
| line with one word. I need to be able to do more then one.
I guess that your problem is that you don't understand ed/egrep/perl
style regular expressions. They are different from "glob" regular
expressions (used in the shell).
procmailrc(5) (i.e. the man page for procmail) says:
These regular expressions are completely compatible to the
normal egrep(1) extended regular expressions. See also
Extended regular expressions.
*, in a regular expression, is a postfix operator meaning "zero or
more of". So when you write " *" it means zero or more spaces.
"t*" means zero or more "t" characters in a row (not likely what you
meant).
There is no concept of "word" in procmailrc patterns.
| Here is a current example of what I have in my .procmailrc file:
|
| :0:
| * ^Subject:.*Automated Bug Report
| "$HOME/Database Messages"
|
| :0:
| * ^Subject:.*Automated Bug Report*
| "$HOME/Database Messages"
|
| I have tried the following:
|
| :0:
| * ^Subject:.*Automated *Bug *Report*
| "$HOME/Database Messages"
|
| :0:
| * ^Subject:.*Automated/Bug/Report*
| "$HOME/Database Messages"
|
| :0:
| * ^Subject:.*Automated+Bug+Report*
| "$HOME/Database Messages"
perhaps you meant:
* ^Subject:.*Automated.*Bug.*Report
or perhaps:
* ^Subject:.*Automated
* .*Bug
* .*Report
(This second form allows the words to appear in any order.)
Not easy to guess since you didn't say what you were trying to do.
_______________________________________________
LinuxR3000 mailing list
[email protected]
http://lists.pcxperience.com/cgi-bin/mailman/listinfo/linuxr3000
Wiki at http://prinsig.se/weekee/