From fb3c9b15d88f2dad9fd233d67330c5c99a84cbe9 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 2 Oct 2013 11:28:11 +0530 Subject: [PATCH] [minor] [fix] POP3Mailbox use ssl --- webnotes/utils/email_lib/receive.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webnotes/utils/email_lib/receive.py b/webnotes/utils/email_lib/receive.py index fe101ee2c4..2d760c054b 100644 --- a/webnotes/utils/email_lib/receive.py +++ b/webnotes/utils/email_lib/receive.py @@ -3,7 +3,7 @@ from __future__ import unicode_literals import webnotes -from webnotes.utils import extract_email_id, convert_utc_to_user_timezone, now +from webnotes.utils import extract_email_id, convert_utc_to_user_timezone, now, cint class IncomingMail: """ @@ -130,7 +130,7 @@ class POP3Mailbox: def connect(self): import poplib - if self.settings.use_ssl: + if cint(self.settings.use_ssl): self.pop = poplib.POP3_SSL(self.settings.host) else: self.pop = poplib.POP3(self.settings.host)