Hi,

I am experiencing problems with the delivery of mails into subfolders. I 
am using:

- Postfix Release 20010228
- cyrus-sasl 1.5.24
- cyrus-imapd 2.0.13

on a SunOS 5.7 system.

When a user has defined some filter rules in his client that move mails 
with particular subjects to certain subfolders, cyrus-imapd delivers 
still only to the INBOX. The ACL's are set to allow everything (well at 
least to my knowledge). I took a look into the source code and played a 
little bit with the ACL override feature in "lmtpd.c". I changed the 
acloverride value in the function "deliver" in one call to the function 
deliver_mailbox from 0 to 1, see code segement below.

..
#endif /* USE_SIEVE */

            if (r && plus &&
                strlen(rcpt) + strlen(plus) + 30 <= MAX_MAILBOX_PATH) {
                /* normal delivery to + mailbox */
                strcpy(namebuf, "INBOX.");
                strcat(namebuf, plus);
                
                r = deliver_mailbox(msgdata->data,
                                    &mydata.stage,
                                    msgdata->size,
                                    NULL, 0,
                                    mydata.authuser, mydata.authstate,
                                    msgdata->id, rcpt, mydata.notifyheader,
                                    namebuf, quotaoverride, 1); < CHANGE
            }
..

After this small patch the delivery into subfolders works.
Now my question: Does anybody else have experienced the same problems? 
Am I doing something seriously wrong when I apply this patch?
I guess, the ACL's of the mailboxes are not set properly otherwise a 
delivery into subfolders should work.
Does anybody have a better idea of solving this problem?

Thanks in advance

        Ralf

Reply via email to