Commit 65846ff9 authored by kaiyou's avatar kaiyou

Add a basic IMAP check

parent 53a6e000
Pipeline #155 passed with stage
in 1 minute and 1 second
import imaplib
from amonit import util
def imap_login(context, host, username, password, port=143, startls=True):
""" Check that IMAP login works properly and accesses the INBOX
client = imaplib.IMAP4(host=host, port=port)
client.login(username, password)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment