Scott writes:

Scott wrote:

Specifically, I'm looking for something with real examples that make use of
tricky syntax.

Since apparently there isn't much documentation available for this, maybe someone can help me make a filter. I'm trying to create a single filter for all emails with the words .sport and .ltd in the subject header. Something like (which I know is wrong because it doesn't work):

if ((/^Subject:.*\.sport || .ltd /))

if ((/^Subject:.*\.(sport|ltd)[^:alpha:]/))

should work. Except for the case where this occurs at the end of the subject line. You'll have to repeat the if statement to catch that one. A single regexp is possible to match both cases, but it would be slow to match.

{
    to "./Maildir/.missedspam/."
}

What's the syntax for specifying whole words and conditionals?

The entire filtering syntax is defined by the maildropfilter man page.

Although you could slap on [^:alpha:] to check that th

Attachment: pgp00000.pgp
Description: PGP signature



Reply via email to