|
@@ -10,7 +10,7 @@ import imaplib
|
|
|
import email
|
|
|
from email.header import decode_header
|
|
|
|
|
|
-user = "colin@unbl.ink"
|
|
|
+user = os.environ.get("MAIL_USER")
|
|
|
password = os.environ.get("MAIL_PASS")
|
|
|
|
|
|
N = 15
|
|
@@ -21,6 +21,10 @@ def send_ntfy():
|
|
|
print("Please set your password in the MAIL_PASS environment variable")
|
|
|
return
|
|
|
|
|
|
+ if not user:
|
|
|
+ print("Please set your user in the MAIL_USER environment variable")
|
|
|
+ return
|
|
|
+
|
|
|
conn = imaplib.IMAP4_SSL("box.unbl.ink")
|
|
|
conn.login(user, password)
|
|
|
|