Re: [sieve][regex] Matching multiple strings in the "Received" header

2018-05-08 Thread Stephan Bosch
Op 08/05/2018 om 08:42 schreef Adi Pircalabu: On 08-05-2018 16:20, Gerald Galster wrote: Hello Adi, did you try: " from.*(outbound.protection.outlook.com|.google.com|.yahoo.com|mx.aol.com) " If you need to specify the posix character class: [[:blank:]] means space and tab. With pcre it

Re: [sieve][regex] Matching multiple strings in the "Received" header

2018-05-08 Thread Adi Pircalabu
On 08-05-2018 16:20, Gerald Galster wrote: Hello Adi, did you try: " from.*(outbound.protection.outlook.com|.google.com|.yahoo.com|mx.aol.com) " If you need to specify the posix character class: [[:blank:]] means space and tab. With pcre it would be like [ \t] [[:space:]] includes space,

Re: [sieve][regex] Matching multiple strings in the "Received" header

2018-05-08 Thread Gerald Galster
Hello Adi, did you try: " from.*(outbound.protection.outlook.com|.google.com|.yahoo.com|mx.aol.com) " If you need to specify the posix character class: [[:blank:]] means space and tab. With pcre it would be like [ \t] [[:space:]] includes space, tab, newline, linefeed, formfeed, vertical tab

Re: [sieve][regex] Matching multiple strings in the "Received" header

2018-05-07 Thread Benny Pedersen
Adi Pircalabu skrev den 2018-05-07 05:10: How should I write it to also match the space character at both the beginning and end of the expression? use \ before space char

Re: [sieve][regex] Matching multiple strings in the "Received" header

2018-05-06 Thread Adi Pircalabu
On 07-05-2018 12:13, Adi Pircalabu wrote: I'm trying to use this expression in Sieve, but for some reason the filter doesn't work: require ["fileinto","regex"]; # rule:[gmail-outlook-yahoo-aol-friends] if header :regex "received"

[sieve][regex] Matching multiple strings in the "Received" header

2018-05-06 Thread Adi Pircalabu
Hi, I'm trying to use this expression in Sieve, but for some reason the filter doesn't work: require ["fileinto","regex"]; # rule:[gmail-outlook-yahoo-aol-friends] if header :regex "received" ".from.*(outbound.protection.outlook.com|.google.com|.yahoo.com|mx.aol.com)." { fileinto