Re: [exim] Perhaps stupid Question regarding Filter

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Tony Finch
Dátum:  
Címzett: ml
CC: exim-users
Tárgy: 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}}