I guess it depends on what your Sieve code looks like? Or does it give the same error even if your script is only "keep;"?
It doesn't depend on the script. Even the simplest script "stop;" gives this error. I added two debug strings to cmusieve_deliver_mail in cmusieve-plugin.c:
if (getenv("DEBUG") != NULL) { i_info("cmusieve: Using mailbox: %s", mailbox); i_info("cmusieve: Using username: %s", username); i_info("cmusieve: Using sieve path: %s", script_path); }
and here are some more details:
deliver(mok@k...): Info: cmusieve: Using mailbox: test deliver(mok@k...): Info: cmusieve: Using username: mok@k.. deliver(mok@k..): Info: cmusieve: Using sieve path: /home/vmail/.dovecot.sieve deliver(mok@k..): Info: cmusieve: Executing script /home/vmail/.dovecot.sievec deliver(mok@k..): Info: sieve runtime error: Keep: Generic Error
That is, if I send a message to mok+test@k.., in cmusieve_deliver_mail() the name of the mailbox is test. For normal address mok@k.. it is INBOX:
deliver(mok@k..): Info: cmusieve: Using mailbox: INBOX deliver(mok@k..): Info: cmusieve: Using username: mok@k..
Tested with dovecot 1.0.3 and dovecot-sieve 1.0.2.
Regards, Gregory