[Dovecot] Sieve fileinto a subfolder fails
I'm using Dovecot 1.0.10 on Ubuntu 8.04, using the packages from the distro; exim4 is my MTA and it's configured according to the instructions in the wiki, everything is working fine for delivery into the Maildir INBOX via Dovecot's LDA and reading mail via IMAP using Thunderbird.
My habit on previous mail systems was to create a Lists folder and subfolders under Lists for each mailing list I subscribe to. I tried to use Dovecot sieve to sort mail into the folders with sieve filters like
require "fileinto"; if header :contains "Subject" "[NCCC]" { fileinto "Lists/NCCC"; } else { keep; }
I created Lists/NCCC via Thunderbird (so I could set the "check this folder for new mail property") but when Dovecot tries to deliver into the folder, I get the log message
msgid=<...>: Couldn't open mailbox Lists/NCCC: Invalid mailbox name
If I use just
fileinto "NCCC";
it works fine, going into a NCCC folder not in a subfolder as expected.
Is there some other syntax for specifying folder/subfolder names in Dovecot sieve, or do I just have to live with the folders all at the top level? Rich
dovecot -n shows:
# 1.0.10: /etc/dovecot/dovecot.conf log_timestamp: %Y-%m-%d %H:%M:%S login_dir: /var/run/dovecot/login login_executable: /usr/lib/dovecot/imap-login mail_privileged_group: mail mail_location: maildir:/arda/export/mail/%u/Maildir auth default: passdb: driver: pam userdb: driver: passwd
Rich McAllister wrote:
I'm using Dovecot 1.0.10 on Ubuntu 8.04, using the packages from the distro; exim4 is my MTA and it's configured according to the instructions in the wiki, everything is working fine for delivery into the Maildir INBOX via Dovecot's LDA and reading mail via IMAP using Thunderbird.
My habit on previous mail systems was to create a Lists folder and subfolders under Lists for each mailing list I subscribe to. I tried to use Dovecot sieve to sort mail into the folders with sieve filters like
require "fileinto"; if header :contains "Subject" "[NCCC]" { fileinto "Lists/NCCC"; } else { keep; }
I created Lists/NCCC via Thunderbird (so I could set the "check this folder for new mail property") but when Dovecot tries to deliver into the folder, I get the log message
msgid=<...>: Couldn't open mailbox Lists/NCCC: Invalid mailbox name
Is there some other syntax for specifying folder/subfolder names in Dovecot sieve, or do I just have to live with the folders all at the top level
Try fileinto "Lists.NCCC", the "." is the default folder separator.
It should be possible to change it to a "/" with namespaces, but it would make a cosmetic change, and judging by other posts in the list, it seems to cause a lot more trouble than benefits. :-)
-- My godda bless, never I see sucha people. -- Signor Piozzi, quoted by Cecilia Thrale
Eduardo M KALINOWSKI eduardo@kalinowski.com.br http://move.to/hpkb
"EK" == Eduardo M KALINOWSKI <eduardo@kalinowski.com.br> writes:
EK> Try fileinto "Lists.NCCC", the "." is the default folder
EK> separator.
EK> It should be possible to change it to a "/" with namespaces, but
EK> it would make a cosmetic change, and judging by other posts in the
EK> list, it seems to cause a lot more trouble than benefits. :-)
Though I don't think this will work with 1.0 deliver since it doesn't understand namespaces.
IMHO the sieve spec missed a trick in this respect. Given that there are many other places in sieve where a list of strings can be supplied as arguments it seems like it would be obvious that
fileinfo ["foo" "bar"];
could carry the meaning of file into the "bar" subfolder of "foo" and just short circuit the "what's the hierarchy separator?" question.
Maybe this was considered during the standardization process and rejected.
participants (3)
-
Eduardo M KALINOWSKI
-
pod
-
Rich McAllister