diff --git a/CHANGELOG.md b/CHANGELOG.md index c3a1fd7..1cd4233 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,18 +1,25 @@ Changelog ========= -8.0.2 +8.0.3 ----- -- Strip leading and trailing whitespaces from Gmail scopes (Closes #310) +- Fix IMAP callback for `IDLE` connections (PR #313 closes issue #311) +- Add warnings in documentation and log output for IMAP configuration changes introduced in 8.0.0 (Closes issue #309) +- Actually pin the `elasticsearch` Python library version at `<7.14.0` (Closes issue #315) -8.0.1 ------ +8.0.2 (yanked) +-------------- + +- Strip leading and trailing whitespaces from Gmail scopes (Closes issue #310) + +8.0.1 (yanked) +-------------- - Fix `ModuleNotFoundError` by adding `parsedmarc.mail` to the list of packages in `setup.py` (PR #308) -8.0.0 ------ +8.0.0 (yanked) +-------------- - Update included copy of `dbip-country-lite.mmdb` to the 2022-04 release - Add support for Microsoft/Office 365 via Microsoft Graph API (PR #301 closes issue #111) diff --git a/docs/index.rst b/docs/index.rst index a143f88..5982ab6 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -657,20 +657,20 @@ Create a system user .. code-block:: bash - sudo mkdir -f /opt - sudo useradd parsedmarc -r -s /bin/false -b /opt + sudo mkdir /opt + sudo useradd parsedmarc -r -s /bin/false -m -b /opt .. code-block:: bash sudo -u parsedmarc -H pip3 install --user -U pip - sudo -u parsedmarc -H pip3 install --user -U parsedmarc + sudo -u parsedmarc -H pip3 install --user --no-warn-script-location -U parsedmarc Or, install the latest development release directly from GitHub: .. code-block:: bash - sudo -u parsedmarc -H pip3 install --user -U git+https://github.com/domainaware/parsedmarc.git + sudo -u parsedmarc -H pip3 install --user --no-warn-script-location -U git+https://github.com/domainaware/parsedmarc.git .. note:: @@ -719,7 +719,7 @@ Next, create a ``pypy3`` virtualenv for parsedmarc cd /opt/venvs sudo -H pip3 install -U virtualenv sudo virtualenv --download -p /usr/local/bin/pypy3 parsedmarc - sudo -H /opt/venvs/parsedmarc/bin/pip3 install -U parsedmarc + sudo -H /opt/venvs/parsedmarc/bin/pip3 install --no-warn-script-location -U parsedmarc sudo ln -s /opt/venvs/parsedmarc/bin/parsedmarc /usr/local/bin/parsedmarc To upgrade ``parsedmarc`` inside the virtualenv, run: @@ -727,13 +727,13 @@ To upgrade ``parsedmarc`` inside the virtualenv, run: .. code-block:: bash - sudo -H /opt/venvs/parsedmarc/bin/pip3 install -U parsedmarc + sudo -H /opt/venvs/parsedmarc/bin/pip3 install --no-warn-script-location -U parsedmarc Or, install the latest development release directly from GitHub: .. code-block:: bash - sudo -H /opt/venvs/parsedmarc/bin/pip3 install -U git+https://github.com/domainaware/parsedmarc.git + sudo -H /opt/venvs/parsedmarc/bin/pip3 install --no-warn-script-location -U git+https://github.com/domainaware/parsedmarc.git Optional dependencies --------------------- @@ -757,8 +757,14 @@ tags in your DMARC record, separated by commas. Accessing an inbox using OWA/EWS -------------------------------- -Some organisations do not allow IMAP, and only support Exchange Web Services -(EWS)/Outlook Web Access (OWA). In that case, Davmail will need to be set up +.. note:: + + Starting in 8.0.0, parsedmarc supports accessing Microsoft/Office 365 + inboxes via the Microsoft Graph API, which is preferred over Davmail. + +Some organisations do not allow IMAP or the Microsoft Graph API, +and only support Exchange Web Services (EWS)/Outlook Web Access (OWA). +In that case, Davmail will need to be set up as a local EWS/OWA IMAP gateway. It can even work where `Modern Auth/multi-factor authentication`_ is required. diff --git a/parsedmarc/__init__.py b/parsedmarc/__init__.py index f87e661..a682b66 100644 --- a/parsedmarc/__init__.py +++ b/parsedmarc/__init__.py @@ -34,7 +34,7 @@ from parsedmarc.utils import is_outlook_msg, convert_outlook_msg from parsedmarc.utils import parse_email from parsedmarc.utils import timestamp_to_human, human_timestamp_to_datetime -__version__ = "8.0.2" +__version__ = "8.0.3" formatter = logging.Formatter( fmt='%(levelname)8s:%(filename)s:%(lineno)d:%(message)s', diff --git a/requirements.txt b/requirements.txt index 40b44dd..e4949f6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,7 +10,8 @@ xmltodict>=0.12.0 geoip2>=3.0.0 imapclient>=2.1.0 dateparser>=0.7.2 -elasticsearch-dsl>=7.2.0,<7.14.0 +elasticsearch<7.14.0 +elasticsearch-dsl>=7.2.0 kafka-python>=1.4.4 mailsuite>=1.6.1 nose>=1.3.7 diff --git a/setup.py b/setup.py index 1d6efa9..d7cd783 100644 --- a/setup.py +++ b/setup.py @@ -98,7 +98,8 @@ setup( 'requests>=2.22.0', 'imapclient>=2.1.0', 'dateparser>=0.7.2', 'mailsuite>=1.6.1', - 'elasticsearch-dsl>=7.2.0,<7.14.0', + 'elasticsearch<7.14.0' + 'elasticsearch-dsl==7.2.0', 'kafka-python>=1.4.4', 'tqdm>=4.31.1', 'lxml>=4.4.0',