Ken Murchison schrieb: > Markus Rebensburg wrote: >> Hello, >> >> I have a problem with the following sieve-script, running on cyrus >> 2.1.12: >> >> I want to match against a header containing '*', e.g.: "Subject: >> Bla*". RFC 3028 tells me to escape the '*' using two backslashes, so I >> used the following sieve-script: >> >> require ["fileinto"]; >> if header :matches "subject" "Bla\\*" { fileinto "test"; } >> >> Unfortunately it doesn't work, so did I miss something or is it a bug? > > It might be a bug, but if you don't need '*' for globbing, why not > just use: > > :contains "subject" "Bla*" > I will use :regex for now because I don't want to search a substring in the subject but something like '^Bla\\*.*' in regex to scan for Bla* Bla, 'Bla* Blubb' etc. (not for real, it's just an example :-) ). But it seems to be a bug indeed.
Markus -- Markus Rebensburg | Email: [EMAIL PROTECTED] Rechenzentrum Uni Kiel | Tel.: (++49)-431-880-3582 D-24098 Kiel - Germany | Fax: (++49)-431-880-1523 ---- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html