xenoslib 0.4.2__tar.gz → 0.4.4__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.4.2/xenoslib.egg-info → xenoslib-0.4.4}/PKG-INFO +1 -1
- {xenoslib-0.4.2 → xenoslib-0.4.4}/xenoslib/about.py +1 -1
- {xenoslib-0.4.2 → xenoslib-0.4.4}/xenoslib/base.py +2 -1
- {xenoslib-0.4.2 → xenoslib-0.4.4}/xenoslib/mail.py +1 -1
- {xenoslib-0.4.2 → xenoslib-0.4.4/xenoslib.egg-info}/PKG-INFO +1 -1
- {xenoslib-0.4.2 → xenoslib-0.4.4}/LICENSE +0 -0
- {xenoslib-0.4.2 → xenoslib-0.4.4}/README.md +0 -0
- {xenoslib-0.4.2 → xenoslib-0.4.4}/setup.cfg +0 -0
- {xenoslib-0.4.2 → xenoslib-0.4.4}/setup.py +0 -0
- {xenoslib-0.4.2 → xenoslib-0.4.4}/xenoslib/__init__.py +0 -0
- {xenoslib-0.4.2 → xenoslib-0.4.4}/xenoslib/__main__.py +0 -0
- {xenoslib-0.4.2 → xenoslib-0.4.4}/xenoslib/dev.py +0 -0
- {xenoslib-0.4.2 → xenoslib-0.4.4}/xenoslib/extend.py +0 -0
- {xenoslib-0.4.2 → xenoslib-0.4.4}/xenoslib/linux.py +0 -0
- {xenoslib-0.4.2 → xenoslib-0.4.4}/xenoslib/mock.py +0 -0
- {xenoslib-0.4.2 → xenoslib-0.4.4}/xenoslib/onedrive.py +0 -0
- {xenoslib-0.4.2 → xenoslib-0.4.4}/xenoslib/time_utils.py +0 -0
- {xenoslib-0.4.2 → xenoslib-0.4.4}/xenoslib/tools/__init__.py +0 -0
- {xenoslib-0.4.2 → xenoslib-0.4.4}/xenoslib/tools/config_loader.py +0 -0
- {xenoslib-0.4.2 → xenoslib-0.4.4}/xenoslib/win_trayicon.py +0 -0
- {xenoslib-0.4.2 → xenoslib-0.4.4}/xenoslib/windows.py +0 -0
- {xenoslib-0.4.2 → xenoslib-0.4.4}/xenoslib.egg-info/SOURCES.txt +0 -0
- {xenoslib-0.4.2 → xenoslib-0.4.4}/xenoslib.egg-info/dependency_links.txt +0 -0
- {xenoslib-0.4.2 → xenoslib-0.4.4}/xenoslib.egg-info/requires.txt +0 -0
- {xenoslib-0.4.2 → xenoslib-0.4.4}/xenoslib.egg-info/top_level.txt +0 -0
|
@@ -12,6 +12,7 @@ from logging.handlers import TimedRotatingFileHandler
|
|
|
12
12
|
|
|
13
13
|
def init_logger(
|
|
14
14
|
use_file: bool = False,
|
|
15
|
+
level=logging.INFO,
|
|
15
16
|
backup_count: int = 0, # New parameter: number of log files to retain (0 means keep all)
|
|
16
17
|
) -> logging.Logger:
|
|
17
18
|
"""
|
|
@@ -48,7 +49,7 @@ def init_logger(
|
|
|
48
49
|
file_handler.setFormatter(formatter)
|
|
49
50
|
handlers.append(file_handler)
|
|
50
51
|
|
|
51
|
-
logging.basicConfig(level=
|
|
52
|
+
logging.basicConfig(level=level, handlers=handlers)
|
|
52
53
|
|
|
53
54
|
|
|
54
55
|
def sleep(seconds, mute=False):
|
|
@@ -107,7 +107,7 @@ class MailFetcher:
|
|
|
107
107
|
with IMAPClient(self.imap_server, timeout=self.timeout) as client:
|
|
108
108
|
client.login(self.mail_addr, self.mail_pwd)
|
|
109
109
|
client.select_folder("INBOX", readonly=True)
|
|
110
|
-
messages = client.search(["SINCE", from_date])
|
|
110
|
+
messages = client.search(["UID", "1:*", "SINCE", from_date])
|
|
111
111
|
emails = client.fetch(messages, ["INTERNALDATE", "BODY.PEEK[]"])
|
|
112
112
|
return emails
|
|
113
113
|
except Exception as exc:
|
|
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
|
|
File without changes
|
|
File without changes
|