imaplib: setquota and proxyauth errors

  • Thread starter Wolfgang Kohnen
  • Start date
W

Wolfgang Kohnen

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:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,142
Latest member
arinsharma
Top