125 Commits

Author SHA1 Message Date
Trenton H
e3bc680bf1 Chore: Drop Python 3.9 support (#7774) 2024-09-26 12:22:24 -07:00
shamoon
d36af64298 Chore: mark some more tests as flaky 2024-09-10 16:41:11 -07:00
shamoon
a55f97ffab Enhancement: re-work mail rule dialog, support multiple include patterns (#7635) 2024-09-05 15:32:03 -07:00
Daniel Bankmann
c236176a25 Enhancement: mail message preprocessor for gpg encrypted mails (#7456)
---------

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
2024-08-29 00:22:44 +00:00
Dennis Melzer
848bbfcd60 Enhancement: allow multiple filename attachment exclusion patterns for a mail rule (#5524)
---------

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
2024-08-27 09:31:46 -07:00
Trenton H
6f3bc54c41 Chore: Initial conversion to pytest fixtures (#7110) 2024-07-08 07:46:20 -07:00
shamoon
f52ba29baf Chore: add pre-commit hook for codespell (#5324) 2024-01-08 13:03:05 -08:00
Thomas Falkenberg
6c06128d56 Enhancement: fetch mails in bulk (#5249)
Co-authored-by: Trenton H <797416+stumpylog@users.noreply.github.com>
2024-01-05 10:43:22 -08:00
Trenton H
dda7fe3e36 Use the attachment filename so downstream template matching works against it (#4931) 2023-12-11 09:08:42 -08:00
Trenton H
f100cb8c83 Chore: Raise Gotenberg container version (#4815)
* Updates the Gotenberg version to use 7.10 and gotenberg-client to match
* Fixes a long standing bug in this test where a whole page was missing from the expected
2023-12-05 15:36:25 +00:00
Trenton H
7a98e3c1e7 Enhancement: Allow excluding mail attachments by name (#4691)
* Adds new filtering to exclude attachments from processing

* Frontend use include / exclude mail rule filename filters

---------

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
2023-12-02 08:26:19 -08:00
Trenton H
61d0459e3c Feature: Switches to a new client to handle communication with Gotenberg (#4391)
Switches to a new client to handle communication with Gotenberg for merging and generating PDFs
2023-10-20 00:27:29 +00:00
shamoon
54783f706f Feature: consumption templates (#4196)
* Initial implementation of consumption templates

* Frontend implementation of consumption templates

Testing

* Support consumption template source

* order templates, automatically add permissions

* Support title assignment in consumption templates

* Refactoring, filters to and, show sources on list

Show sources on template list, update some translation strings

Make filters and

minor testing

* Update strings

* Only update django-multiselectfield

* Basic docs, document some methods

* Improve testing coverage, template multi-assignment merges
2023-09-22 16:53:13 -07:00
Trenton Holmes
34b80a4d8e Removes support for Python 3.8 and lower from the code base 2023-09-10 11:42:59 -07:00
Trenton H
226cda9d77 Combine and extend the utility for calling the live services to be more robust against failures, reporting, etc 2023-09-08 19:20:08 -07:00
Trenton Holmes
d4bc608dc5 Fixes an erroneous raise that prevented the retry logic from going 2023-08-28 18:26:22 -07:00
Trenton H
73e829b721 Reduces the 2 mail tests flakiness 2023-08-07 15:32:33 -07:00
shamoon
de2c82787e Include permissions for mail rules & accounts 2023-07-26 07:28:25 -07:00
Trenton H
fe9874a96a Fixes generation of thumbnails when the archive file hasn't already been created 2023-06-26 10:36:50 -06:00
shamoon
9b0fca3f5d Return default 'ALL' mailbox criterias for some imap servers 2023-06-06 20:00:31 -07:00
Trenton H
1b3492a01f Rewrites the email parsing to be more clear and concise.
Adds testing to use httpx mocked responses to stand in as a server even offline
2023-06-06 09:05:26 -07:00
Trenton H
bad8d304cb Improves the logging mixin and allows it to be typed better 2023-05-23 17:16:39 -07:00
shamoon
beafebf4a6 Dont perform mail actions when rule filename filter not met
Update mail.py
2023-05-06 23:59:33 -07:00
Trenton H
fe0f034127 Don't ever send GMail related keywords if the server doesn't report support for the extensions 2023-04-29 09:34:50 -07:00
Trenton H
aabcc9a1c4 Upgrades black to v23, upgrades ruff 2023-04-26 09:35:27 -07:00
Trenton H
30655f1b73 Fixes ruff not running isort against the codebase 2023-04-26 09:35:27 -07:00
shamoon
ce81fb37f8 Handle delete mail action with no filters 2023-04-24 20:55:01 -07:00
Trenton H
d2c02b9102 Configures ruff as the one stop linter and resolves warnings it raised 2023-04-01 17:03:52 -07:00
Trenton H
36a6df0bae Creates a data model for the document consumption, allowing stronger typing of arguments and setting of some information about the file only once 2023-04-01 11:05:34 -07:00
shamoon
b350454633 Adds testing for test mail account 2023-03-24 15:14:02 -07:00
Trenton H
2043571def Allows users to use OAuth tokens instead of passwords 2023-03-23 08:52:12 -07:00
Trenton H
4607323b6a Allows filtering email by the TO value(s) as well 2023-03-12 10:31:42 -07:00
Trenton H
0644e8ae21 Ensure dates from emails are made timezone aware if not already 2023-03-07 10:01:40 -08:00
Jonas Winkler
ed6ec7fb38 cleanup test code 2023-02-24 12:49:54 +01:00
Jonas Winkler
135f2c9a56 fix the test cases 2023-02-24 00:03:28 +01:00
Jonas Winkler
e7279a7947 changes 2023-02-23 22:02:38 +01:00
Trenton Holmes
6644ccc33f Changes testing to use more declarative status code names from DRF 2023-02-20 10:25:21 -08:00
Trenton Holmes
acfa7d633d Creates a mix-in for asserting file system states 2023-02-20 10:25:21 -08:00
shamoon
c35ac07b32 Merge branch 'dev' 2023-02-16 20:07:50 -08:00
Trenton Holmes
7fbcc4f97e Fixes up some minor warnings from test code 2023-02-11 14:35:16 -08:00
Trenton H
14af7f3aa1 Updates to the expected PDF minus an extra whitespace 2023-02-05 20:17:22 -08:00
Trenton H
18e43e0d60 Configure ImageMagick on the runner to allow more tests to run by default 2023-01-31 14:37:56 -08:00
Trenton H
e17cce2b77 Fixes test parameters 2023-01-27 11:05:23 -08:00
Clemens Rieder
6f1c532ba4 Remove try/except + test
Changes in d064ff5 made try/except unnecessary and the subsequent test failed.
2023-01-16 13:49:54 -08:00
Clemens Rieder
659883cb6f add basic tests and fix error 2023-01-16 13:49:54 -08:00
Trenton H
6f23cfe78c Resolves minor flake8 warnings in the test suite 2023-01-05 08:39:48 -08:00
Trenton Holmes
46b637b08e Fixes args handling 2022-12-06 13:30:01 -08:00
Trenton Holmes
1257700ba7 Adds the same backoff/retry logic to the other live tests 2022-12-06 13:30:01 -08:00
shamoon
0c85bdb1b4 Merge pull request #2000 from paperless-ngx/feature-frontend-paperless-mail
Feature: frontend paperless mail
2022-12-04 16:47:58 -08:00
Michael Shamoon
2148c4482b Re-org where some of the new classes are found 2022-12-03 09:31:39 -08:00