A question about procmailrc

Don Russell fedora at drussell.dnsalias.com
Thu Feb 2 20:28:19 UTC 2006


On 2/2/2006 12:10 PM, Hongwei Li wrote:

[snip]

> 
> The * is a wild char because there are probably other letters after office,
> e.g. . ] or space etc.  I also tried:
> 
> :0:
> * ^Subject:.*is out of the office*
> $MAILDIR/Trash

* is not a wild card character.

dot is a wild card character.

When dot is followed by splat (.*) that means "zero or more anything"

So, the above says match on "subject:' starting in column 1
followed by any number of characters (zero or more)
followed by "is out of the office*"

I'm not certain what that last asterisk does....
did you try:
* ^subject:.*is out of the office.*

note the ".*" at the end, and not just "*"

Don




More information about the fedora-list mailing list