reg9009
2009-Jun-28 13:04 UTC
[Dovecot] Dovecot 1.2rc7 / Sieve Plugin problem / Namespaces
Hi, I've got a problem with Dovecot 1.2rc7 and a Sieve script which should store eMails in a subfolder. It always fails with Jun 28 14:56:43 deliver(): Error: sieve: msgid=<4A47687D.30903 at some.domain>: failed to store into mailbox '': Invalid mailbox name Jun 28 14:56:43 deliver(): Error: sieve: script /home/dovecot/sieve/info/dovecot.sieve failed with unsuccessful implicit keep This is with dovecot-libsieve. Same happens with cmusieve, though the message is slightly different: Jun 28 14:55:39 deliver(): Info: cmusieve: Executing script /home/dovecot/sieve/info/dovecot.sievec Jun 28 14:55:39 deliver(): Info: sieve runtime error: Keep: Generic Error Sieve script: if header :comparator "i;ascii-casemap" :contains "X-Spam-Level" "*****" { fileinto "INBOX/Junk"; stop; } I tried "INBOX.Junk", "Junk", etc., but no success. Namespace section in dovecot.conf: namespace private { separator = / prefix = INBOX/ inbox = yes #hidden = yes #list=yes } Same configuration works with cmusieve and Dovecot 1.1.16. I assume some problems with the namespace separator. Anyone got any ideas or got sieve running with namespace separator "/" and prefix "INBOX"? Regards, Sebastian
Timo Sirainen
2009-Jun-30 07:40 UTC
[Dovecot] Dovecot 1.2rc7 / Sieve Plugin problem / Namespaces
On Sun, 2009-06-28 at 15:04 +0200, reg9009 wrote:> I've got a problem with Dovecot 1.2rc7 and a Sieve script which should > store eMails in a subfolder. It always fails with > > Jun 28 14:56:43 deliver(): Error: sieve: > msgid=<4A47687D.30903 at some.domain>: failed to store into mailbox '': > Invalid mailbox name..> if header :comparator "i;ascii-casemap" :contains "X-Spam-Level" "*****" { > fileinto "INBOX/Junk"; > stop; > }Have you tried if it works when you run deliver -m INBOX/Junk? That would tell me if the problem is with my or Stephan's code. :) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20090630/6405cf8b/attachment-0002.bin>