[Dovecot] Fileinto to a maildir with sieve
Hello,
Is it possible to specify a maildir to a fileinto rule in a sieve file? A simple:
require "fileinto";
if header :contains "X-Spam-Flag" "YES" { fileinto ".Junk"; }
does'nt work becaise .Junk is a directoty, not a mailbox... See my dovecot-deliver log:
Couldn't open mailbox .Junk: Invalid mailbox name Mar 12 09:52:38 helm deliver(nicolas@nicoelro.net): sieve runtime error: Fileinto: Generic Error
Is it possible to specify a directory (maildir)?
Thanks.
- Nicolas.
Anton Yuzhaninov a écrit :
On 12.03.2008 12:04, Nicolas Letellier wrote:
Is it possible to specify a maildir to a fileinto rule in a sieve file? A simple:
require "fileinto";
if header :contains "X-Spam-Flag" "YES" { fileinto ".Junk"; }
try
fileinto "Junk";
OMG. It's works. So, never put a dot in the name of the directory :-)
Thanks.
- Nicolas.
On 12.03.2008 13:00, Nicolas Letellier wrote:
Anton Yuzhaninov a écrit :
On 12.03.2008 12:04, Nicolas Letellier wrote:
Is it possible to specify a maildir to a fileinto rule in a sieve file? A simple:
require "fileinto";
if header :contains "X-Spam-Flag" "YES" { fileinto ".Junk"; }
try
fileinto "Junk";
OMG. It's works. So, never put a dot in the name of the directory :-)
But if nested folders in a maildir used, dot should be used, e. g.
fileinto "maillists.dovecot";
-- WBR, Anton Yuzhaninov Rambler Mail
participants (2)
-
Anton Yuzhaninov
-
Nicolas Letellier