Fix kwargs for poplib.POP3_SSL and poplib.POP3
This commit is contained in:
committed by
Roberto Rosario
parent
ea7b4e46ac
commit
e09bd48d65
@@ -277,10 +277,10 @@ class POP3Email(EmailBaseModel):
|
||||
logger.debug('ssl: %s', self.ssl)
|
||||
|
||||
if self.ssl:
|
||||
mailbox = poplib.POP3_SSL(host=self.host, post=self.port)
|
||||
mailbox = poplib.POP3_SSL(host=self.host, port=self.port)
|
||||
else:
|
||||
mailbox = poplib.POP3(
|
||||
host=self.host, post=self.port, timeout=self.timeout
|
||||
host=self.host, port=self.port, timeout=self.timeout
|
||||
)
|
||||
|
||||
mailbox.getwelcome()
|
||||
|
||||
Reference in New Issue
Block a user