mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-08-21 06:33:17 +00:00
4.5.0
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
4.5.0
|
||||
-----
|
||||
|
||||
- Bugfix: `fo` tag is a string, not an integer (closes issue #31)
|
||||
- Bugfix: IDE email processing in Gmail/G-Suite accounts (closes issue #33)
|
||||
- Cache DNS queries in memory
|
||||
|
||||
4.4.1
|
||||
-----
|
||||
|
||||
|
||||
+15
-1
@@ -38,7 +38,7 @@ from parsedmarc.utils import is_outlook_msg, convert_outlook_msg
|
||||
from parsedmarc.utils import timestamp_to_human, human_timestamp_to_datetime
|
||||
from parsedmarc.utils import parse_email
|
||||
|
||||
__version__ = "4.4.1"
|
||||
__version__ = "4.5.0"
|
||||
|
||||
logger = logging.getLogger("parsedmarc")
|
||||
logger.debug("parsedmarc v{0}".format(__version__))
|
||||
@@ -1506,6 +1506,20 @@ def watch_inbox(host, username, password, callback, port=None, ssl=True,
|
||||
idle_start_time = time.monotonic()
|
||||
responses = server.idle_check(timeout=wait)
|
||||
if responses is not None:
|
||||
if len(responses) == 0:
|
||||
# Gmail/G-Suite does not generate anything in the responses
|
||||
server.idle_done()
|
||||
res = get_dmarc_reports_from_inbox(connection=server,
|
||||
move_supported=ms,
|
||||
reports_folder=rf,
|
||||
archive_folder=af,
|
||||
delete=delete,
|
||||
test=test,
|
||||
nameservers=ns,
|
||||
dns_timeout=dt)
|
||||
callback(res)
|
||||
server.idle()
|
||||
idle_start_time = time.monotonic()
|
||||
for response in responses:
|
||||
if response[1] == b'RECENT' and response[0] > 0:
|
||||
server.idle_done()
|
||||
|
||||
@@ -28,7 +28,7 @@ class _PublishedPolicy(InnerDoc):
|
||||
p = Text()
|
||||
sp = Text()
|
||||
pct = Integer()
|
||||
fo = Integer()
|
||||
fo = Text()
|
||||
|
||||
|
||||
class _DKIMResult(InnerDoc):
|
||||
|
||||
Reference in New Issue
Block a user