Re: [exim] Perhaps stupid Question regarding Filter

Top Page
Delete this message
Reply to this message
Author: Tony Finch
Date:  
To: ml
CC: exim-users
Subject: Re: [exim] Perhaps stupid Question regarding Filter
On Fri, 5 Aug 2005 ml@??? wrote:
>
> However, the problem is, that there may be one or more whitespaces
> (Space, Tab) between "action:" and "DELETE".
>
> And there may or may not be one or more whitespaces before or after
> "DELETE".


Use a regex match: $message_body matches "action:\\s*DELETE"

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}