procmail
[Top] [All Lists]

Re: .procmailrc limits

1998-03-19 12:16:04
Brett Neely asked,

| Is there a limit on the length of a single line in a .procmailrc file?

Yes: both before and after variable expansion and command substitution,
it must be shorter than $LINEBUF characters.  The exceptions are (1) comments
and (2) commands that are run by a shell rather than directly by procmail.

| I think i saw someone put a filter condition across multiple lines.
| Could someone explain how to do this?

You can break it up with <backslash><newline><optional whitespace>, but that
helps only with legibility.  The entire condition must still be under
$LINEBUF characters.  And be positive that there is no whitespace to the
right of the backslash when you use it that way!

Unfortunately, LINEBUF seems to be a write-only variable; you can change its
value but you can't find out its current setting.

There is no limit, as far as I know, on the length of the rcfile itself.

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