xenoslib 0.1.29.14__py3-none-any.whl → 0.1.29.15__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- xenoslib/about.py +1 -1
- xenoslib/mail.py +4 -3
- {xenoslib-0.1.29.14.dist-info → xenoslib-0.1.29.15.dist-info}/METADATA +1 -1
- {xenoslib-0.1.29.14.dist-info → xenoslib-0.1.29.15.dist-info}/RECORD +7 -7
- {xenoslib-0.1.29.14.dist-info → xenoslib-0.1.29.15.dist-info}/WHEEL +1 -1
- {xenoslib-0.1.29.14.dist-info → xenoslib-0.1.29.15.dist-info}/LICENSE +0 -0
- {xenoslib-0.1.29.14.dist-info → xenoslib-0.1.29.15.dist-info}/top_level.txt +0 -0
xenoslib/about.py
CHANGED
xenoslib/mail.py
CHANGED
|
@@ -40,13 +40,14 @@ class MailFetcher:
|
|
|
40
40
|
"""
|
|
41
41
|
|
|
42
42
|
def __new__(
|
|
43
|
-
cls, imap_server, mail_addr, mail_pwd, interval=30, days=1, skip_current=True, endless=True
|
|
43
|
+
cls, imap_server, mail_addr, mail_pwd, interval=30, days=1, timeout=30, skip_current=True, endless=True
|
|
44
44
|
):
|
|
45
45
|
self = super().__new__(cls)
|
|
46
46
|
self.imap_server = imap_server
|
|
47
47
|
self.mail_addr = mail_addr
|
|
48
48
|
self.mail_pwd = mail_pwd
|
|
49
49
|
self.days = days
|
|
50
|
+
self.timeout=timeout
|
|
50
51
|
|
|
51
52
|
self.msg_ids = deque(maxlen=999)
|
|
52
53
|
if not endless:
|
|
@@ -95,7 +96,7 @@ class MailFetcher:
|
|
|
95
96
|
logger.debug(f"Fetching emails since {from_date:%Y-%m-%d %H:%M:%S} ({self.days} days ago)")
|
|
96
97
|
for i in range(5):
|
|
97
98
|
try:
|
|
98
|
-
with IMAPClient(self.imap_server, timeout=
|
|
99
|
+
with IMAPClient(self.imap_server, timeout=self.timeout) as client:
|
|
99
100
|
client.login(self.mail_addr, self.mail_pwd)
|
|
100
101
|
client.select_folder("INBOX", readonly=True)
|
|
101
102
|
messages = client.search(["SINCE", from_date])
|
|
@@ -104,7 +105,7 @@ class MailFetcher:
|
|
|
104
105
|
except Exception as exc:
|
|
105
106
|
logger.warning(exc)
|
|
106
107
|
sleep(30)
|
|
107
|
-
raise Exception("Reached maximum retry attempts. Giving up connection.")
|
|
108
|
+
raise Exception("Reached maximum retry attempts when connect IMAP server. Giving up connection.")
|
|
108
109
|
|
|
109
110
|
|
|
110
111
|
class SMTPMail:
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
xenoslib/__init__.py,sha256=vlMWwdD2gTb9ztpm_orYAm_Y0Be0Es64ifvMQwrE1jU,310
|
|
2
2
|
xenoslib/__main__.py,sha256=UpD3pl4l5ZUFxK6FzNMWRb1AZpEnwerulSFoPb_Pdgw,307
|
|
3
|
-
xenoslib/about.py,sha256=
|
|
3
|
+
xenoslib/about.py,sha256=QdU3Wbq1HwaSgxPN7c14DtEgkaDgxCLBAToKX-hkQqE,232
|
|
4
4
|
xenoslib/base.py,sha256=yylMYrF5F-bY4ncdo5bCyImjy7OkBAz5YWMGdZNV3rY,12377
|
|
5
5
|
xenoslib/dev.py,sha256=R6iwKuu-xvaYiBOUyP2gpePyvXss17TOZaCmQEihPCw,1236
|
|
6
6
|
xenoslib/extend.py,sha256=LSzcBafyyLn1H_rwyLqGtTPqL18EDHC01_YxCsyCPLY,5887
|
|
7
7
|
xenoslib/linux.py,sha256=EFCQBq_JsmNJc3wGlJlzH9W0tjOA7sSwx0u62R5Ut2k,1318
|
|
8
|
-
xenoslib/mail.py,sha256=
|
|
8
|
+
xenoslib/mail.py,sha256=olgvOxpZGxVYXK313A3GixkbvJ2ldyWw--PdLt32luc,7197
|
|
9
9
|
xenoslib/mock.py,sha256=iNIplO7clejqLWfpY4r0WQH5BULy9dCoolDenZEci0c,3572
|
|
10
10
|
xenoslib/onedrive.py,sha256=-bJJ8Cd_RjJSlDynYqKoZlFKE1HHM34l6NXOQrWOwtg,7783
|
|
11
11
|
xenoslib/win_trayicon.py,sha256=7GJwX3c2CS1XWQjsyDK5EfM-MmEHdzPJCTX2sGpWmuU,13115
|
|
12
12
|
xenoslib/windows.py,sha256=lUTD7TowaPqYHgIL6b-GM9PLd-VyJNNGzkzC3K9vOxo,4080
|
|
13
|
-
xenoslib-0.1.29.
|
|
14
|
-
xenoslib-0.1.29.
|
|
15
|
-
xenoslib-0.1.29.
|
|
16
|
-
xenoslib-0.1.29.
|
|
17
|
-
xenoslib-0.1.29.
|
|
13
|
+
xenoslib-0.1.29.15.dist-info/LICENSE,sha256=lF6hjufhiR-xAje_Wo7ogxV5phz2d5TgkfL5SGshujg,1066
|
|
14
|
+
xenoslib-0.1.29.15.dist-info/METADATA,sha256=v-mplstVhD1G9vDgsd7L4STgEJ98_HZQCPUWsI76OaE,710
|
|
15
|
+
xenoslib-0.1.29.15.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
|
|
16
|
+
xenoslib-0.1.29.15.dist-info/top_level.txt,sha256=Rfm4GdW0NyA2AHDNUF2wFQOfAo53mAPibddSHGd3X60,9
|
|
17
|
+
xenoslib-0.1.29.15.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|