procmail
[Top] [All Lists]

Re: Splitting conditions

2001-06-09 09:08:14
Iain wrote,

| I've got some rather lengthy regexps in my .procmailrc and I was
| wondering if there was any way to split them across separate lines in
| the file (it would make them more legible for a start).
| 
| I know that you can use \ with actions, but that doesn't appear to work
| with regexps in conditions.

It does work; perhaps you have a stray space or tab to the right of the
backslash, and that's causing the problem.  Or are you starting the
continuation line with another asterisk, perhaps?  Also note that leading
space on the continuation line will be ignored; maybe you were expecting it
to count, and that's the problem?  (If you want leading space to count,
protect it on the continuation line with another backslash or with an empty
pair of parentheses.)

Please show us how you're trying to do it, and we'll see what's going awry.

I have a lot of long regexps and break them up with backslashes all the
time.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>