[Dovecot] dovecot-sieve and LMT

A.L.E.C alec at alec.pl
Tue Jun 19 10:51:56 EEST 2012


On 06/18/2012 07:44 PM, Martin Weil wrote:
> require "fileinto";
> if header :contains ["subject"] ["Test"] {
>   fileinto ".Folder1";
> } else {
>   fileinto ".Folder2";
> }
> 
> Of course Folder1 and Folder2 do exist. (/var/mail/vmail/domain.com/user/mail/.Folder1 and Folder2)

Don't add a dot on the beggining of the folder name in sieve scripts.
Use fileinto :create "folder" or lda_mailbox_autocreate option to create
non-existing folders.

-- 
Aleksander 'A.L.E.C' Machniak
LAN Management System Developer [http://lms.org.pl]
Roundcube Webmail Developer  [http://roundcube.net]
---------------------------------------------------
PGP: 19359DC1 @@ GG: 2275252 @@ WWW: http://alec.pl


More information about the dovecot mailing list