Rich McAllister
2008-Aug-28 22:05 UTC
[Dovecot] Sieve fileinto a subfolder fails -- more info, possible workaround
After looking at the way Maildir represents subfolders, I changed
the sieve line from
fileinto "Lists/NCCC";
to
fileinto "Lists.NCCC";
and now it files into the NCCC subfolder of Lists as I wanted. I'm
not sure whether this is the expected behavior or just an accident
that plugging that string into the file name happens to result in the right
name.
I haven't tried, but if it's just passing the fileinto argument along
with minimal inspection, I'm afraid the answer might be use
"Lists/NCCC" if mail is in mbox format but "Lists.NCCC" if
mail is in
Maildirs, and it certainly seems that users editing their sieve
scripts shouldn't have to know that.
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
Timo Sirainen
2008-Aug-29 05:29 UTC
[Dovecot] Sieve fileinto a subfolder fails -- more info, possible workaround
On Thu, 2008-08-28 at 15:05 -0700, Rich McAllister wrote:> After looking at the way Maildir represents subfolders, I changed > the sieve line from > > fileinto "Lists/NCCC"; > > to > > fileinto "Lists.NCCC"; > > and now it files into the NCCC subfolder of Lists as I wanted. I'm > not sure whether this is the expected behavior or just an accident > that plugging that string into the file name happens to result in the right > name. > > I haven't tried, but if it's just passing the fileinto argument along > with minimal inspection, I'm afraid the answer might be use > "Lists/NCCC" if mail is in mbox format but "Lists.NCCC" if mail is in > Maildirs, and it certainly seems that users editing their sieve > scripts shouldn't have to know that.Change your namespace configuration to use '/' separator and it's always '/'. http://wiki.dovecot.org/Namespaces -------------- 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/20080829/fa3b9011/attachment-0002.bin>