Commit Graph

949 Commits

Author SHA1 Message Date
Cody Cutrer
4e8c74599b append to output files if they already exist (#342)
* append to output files if they already exist

instead of overwriting them. fixes #226

* save output with each successive watch result

possible now that it appends to the output
2022-08-19 13:49:16 -04:00
Nathan Thorpe
b15425f50e Add Graph credentials cache and fix issue with batch size (#334)
* implement token cache for Graph API

* fix case when username isn't defined (device code)

* add batch size when listing messages from Graph API

* fix string concat
2022-07-21 13:43:21 -04:00
Sean Whalen
315b99f95a Resolve Sphinx warnings 2022-06-20 10:46:54 -04:00
Sean Whalen
f070ee95c3 Update build.sh to work with newer versions off rstcheck 2022-06-20 10:40:20 -04:00
Sean Whalen
eda5726652 8.3.0 release
- Support MFA for Microsoft Graph (PR #320 closes issue #319)
- Add more options for S3 export (PR #328)
- Provide a helpful error message when the log file cannot be created (closes issue #317)
2022-06-20 10:32:50 -04:00
Sean Whalen
5ab649cf8c Code style fix 2022-06-20 10:22:25 -04:00
Sean Whalen
ae8c587aed Provide a helpful error message when the log file cannot be created
Close issue #317
2022-06-20 10:15:35 -04:00
Sean Whalen
3850c7bdc4 Code style fix 2022-06-20 10:00:53 -04:00
William Desportes
9381381f40 CI improvements (#327)
* Add permissions on GitHub workflows tokens to avoid misuse and leak

* Bump docker actions

* Bump elasticsearch version
2022-06-20 09:49:43 -04:00
William Desportes
a496b4e42a Fix documentation typos (#326)
Fixes: #325
2022-06-20 09:48:14 -04:00
William Desportes
9671a49166 Implement new settings for s3 (#328)
* Fix s3 path documented as an int

* Implement new settings for s3 storage
2022-06-20 09:47:29 -04:00
Sean Whalen
6354c9bce7 Close file object before raising exception
Hopefully resolves #321
2022-05-16 22:00:25 -04:00
Nathan Thorpe
9d05fe776a Add message about scoping shared mailboxes when using MSGraph ClientSecret auth (#322)
* Add message about scoping to shared mailboxes

* disable resolve entities in Xml Parser
2022-05-14 14:14:42 -04:00
Sean Whalen
0e6e6c31c0 Merge branch 'master' of https://github.com/domainaware/parsedmarc 2022-05-14 13:16:03 -04:00
Sean Whalen
31821bcfd9 Remove pypy guide until #321 is fixed 2022-05-14 13:16:00 -04:00
Nathan Thorpe
9bf4e75e0e Implement Device Code and Client Secret auth flow for MS Graph (#320)
* implement DeviceCode and ClientSecret auth flow for MS Graph

* update readme for MS Graph auth method additions

* add warning to msgraph config setup
2022-05-14 12:58:22 -04:00
Sean Whalen
ed39c7d89e Update documentation 2022-05-13 17:11:05 -04:00
Sean Whalen
1b443b8843 Revert "Set default batch size at the config, not the function"
This reverts commit c5a624274c.
2022-05-13 10:40:32 -04:00
Sean Whalen
c5a624274c Set default batch size at the config, not the function 2022-05-13 09:50:14 -04:00
Sean Whalen
4018e828e9 8.2.0 release
- Support non-standard, text-based forensic reports sent by some mail hosts
- Set forensic report version to `None` (`null` in JSON) if the report was in a non-standard format and/or is missing a version number
- The default value of the `mailbox` `batch_size` is now `10` (use `0` for no limit)
2022-05-10 21:01:41 -04:00
Sean Whalen
2d85e095fe PEP8 code style fix 2022-05-10 20:01:32 -04:00
Sean Whalen
abf9695228 8.2.0 2022-05-10 19:55:27 -04:00
Sean Whalen
665720a017 8.1.1
- Fix marking messages as read via Microsoft Graph
2022-05-09 19:14:27 -04:00
Sean Whalen
6b2131f0e8 Update documentation 2022-05-09 15:41:35 -04:00
Sean Whalen
6702181400 Move __version__ back
Fixes building from git/docker
2022-05-09 15:34:01 -04:00
Sean Whalen
b9c3404989 Mark a message as read when fetching a message from Microsoft Graph 2022-05-09 15:19:15 -04:00
Sean Whalen
b6054aafce Prep for 8.1.0
- Restore compatability with <8.0.0 configuration files (with deprecation warnings)
- Move `parsedmarc.__version__` to `parsedmarc.meta.__version__`
- Set default `reports_folder` to `Inbox` (rather than `INBOX`) when `msgraph` is configured
2022-05-09 10:01:04 -04:00
Nathan Thorpe
abf07125c4 Add Dockerfile & build/push task (#316)
* add dockerfile and actions task to build image

* test on branch

* change to push only on release, update readme

* remove pip install requirements

* change to on release github action
2022-05-05 21:06:38 -04:00
Sean Whalen
bfd1aa8172 8.0.3 release
- 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)
- Separate version numbers in `__init__.py` and `setup.py` to allow `pip` to install directly from `git`
- Update `dateparser` to 1.1.1 (closes issue #273)
2022-05-02 16:33:44 -04:00
Sean Whalen
a1c912fc7d Use dateparser 1.1.1 to address #273 2022-05-02 16:24:44 -04:00
Sean Whalen
6d0717d6c0 Six setup.py requirements list 2022-05-02 15:56:48 -04:00
Sean Whalen
8943430ff3 Fix elasticsearch-dsl requirement 2022-05-02 15:39:40 -04:00
Sean Whalen
03811988d3 Separate version number in setup.py to allow install from git 2022-05-02 14:42:25 -04:00
Sean Whalen
996deb042c Move version to its own package 2022-05-02 14:38:17 -04:00
Sean Whalen
fe5559e44e Move version above imports 2022-05-02 14:28:44 -04:00
Sean Whalen
af2afddf96 Possible 8.0.3 release
- 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)
2022-05-02 12:50:37 -04:00
Sean Whalen
1b0f95a0ff Add notes and warnings to address #309 and #314 # 2022-04-29 09:10:26 -04:00
Sean Whalen
167de27d34 Merge pull request #313 from nathanthorpe/imap_watch_fix
fix callback on IMAPConnection
2022-04-29 08:18:46 -04:00
Nathan Thorpe
e46a768b82 fix callback object on IMAPConnection 2022-04-28 19:46:24 -07:00
Sean Whalen
75da9f6a30 8.0.2
Strip leading and trailing whitespaces from Gmail scopes (Closes #310)
2022-04-26 12:17:25 -04:00
Sean Whalen
64f8eef27b 8.0.1
Fix `ModuleNotFoundError` by adding `parsedmarc.mail` to the list of packages in `setup.py` (PR #308)
2022-04-24 20:12:01 -04:00
Sean Whalen
adee1288c7 Merge pull request #308 from nathanthorpe/fix_package
Fix ModuleNotFoundError: add parsedmarc.mail to setup packages
2022-04-24 12:44:26 -04:00
Nathan Thorpe
514ca35117 add parsedmarc.mail to setup packages 2022-04-24 08:18:37 -07:00
Sean Whalen
23df163759 Update version number to 8.8.8 2022-04-22 17:08:15 -04:00
Sean Whalen
763476cdd3 Update CHANGELOG.md 2022-04-22 17:06:35 -04:00
Sean Whalen
64b88991d1 8.0.0
- 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)
- Pin `elasticsearch-dsl` version at `>=2.2.0<7.14.0` (PR #297  closes issue #296)
- Properly initialize `ip_dp_path` (PR #294 closes issue #286)
- Remove usage of `lgging.basicConfig` (PR #285)
- Add support for the Gmail API (PR #284 and PR #307 close issue #96)

Special thanks to @nathanthorpe  and @roeften for their substantial contributions.
2022-04-22 16:59:47 -04:00
Sean Whalen
d2cc93f23f Merge pull request #307 from nathanthorpe/gmail_mailbox_integration
Refactor Gmail integration with MailboxConnection interface
2022-04-22 14:19:51 -04:00
Nathan Thorpe
e2ac067bf3 Gmail: remove deprecated call to run_console, create folder and move msg fixes 2022-04-21 17:42:45 -07:00
Nathan Thorpe
d03d2b5f44 pep8 and tests fix 2022-04-21 17:03:54 -07:00
Nathan Thorpe
cf682337e9 Merge branch 'master' into gmail_mailbox_integration
# Conflicts:
#	parsedmarc/cli.py
2022-04-21 16:48:14 -07:00