15 lines
299 B
Python
15 lines
299 B
Python
import os
|
|
import time
|
|
import imaplib
|
|
|
|
domain = os.environ.get("CHATMAIL_DOMAIN", "c3.testrun.org")
|
|
|
|
print("connecting")
|
|
conn = imaplib.IMAP4_SSL(domain)
|
|
print("logging in")
|
|
conn.login(f"imapcapa", "pass")
|
|
status, res = conn.capability()
|
|
for capa in sorted(res[0].decode().split()):
|
|
print(capa)
|
|
|