On Wednesday, March 13, 2013 03:28 PM CDT, "Donny Brooks" dbrooks@mdah.state.ms.us wrote:
On Wednesday, March 13, 2013 02:43 PM CDT, Robert Schetterer rs@sys4.de wrote:
Am 13.03.2013 19:51, schrieb Donny Brooks:
I am trying to get the advanced functionality of managesieve working for our users. If this is not the proper place to ask this, please just say so. I have enabled sieve and it works just fine for basic moving messages to folders. However the problem comes in to play when a user selects something like "delete" or "mark as read" in the filter. It just simply does not do that function. I have installed the imapflags and imap4flags and added the needed parts to the dovecot config but it still does not seem to work. We are running Centos 6.3 with dovecot-2.0.9-2.el6_1.1.x86_64 and dovecot-pigeonhole-2.0.9-2.el6_1.1.x86_64 installed. What could I be missing to make this work?
try
http://wiki2.dovecot.org/Pigeonhole/Sieve/Configuration?highlight=%28flags%2...
sieve_extensions =
Which Sieve language extensions are available to users. By default,
all supported extensions are available, except for deprecated extensions, extensions that require explicit configuration or those that are still under development. Some system administrators may want to disable certain Sieve extensions or enable those that are not available by default. All supported extensions are listed here. Normally, all enabled extensions must be listed for this setting, but starting with> Sieve version 0.1.7, this setting can use '+' and '-' to specify differences relative to the default. For example sieve_extensions => +imapflags will enable the deprecated imapflags extension in addition to all extensions enabled by default.
...
From CMUSieve (Dovecot v1.0/v1.1)
For the most part, migration from CMUSieve to Pigeonhole Sieve is just a matter of changing the used plugin name from cmusieve to sieve in the> mail_plugins option in the protocol lda section of the config file (as explained above). However, there are a few important differences in the supported Sieve language features:
The imapflags extension is now called imap4flags. The CMUSieve
implementation is based on an old draft specification that is not completely compatible with the new version. Particularly, the mark and unmark commands were removed from the new specification. For backwards compatibility, support for the old imapflags extension can be enabled> using the sieve_extensions setting (as explained above). This is
disabled by default.
Best Regards MfG Robert Schetterer
-- [*] sys4 AG
http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstraße 15, 81669 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer Aufsichtsratsvorsitzender: Joerg Heidrich
Right, my line in /etc/dovecot/conf.d/90-sieve.conf looks like this:
sieve_extensions = +notify +imap4flags +imapflags
I have tried it without the +imapflags, leaving only the first two, also with same results. Part of my sieve script that has the "mark as seen" is as follows:
if anyof (header :is "subject" "Check dd") { fileinto "Junk"; addflag "\\Seen"; }
When I send myself an email from a different account with the subject "Check dd" it is properly filed in the Junk folder but it still remains unseen. Any ideas?
--
Donny B.
I think I see part of my problem. I am using postfix and dovecot. So in the postfix main.cf I have this:
mailbox_command = /usr/libexec/dovecot/deliver -a "$RECIPIENT"
While that was fine when we were on the 1.X branch on our old mail server I think it needs to be changed to something more like this:
mailbox_command = /usr/libexec/dovecot/dovecot-lda -f "$SENDER" -a "$RECIPIENT"
Ideas?
--
Donny B.