简体   繁体   中英

How to match any whitespace in body of mail in procmail?

I tried to use such rule:

:0 B
* Something[[:space:]]+whatever

but it doesn't work.

When I change [[:space:]] to literal space character:

:0 B
* Something +whatever

it works.

It also works in case of:

:0 B
* Something[ ]+whatever

I must be doing something wrong, but can't really find it. Any hints?

What about just adding the white space characters in a class you want to match:

[ \t\r\n]

matches a space, tab, carriage return and line feed.

There are of course more white space chars, but these are the most commonly used.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM