Re: [exim] Perhaps stupid Question regarding Filter

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Tony Finch
Date:  
À: ml
CC: exim-users
Sujet: 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}}