procmail
[Top] [All Lists]

Re: Regular Expression Question

1998-03-14 11:49:29
At 04:45 PM 3/13/98 -0700, Andrew Kelley wrote:

I must be misunderstanding something about Procmail's regular
expressions... I'm using par (at era's suggestion -- thanks BTW) to
reformat e-mail with lines longer than 79 characters. Only problem is that
par bafs if any single word (string of non-space or non- tab characters)
is longer than 79 characters. So, I though I could use a condition as
follows to exclude messages with long words. I used 79 of the
[^     ]'s each of which includes a space and a tab. 

:0B
* other conditions to ID messages with long lines
* ! ^[^        ] <seventy eight more of these>
{ Feed message through par }

Problem is that this fails to exclude messages with long words. What am I
doing wrong?

This only should exclude those messages where the first word on a line
is the long word.

Try omitting that first ^ in the condition, which anchors to start of line.

Hope that helps,
Stan

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