ssl
This commit is contained in:
@@ -66,12 +66,12 @@ help="using ssl or not (imaps vs imap)", default="true", choices=['false', 'true
|
||||
|
||||
options = parser.parse_args()
|
||||
|
||||
if(options.ssl)
|
||||
if options.ssl == "true"
|
||||
imap_ressource = imaplib.IMAP4_SSL(options.server)
|
||||
else
|
||||
imap_ressource = imaplib.IMAP4(options.server)
|
||||
|
||||
|
||||
|
||||
try:
|
||||
rv, data = imap_ressource.login(options.username, options.password)
|
||||
except imaplib.IMAP4.error:
|
||||
|
||||
Reference in New Issue
Block a user