[Dovecot] imapc and imap_acl
Hello (Timo),
yes, I know... maybe it's a bit far fetched, but I do have a use case. Would it be (reasonably easily) possible to implement IMAP ACL support for "imported" imapc namespaces/mailboxes? There is no local directory (like with the virtual plugin) yet...
Greetings, Lutz
-- Lutz Preßler Lutz.Pressler@SerNet.DE http://www.SerNet.DE/ SerNet Service Network GmbH, Bahnhofsallee 1b, D-37081 Göttingen Tel.: +49-551-370000-2, FAX: +49-551-370000-9 AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
On 13.9.2011, at 19.12, Lutz Preßler wrote:
yes, I know... maybe it's a bit far fetched, but I do have a use case. Would it be (reasonably easily) possible to implement IMAP ACL support for "imported" imapc namespaces/mailboxes? There is no local directory (like with the virtual plugin) yet...
You mean you'd want local ACLs that apply to imapc mailboxes? I think that should work. For example if you set:
mail_location = imapc:~/imapc
Then for mailbox foo/bar the ACL file should be in ~/imapc/.foo.bar/dovecot-acl
"Proxying" remote IMAP ACLs isn't possible and I'm not sure how that could be nicely implemented.
On Di, 13 Sep 2011, Timo Sirainen wrote:
On 13.9.2011, at 19.12, Lutz Preßler wrote:
yes, I know... maybe it's a bit far fetched, but I do have a use case. Would it be (reasonably easily) possible to implement IMAP ACL support for "imported" imapc namespaces/mailboxes? There is no local directory (like with the virtual plugin) yet...
You mean you'd want local ACLs that apply to imapc mailboxes? Yes, exactly. Great for "integrating" legacy IMAP servers without e.g. ACL support. I think that should work. For example if you set:
mail_location = imapc:~/imapc Oh, had not realized that a path argument is possible for imapc:. There are even index file then...
Then for mailbox foo/bar the ACL file should be in ~/imapc/.foo.bar/dovecot-acl It almost works: Sep 13 18:37:58 hhh dovecot: imap(4482, uuu): Error: file_dotlock_open(/home/uuu/Maildir/gmail/.[Gmail].Alle Nachrichten /dovecot-acl) failed: No such file or directory After manually creating the ".[Gmail].Alle Nachrichten" directory, SETACL succeeds.
"Proxying" remote IMAP ACLs isn't possible and I'm not sure how that could be nicely implemented. Would surely have it's use, too (but not here at the moment).
Thanks, Lutz
participants (2)
-
Lutz Preßler
-
Timo Sirainen