Re: sieve match with contain asterisk

2021-07-03 Thread Robert L Mathews
On 7/3/21 12:36 AM, Hardy Flor wrote: > Thanks for the hint. But that means the keyword can be within the > subject. I actually only wanted to look for it at the beginning. Ah. In that case, you want: if header :matches "Subject" "\\*xyz\\**" I tested this and it works; see

Re: sieve match with contain asterisk

2021-07-03 Thread Hardy Flor
Thanks for the hint. But that means the keyword can be within the subject. I actually only wanted to look for it at the beginning. Am 03.07.2021 um 00:17 schrieb Robert L Mathews: Use ":contains" instead of ":matches": if header :contains "Subject" "*xyz*" In ":contains", asterisks aren't

Re: sieve match with contain asterisk

2021-07-02 Thread Robert L Mathews
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

sieve match with contain asterisk

2021-07-02 Thread Hardy Flor
Hello, 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\\**" Hardy