This commit is contained in:
Sean Whalen
2018-11-15 15:48:10 -05:00
parent 017f7bc432
commit 9c4dca0545
4 changed files with 24 additions and 3 deletions
+7
View File
@@ -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
View File
@@ -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()
+1 -1
View File
@@ -28,7 +28,7 @@ class _PublishedPolicy(InnerDoc):
p = Text()
sp = Text()
pct = Integer()
fo = Integer()
fo = Text()
class _DKIMResult(InnerDoc):
+1 -1
View File
@@ -14,7 +14,7 @@ from setuptools import setup
from codecs import open
from os import path
__version__ = "4.4.1"
__version__ = "4.5.0"
description = "A Python package and CLI for parsing aggregate and " \
"forensic DMARC reports"