Re: [Dovecot] System users, mbox format and global ACLs
Le 8 juil. 09 à 04:53, Timo Sirainen a écrit : [...] http://hg.dovecot.org/dovecot-1.2/rev/f3c6cabae3af http://hg.dovecot.org/dovecot-1.2/rev/4c8175452173 [...] [...]http://hg.dovecot.org/dovecot-1.2/rev/bf4f542ec6df [...] http://hg.dovecot.org/dovecot-1.2/rev/5d1a52e8d320 Ouch! After having spent several days on that one, I guessed it was far beyond me; but I still was too optimistic. ;-) Thanks, Axel
Re: [Dovecot] System users, mbox format and global ACLs
Le 8 juil. 09 à 04:54, Timo Sirainen a écrit : On Tue, 2009-07-07 at 22:53 -0400, Timo Sirainen wrote: I had hoped no one would ever try to use ACLs with mbox format.. I don't think I want to try to make it work. Oops, forgot to delete the second sentence. I did it anyway after some internal struggling. :) Really sorry for having occasioned so much trouble... As a miserable attempt to diminish my culpability: since various pages in the wiki explicitely mention the use of ACLs with the mbox format and the CONTROL setting, I first thought in all innocence that I was doing something wrong, then tended to believe that some slight glitch had been introduced with 1.2, and then... That said, I really think it's a great thing to keep the mbox format on a par with the other ones[1]. Even if, of course, it comes with its limitations. So, once again, many thanks. Axel [1] As Mark would say: Compatibility, compatibility ;-)
Re: [Dovecot] System users, mbox format and global ACLs
I had hoped no one would ever try to use ACLs with mbox format.. I don't think I want to try to make it work. And indeed, a file named dovecot-acl-list has now been created under the _mailboxes directory: .. Is such a file supposed to be created there? It's created to mailbox root directory. With all formats except mbox this is fine. It can't be created to control directory, because it's supposed to be shared and different users may have different control directories. But I suppose with mbox it's better to create it to control dir rather than have it show up as a mailbox or use some other weird location for it. http://hg.dovecot.org/dovecot-1.2/rev/f3c6cabae3af http://hg.dovecot.org/dovecot-1.2/rev/4c8175452173 Why does the server seem to expect to find a temp file under ~/ _mboxesctrl/.imap? As well as, more surprisingly, under /usr/local/etc/ dovecot-acls? Because it just created a .temp. file and then thinks it's a mailbox. This fixes it: http://hg.dovecot.org/dovecot-1.2/rev/bf4f542ec6df And then finally also a caching fix: http://hg.dovecot.org/dovecot-1.2/rev/5d1a52e8d320 signature.asc Description: This is a digitally signed message part
Re: [Dovecot] System users, mbox format and global ACLs
On Tue, 2009-07-07 at 22:53 -0400, Timo Sirainen wrote: I had hoped no one would ever try to use ACLs with mbox format.. I don't think I want to try to make it work. Oops, forgot to delete the second sentence. I did it anyway after some internal struggling. :) signature.asc Description: This is a digitally signed message part
Re: [Dovecot] System users, mbox format and global ACLs
Le 28 juin 09 à 18:26, Axel Luttgens a écrit : [...] Is such a file supposed to be created there? If yes, why? I would have tended to believe that it is more a server internal matter than a name having to appear in the namespace. [...] Re-reading the above, I thought it could be worth to somewhat elaborate. Once the file ~/_mailboxes/dovecot-acl-list has been created, it in fact becomes a SELECTable mailbox! And it is impossible to get rid of it, as it is immediately re-created upon a LIST command: # telnet 127.0.0.1 imap Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE AUTH=PLAIN] Dovecot ready. a1 login testuser ** a1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH] Logged in a2 list % * LIST (\NoInferiors \UnMarked) / dovecot-acl-list * LIST (\NoInferiors \UnMarked) / Sent * LIST (\HasNoChildren \UnMarked) / INBOX a2 OK List completed. a3 delete dovecot-acl-list a3 OK Delete completed. a4 list % * LIST (\NoInferiors \UnMarked) / dovecot-acl-list * LIST (\NoInferiors \UnMarked) / Sent * LIST (\HasNoChildren \UnMarked) / INBOX a4 OK List completed. a5 select dovecot-acl-list * FLAGS (\Answered \Flagged \Deleted \Seen \Draft) * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted. * 0 EXISTS * 0 RECENT * OK [UIDVALIDITY 1] UIDs valid * OK [UIDNEXT 1] Predicted next UID * OK [HIGHESTMODSEQ 1] a5 OK [READ-WRITE] Select completed. a6 logout * BYE Logging out a6 OK Logout completed. Connection closed by foreign host. Axel