support gmx.at mails

This commit is contained in:
2024-06-14 19:37:29 +02:00
parent 387a7ad538
commit c5ed9d0834
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -15,6 +15,7 @@ DOMAN_AURORA_DTI_NE_JP = "aurora.dti.ne.jp"
DOMAN_GMAIL = "gmail.com"
DOMAIN_GMX = "gmx.com"
DOMAIN_GMX_NET = "gmx.net"
DOMAIN_GMX_AT = "gmx.at"
DOMAIN_GMX_FR = "gmx.fr"
DOMAIN_GMX_US = "gmx.us"
DOMAIN_GMX_CH = "gmx.ch"
@@ -48,6 +49,7 @@ SEREVER_GMAIL = "imap.gmail.com"
SERVER_IMAGE_ONET = "imap.poczta.onet.pl"
SERVER_GMX = "imap.gmx.com"
SERVER_GMX_NET = "imap.gmx.net"
SERVER_GMX_AT = "imap.gmx.at"
SERVER_PISS_MAIL = "mail.pissmail.com"
INBOX_LV = "mail.inbox.lv"
SERVER_WEB_DE = "imap.web.de"
@@ -105,6 +107,8 @@ def create_imap(login: str):
imap = imaplib.IMAP4_SSL(NAVER_SERVER, port=993)
elif DOMAIN_GMX_DE in login or DOMAIN_GMX_NET in login:
imap = imaplib.IMAP4_SSL(SERVER_GMX_NET, port=993)
elif DOMAIN_GMX_AT in login:
imap = imaplib.IMAP4_SSL(SERVER_GMX_AT, port=993)
elif DOMAIN_INBOX_LV in login:
imap = imaplib.IMAP4_SSL(INBOX_LV, port=993)
elif DOMAIN_WEB_DE in login:
+2
View File
@@ -14,6 +14,7 @@ class ContactPojo:
ip_country: str
ip_address: str
isp: str = None
ua: str = ""
def __repr__(self):
return "phone:{}, passport:{}, last_name:{}, first_name:{}, mail:{}, store:{}, ip_country:{},isp:{}".format(
@@ -30,6 +31,7 @@ class ContactPojo:
self.store = store
self.ip_country = ip_country
self.ip_address = ""
self.ua = ""
def __hash__(self):
return hash(self.mail)