Re: Asterisk problem in Sieve Script
Hello, with the, there is not any match ... '.*' would be a regular expression matching anything, but sieve filter language doesn't support regular expressions, or does it? I did a workaround on the other side, I did a reverse DNS lookup, and most times there is a DNS name instead of an IP address, and with this I didn't find any sample that doesn't work ... Greetings, Walter On 17.05.2017 14:41, Eric W. Bates wrote: Try: elsif header :matches "subject" "[proxy] File-URL (.*) detected" On 5/16/2017 9:53 AM, Walter H. via Info-cyrus wrote: Hello, I've got the following in the sieve script elsif header :matches "subject" "[proxy] File-URL (*) detected" { fileinto "INBOX._Info.ftpFileURLs"; } else { fileinto "INBOX._Info"; } when the subject is e.g. [proxy] File-URL (Media-PC) detected then the if is true, this correct when the subject is e.g. [proxy] File-URL (2001:dead:beef:123::1234:5678) detected then the if is also true, this is correct when there is an IPv4 address e.g. [proxy] File-URL (192.168.0.122) detected this matches also, but why doesn't the following match: [proxy] File-URL (2001:dead:beef:123::12:3456:7890) detected [proxy] File-URL (2001:dead:beef:123:0:12:3456:7890) detected Thanks, Walter smime.p7s Description: S/MIME Cryptographic Signature Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Re: Asterisk problem in Sieve Script
Try: elsif header :matches "subject" "[proxy] File-URL (.*) detected" On 5/16/2017 9:53 AM, Walter H. via Info-cyrus wrote: > Hello, > > I've got the following in the sieve script > > elsif header :matches "subject" "[proxy] File-URL (*) detected" > { > fileinto "INBOX._Info.ftpFileURLs"; > } > else > { > fileinto "INBOX._Info"; > } > > when the subject is e.g. > [proxy] File-URL (Media-PC) detected > then the if is true, this correct > > when the subject is e.g. > [proxy] File-URL (2001:dead:beef:123::1234:5678) detected > then the if is also true, this is correct > > when there is an IPv4 address e.g. > [proxy] File-URL (192.168.0.122) detected > this matches also, > > but why > doesn't the following match: > > [proxy] File-URL (2001:dead:beef:123::12:3456:7890) detected > [proxy] File-URL (2001:dead:beef:123:0:12:3456:7890) detected > > Thanks, > Walter > > > Cyrus Home Page: http://www.cyrusimap.org/ > List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ > To Unsubscribe: > https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus > -- Clark 159a, MS 46 508/289-3112 smime.p7s Description: S/MIME Cryptographic Signature Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Asterisk problem in Sieve Script
Hello, I've got the following in the sieve script elsif header :matches "subject" "[proxy] File-URL (*) detected" { fileinto "INBOX._Info.ftpFileURLs"; } else { fileinto "INBOX._Info"; } when the subject is e.g. [proxy] File-URL (Media-PC) detected then the if is true, this correct when the subject is e.g. [proxy] File-URL (2001:dead:beef:123::1234:5678) detected then the if is also true, this is correct when there is an IPv4 address e.g. [proxy] File-URL (192.168.0.122) detected this matches also, but why doesn't the following match: [proxy] File-URL (2001:dead:beef:123::12:3456:7890) detected [proxy] File-URL (2001:dead:beef:123:0:12:3456:7890) detected Thanks, Walter Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus