red-box
red-box copied to clipboard
Obtaining Mailfolders error
I'm trying to connect on a private IMAP server.
# initiate the connection
self.imap_connection=EmailBox(self.config.imap_host, self.config.imap_port,self.config.imap_username,self.config.imap_password)
# then i run the following code
inbox=self.imap_connection.mailfolders # this line throws error
print(inbox)
Error obtained
AttributeError: 'NoneType' object has no attribute 'groupdict'. Did you mean: '_mailfolders'?