* unit tests updated

* some permission issues fixed

see #204
This commit is contained in:
Antoine Nguyen
2012-04-09 20:07:09 +02:00
parent ec0904cb8b
commit a4b5ebafd9
8 changed files with 189 additions and 104 deletions
+3 -1
View File
@@ -133,7 +133,7 @@ class IMAPconnector(object):
self.port = int(parameters.get_admin("IMAP_PORT"))
status, msg = self.login(user, password)
if not status:
raise Exception(msg)
raise WebmailError(msg)
def _cmd(self, name, *args, **kwargs):
"""IMAP command wrapper
@@ -219,6 +219,8 @@ class IMAPconnector(object):
def login(self, user, passwd):
import socket
try:
secured = parameters.get_admin("IMAP_SECURED")
if secured == "yes":