[Dovecot] enable of "imapflags", possible patch (was Re: libsieve problems / wishes)
Steffen Kaiser
skdovecot at smail.inf.fh-brs.de
Tue May 26 10:39:58 EEST 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thu, 12 Feb 2009, Stephan Bosch wrote:
> Ok, I finished implementing the 'imapflags' variant of the imap4flags
> extension. It turned out to be relatively easy to provide support for the
> obsolete mark/unmark commands, so I added those as well. Note that the
> imapflags extension is not available to the users by default: it needs to be
> enabled explicitly using the sieve_extensions setting (as explained in the
> INSTALL file).
I was fighting how to enable the "imapflags" alias.
src/lib-sieve/sieve-extensions.c looks like you have to enumerate all
enabled extensions, everything else gets disabled.
I made an approach to make life easier by to allow relative changes. At
least I can now use
sieve_extenions = +imapflags
for my Horde/Ingo scripts to work. I did not tested anything else. (The
most complex script requires:
* Required extensions:
0: comparator-i;ascii-numeric (11)
1: fileinto (5)
2: imapflags (21)
3: relational (12)
4: vacation (9)
5: imap4flags (14)
)
The idea is that if there is at least one extension prefixed with '+' or
'-', all listed extensions without such modifier are assumed as to have
'+' as well. And that the state of extensions not listed is kept
untouched.
sieved missed '-x <ext>' in the help text.
Bye,
- --
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBShuc0HWSIuGy1ktrAQJwIwf9HwFeSWCxZuCSDsLW2xtnwk9pMuVQvORm
TVRL26c3g4N3APgz7AUrNPydPrx60U1kdqKtQneeZTCQPkXMOyPRPciepUv2TKYW
lWeK/rVkWsdQQ0P2OOHPRjtanmf6/a0mfU0xhs6hF9K4fnj9bGnKpLfKEvpuogf4
wS1twUcOQGXdd+8aDydoaNGLVV8biH+V82fWL2Q5qxYffXOVhSiaFe7IyNnHrf/j
LG4ePh48HMiNmDyf2Y1V2FACFmDICjaLZW7T6yilx2T6NaJXQWTKmagtsREvEKUC
c8+XbZgknWZD8mvgz/9q2mAEzsXpnVIc/27iN7k4IQHDMJPfO3OOtw==
=TYxA
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: relative_sieve_extensions.diff.bz2
Type: application/octet-stream
Size: 1104 bytes
Desc:
Url : http://dovecot.org/pipermail/dovecot/attachments/20090526/561792aa/attachment-0001.obj
More information about the dovecot
mailing list