mirror of
https://github.com/chatmail/relay.git
synced 2026-05-21 21:38:03 +00:00
add capability getter for CHATMAIL_DOMAIN
This commit is contained in:
11
scripts/get_capability.py
Normal file
11
scripts/get_capability.py
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
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"measure{time.time()}", "pass")
|
||||||
|
print(conn.capability())
|
||||||
Reference in New Issue
Block a user