(self)
Set Imap settings.
Set Imap settings.
Set Imap settings .
def __init__(self):
        """Set Imap settings."""
        self.host = 'localhost'      #: IMAP host name or IP.
        self.port = 143              #: IMAP port to connect.
        self.user = ''               #: IMAP user name.
        self.passwd = None           #: Password for the IMAP user name.
        self.nossl = False           #: Not use ssl for IMAP connection.

        #: Inbox folder, default to ```INBOX```.
        self.inbox = 'INBOX'
        #: Spam folder, default to ```INBOX.Spam```.
        self.spaminbox = 'INBOX.Spam'

        self.learnspambox = None     #: Folder used to learn spam messages.
        self.learnhambox = None      #: Folder used to learn non-spam messages.

        self._hashed_host = None
        self._hashed_user = None
        self._hashed_port = None
        self._hash = self.hash
def __init__ ( self ) : self . host = 'localhost' #: IMAP host name or IP. self . port = 143 #: IMAP port to connect. self . user = '' #: IMAP user name. self . passwd = None #: Password for the IMAP user name. self . nossl = False #: Not use ssl for IMAP connection. #: Inbox folder, default to ```INBOX```. self . inbox = 'INBOX' #: Spam folder, default to ```INBOX.Spam```. self . spaminbox = 'INBOX.Spam' self . learnspambox = None #: Folder used to learn spam messages. self . learnhambox = None #: Folder used to learn non-spam messages. self . _hashed_host = None self . _hashed_user = None self . _hashed_port = None self . _hash = self . hash