mirror of
https://github.com/chatmail/relay.git
synced 2026-05-11 00:14:36 +00:00
14 lines
298 B
Python
14 lines
298 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)
|