Re: [exim] Perhaps stupid Question regarding Filter

Pàgina inicial
Delete this message
Reply to this message
Autor: Tony Finch
Data:  
A: ml
CC: exim-users
Assumpte: 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}}