subscribing to folders
Alexander Brill
kiowa at project23.no
Wed Jul 28 10:30:11 EDT 2004
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 <kiowa at project23.no>
http://www.project23.no
PGP-key: http://www.nettstudio.no/firma/Library/PGP/alex_pgp/view
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.andrew.cmu.edu/mailman/private/info-cyrus/attachments/20040728/f5cfab82/attachment.bin
More information about the Info-cyrus
mailing list