On Tue, 2004-07-27 at 17:42, Alexander Brill wrote: > On Tue, 2004-07-27 at 16:26, Luca Olivetti wrote: > > Alexander Brill wrote: > > > > > On Fri, 2004-07-23 at 15:46, Rob Siemborski wrote: > > > > > >>On Thu, 22 Jul 2004, Alexander Brill wrote: > > >> > > >> > > >>>Is it possible to force subscribtion of a folder to another user by > > >>>using the admin-user? I couldn't find any info about it in the docs and > > >>>RFCs. > > >> > > >>If you use proxy authentication, then you can authenticate as the admin > > >>but authorize as the user, and then subscribe them to the folder. > > > > > > > > > Could you reference me to some rfc's or other docs on the subject? I > > > tried the PROXYAUTH-command (comes with python imaplib), but it wasn't > > > recognized as a command on my server. > > > > PROXYAUTH is a non standard command: > > http://www.washington.edu/imap/listarch/2000/msg00215.html > > (follow the thread). > > > > The right thing to do is use the authenticate method, unfortunately it's > > not implemented in python imaplib. I don't understand why the imaplib > > developer(s) implemented the nonstandard command instead of the standard > > one. > > > > The newest python imaplib has authenticate implemented, finally. But I > have to wrap it around TLS as well, so I'll have to look into that. > There goes my quick and dirty hack to force people to subscribe to a > folder.
Ok, I wrote an extension to python imaplib to handle starttls, if more are interested you can find it here: http://projects.brill.no/python/tlsimap.py Example of usage: import imaptls imap = imaptls.IMAP4('hostname') imap.starttls(keyfile=None, certfile=None) # create a simple function for our PLAIN login def sendAuth(response): return "user\0auth\0password" typ, data = imap.authenticate("PLAIN", sendAuth) -- Alexander Brill <[EMAIL PROTECTED]> http://www.project23.no PGP-key: http://www.nettstudio.no/firma/Library/PGP/alex_pgp/view
signature.asc
Description: This is a digitally signed message part