Gary suggested to James,
:0
* ^Subject:.*\[MYTAG: *\/[^\]]+
Backslashes don't escape inside brackets, so the first right bracket
closes the set and the second one, being outside a bracketed set, is
literal. [^\]]+ means "any character that is neither newline nor
backslash followed by at least one right bracket."
* ^Subject:.*\[MYTAG: *\/[^]]+
is what James needs there to mean "one or more characters that are
neither newlines nor right brackets."
{
MAILBOX = "$MATCH"
MKMBOX = `test ! -w "$MAILBOX" && mailutil create "$MAILBOX"`
:0 w
| /usr/bin/dmail +"$MAILBOX"
}
Some on this list might not like the use of '&&' above because it
implies the invocation of a shell process.
Unless there's a binary named `test´ in $PATH -- a binary, not a shell
script -- a shell will be invoked anyway. Anyone still objecting can
use this:
:0iwc
* ! ? test -w "$MAILBOX"
| mailtutile create "$MAILBOX"
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail