xenoslib 0.1.29.8__tar.gz → 0.1.29.9__tar.gz
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-0.1.29.8/xenoslib.egg-info → xenoslib-0.1.29.9}/PKG-INFO +1 -1
- {xenoslib-0.1.29.8 → xenoslib-0.1.29.9}/xenoslib/about.py +1 -1
- {xenoslib-0.1.29.8 → xenoslib-0.1.29.9}/xenoslib/mail.py +8 -4
- {xenoslib-0.1.29.8 → xenoslib-0.1.29.9/xenoslib.egg-info}/PKG-INFO +1 -1
- {xenoslib-0.1.29.8 → xenoslib-0.1.29.9}/LICENSE +0 -0
- {xenoslib-0.1.29.8 → xenoslib-0.1.29.9}/README.md +0 -0
- {xenoslib-0.1.29.8 → xenoslib-0.1.29.9}/setup.cfg +0 -0
- {xenoslib-0.1.29.8 → xenoslib-0.1.29.9}/setup.py +0 -0
- {xenoslib-0.1.29.8 → xenoslib-0.1.29.9}/xenoslib/__init__.py +0 -0
- {xenoslib-0.1.29.8 → xenoslib-0.1.29.9}/xenoslib/__main__.py +0 -0
- {xenoslib-0.1.29.8 → xenoslib-0.1.29.9}/xenoslib/base.py +0 -0
- {xenoslib-0.1.29.8 → xenoslib-0.1.29.9}/xenoslib/dev.py +0 -0
- {xenoslib-0.1.29.8 → xenoslib-0.1.29.9}/xenoslib/extend.py +0 -0
- {xenoslib-0.1.29.8 → xenoslib-0.1.29.9}/xenoslib/linux.py +0 -0
- {xenoslib-0.1.29.8 → xenoslib-0.1.29.9}/xenoslib/mock.py +0 -0
- {xenoslib-0.1.29.8 → xenoslib-0.1.29.9}/xenoslib/onedrive.py +0 -0
- {xenoslib-0.1.29.8 → xenoslib-0.1.29.9}/xenoslib/win_trayicon.py +0 -0
- {xenoslib-0.1.29.8 → xenoslib-0.1.29.9}/xenoslib/windows.py +0 -0
- {xenoslib-0.1.29.8 → xenoslib-0.1.29.9}/xenoslib.egg-info/SOURCES.txt +0 -0
- {xenoslib-0.1.29.8 → xenoslib-0.1.29.9}/xenoslib.egg-info/dependency_links.txt +0 -0
- {xenoslib-0.1.29.8 → xenoslib-0.1.29.9}/xenoslib.egg-info/requires.txt +0 -0
- {xenoslib-0.1.29.8 → xenoslib-0.1.29.9}/xenoslib.egg-info/top_level.txt +0 -0
|
@@ -74,7 +74,10 @@ class MailFetcher:
|
|
|
74
74
|
subject = str(email.header.make_header(email.header.decode_header(body["Subject"])))
|
|
75
75
|
payload = body.get_payload(decode=True)
|
|
76
76
|
if payload:
|
|
77
|
-
|
|
77
|
+
try:
|
|
78
|
+
payload = payload.decode()
|
|
79
|
+
except UnicodeDecodeError:
|
|
80
|
+
payload = payload.decode("latin1") # failover decode
|
|
78
81
|
body["raw"] = msg[b"BODY[]"]
|
|
79
82
|
body["subjectx"] = subject
|
|
80
83
|
body["payload"] = payload
|
|
@@ -158,9 +161,10 @@ def test_imap():
|
|
|
158
161
|
mail_addr = os.environ["IMAP_ADDR"]
|
|
159
162
|
mail_pwd = os.environ["IMAP_PASS"]
|
|
160
163
|
for email_data in MailFetcher(
|
|
161
|
-
imap_server, mail_addr, mail_pwd, interval=1, days=
|
|
164
|
+
imap_server, mail_addr, mail_pwd, interval=1, days=1, skip_current=False
|
|
162
165
|
):
|
|
163
166
|
print(email_data["subject"])
|
|
167
|
+
print(email_data["subjectx"])
|
|
164
168
|
|
|
165
169
|
|
|
166
170
|
def test():
|
|
@@ -179,5 +183,5 @@ def test():
|
|
|
179
183
|
|
|
180
184
|
|
|
181
185
|
if __name__ == "__main__":
|
|
182
|
-
|
|
183
|
-
test()
|
|
186
|
+
test_imap()
|
|
187
|
+
# ~ test()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|