469,593 Members | 1,970 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,593 developers. It's quick & easy.

imaplib: setquota and proxyauth errors

Hello out there!

I am new to python and so far I like it a lot. Now I want to create
some IMAP mailboxes on my cyrus imapd, with quotas and each user should
be subscribed to her/his own spam folder. This is what I've attempted:
import imaplib, getpass
cyrus = imaplib.IMAP4()
cyrus.login("cyrus", getpass.getpass()) Password:
('OK', ['User logged in']) cyrus.create("user/test0") ('OK', ['Completed']) cyrus.setquota("user/test0", 123456) Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.3/imaplib.py", line 633, in setquota
typ, dat = self._simple_command('SETQUOTA', root, limits)
File "/usr/lib/python2.3/imaplib.py", line 1000, in _simple_command
return self._command_complete(name, self._command(name, *args))
File "/usr/lib/python2.3/imaplib.py", line 837, in _command_complete
raise self.error('%s command error: %s %s' % (name, typ, data))
imaplib.error: SETQUOTA command error: BAD ['Invalid quota list in
Setquota']

What am I doing wrong here? And here the subscribe thing: I tried the
proxyauth() method, 'cause I don't want cyrus to subscribe to test0's
spam box but test0 himself. Maybe I've completely misunderstood this
method, no?
cyrus.create("user/test0/spam") ('OK', ['Completed']) cyrus.proxyauth("test0")

Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.3/imaplib.py", line 564, in proxyauth
return self._simple_command('PROXYAUTH', user)
File "/usr/lib/python2.3/imaplib.py", line 1000, in _simple_command
return self._command_complete(name, self._command(name, *args))
File "/usr/lib/python2.3/imaplib.py", line 837, in _command_complete
raise self.error('%s command error: %s %s' % (name, typ, data))
imaplib.error: PROXYAUTH command error: BAD ['Unrecognized command']


I am lost. I can't even tell, if these error come from cyrus or from python.

TIA,
Wollie
Jul 19 '05 #1
0 1510

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Bill Sneddon | last post: by
1 post views Thread by Colin Brown | last post: by
1 post views Thread by Raghul | last post: by
reply views Thread by aspineux | last post: by
4 posts views Thread by gregpinero | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.