On 9/11/11 8:06 AM, Stephan Bosch wrote: >> What is the sieve syntax for matching text somewhere in a subject line, >> but not at the beginning of the line? >> >> Background: Multiple machines each send a message with the subject of >> "<hostname> operations run" to a mail server. The<hostname> value is >> different for each sender. > > If I understand your question correctly, the following is the easiest > answer: > > if header :matches "subject" "* operations run" { > }
Bingo! Thanks. > Right, because that is not how :contains works. > > Check http://tools.ietf.org/html/rfc5228#section-2.7.1 for more info. Thanks too for this pointer. I hadn't understood the difference between :contains and :matches. dn