sieve match with contain asterisk
Robert L Mathews
lists at tigertech.com
Sat Jul 3 01:17:35 EEST 2021
On 7/2/21 4:43 AM, Hardy Flor wrote:
> I want to find a keyword in the subject between two "*".
> How do I have to mask the "*" correctly?
>
> I tried:
> if header :matches "subject" "\*xyz\**"
> if header :matches "subject" "\\*xyz\\**"
Use ":contains" instead of ":matches":
if header :contains "Subject" "*xyz*"
In ":contains", asterisks aren't wildcards and don't need escaping.
--
Robert L Mathews, Tiger Technologies, http://www.tigertech.net/
More information about the dovecot
mailing list