[Dovecot] Dovecot Sieve capabilties - regex
Hi
Does the Dovecot Sieve implementation support the regex capability?
I get the following error when I try to add it:
Jan 3 16:07:30 absinthe deliver(james): sieve parse error: line 1: Unsupported features in require line
The line is:
require "regex";
Thanks
James Turnbull
James Turnbull james@lovedthanlost.net
Author of Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/)
Hardening Linux (http://www.amazon.com/gp/product/1590594444/)
PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0C42DF40)
On 3.1.2007, at 8.20, James Turnbull wrote:
Does the Dovecot Sieve implementation support the regex capability?
I think it does. Do you have ENABLE_REGEX defined i dsieve-config.h?
If you do, then.. Well, I don't know. I've just copied the Sieve code
from Cyrus, so you could try finding how the regex support is
supposed to work with Cyrus.
Timo Sirainen wrote:
On 3.1.2007, at 8.20, James Turnbull wrote:
Does the Dovecot Sieve implementation support the regex capability?
I think it does. Do you have ENABLE_REGEX defined i dsieve-config.h? If you do, then.. Well, I don't know. I've just copied the Sieve code from Cyrus, so you could try finding how the regex support is supposed to work with Cyrus.
It is defined as:
/* Do we have a decent regex library? */ #define ENABLE_REGEX
And the only errors in the make are:
sieve-lex.l:212: warning: no previous prototype for 'sievelex' sieve-lex.l: In function 'sievelex': sieve-lex.l:122: warning: label 'find_rule' defined but not used sieve-lex.l: At top level: sieve-lex.l:1007: warning: 'yy_flex_realloc' defined but not used
My system is a Red Hat Fedora Core 6 box - Linux absinthe.lovedthanlost.net 2.6.18-1.2869.fc6 #1 SMP Wed Dec 20 14:51:34 EST 2006 x86_64 x86_64 x86_64 GNU/Linux
Dovecot is 1.0RC15 and Dovecot-Sieve 1.0.
Regards
James Turnbull
-- James Turnbull james@lovedthanlost.net
Author of Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/)
Hardening Linux (http://www.amazon.com/gp/product/1590594444/)
PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0C42DF40)
Timo Sirainen wrote:
On 3.1.2007, at 8.20, James Turnbull wrote:
Does the Dovecot Sieve implementation support the regex capability?
I think it does. Do you have ENABLE_REGEX defined i dsieve-config.h? If you do, then.. Well, I don't know. I've just copied the Sieve code from Cyrus, so you could try finding how the regex support is supposed to work with Cyrus.
I get the same error when I add the "variables" option in a require line:
Jan 10 23:05:54 absinthe deliver(james): sieve parse error: line 3: Unsupported features in require line
So it is now the regex and variables functions that fail. I think there is an issue here.
Regards
James Turnbull
-- James Turnbull james@lovedthanlost.net
Author of Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/)
Hardening Linux (http://www.amazon.com/gp/product/1590594444/)
PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0C42DF40)
James Turnbull wrote:
I get the same error when I add the "variables" option in a require line:
Jan 10 23:05:54 absinthe deliver(james): sieve parse error: line 3: Unsupported features in require line
So it is now the regex and variables functions that fail. I think there is an issue here.
According to this page:
http://wiki.fastmail.fm/wiki/index.php/SieveExtensionsSupportMatrix
the 'variables' option may not be supported yet (it's marked as [i]ntended to be supported in CMU Cyrus). 'regex' is supported, but it may be part of the base install (hence you can't "require" it).
That page has an enormous amount of useful information linked from it, so that alone may help you...
HTH
John
-- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Blvd Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5747
John Peacock wrote:
the 'variables' option may not be supported yet (it's marked as [i]ntended to be supported in CMU Cyrus). 'regex' is supported, but it may be part of the base install (hence you can't "require" it).
Yes - I tested for 'regex' without the require statement. I get the following error:
Jan 11 19:32:52 absinthe deliver(james): sieve parse error: line 14: regex require missing
Line 14 being the :regex statement.
Does anyone have regex working or is potentially willing to test it?
Many thanks
James Turnbull
-- James Turnbull james@lovedthanlost.net
Author of Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/)
Hardening Linux (http://www.amazon.com/gp/product/1590594444/)
PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0C42DF40)
I worked out a work-around to my problem of the regex capability not working. It seems the make of libsieve is not recognizing that ENABLE_REGEX is set. Though not sure why - dsieve-config.h seems to be included. I forced libsieve to compile with REGEX by removing the #ifdef. The require "regex" now works.
Regards
James Turnbull
-- James Turnbull james@lovedthanlost.net
Author of Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/)
Hardening Linux (http://www.amazon.com/gp/product/1590594444/)
PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0C42DF40)
On Tue, 2007-01-16 at 20:48 +1100, James Turnbull wrote:
I worked out a work-around to my problem of the regex capability not working. It seems the make of libsieve is not recognizing that ENABLE_REGEX is set. Though not sure why - dsieve-config.h seems to be included. I forced libsieve to compile with REGEX by removing the #ifdef. The require "regex" now works.
dsieve-config.h is never included, on purpose.. I moved the defines into compiler options at least for now. So fixed in CVS, and I'll make 1.0.1 release also now.
participants (3)
-
James Turnbull
-
John Peacock
-
Timo Sirainen