73 Commits

Author SHA1 Message Date
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
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
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
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
73e829b721 Reduces the 2 mail tests flakiness 2023-08-07 15:32:33 -07:00
shamoon
9b0fca3f5d Return default 'ALL' mailbox criterias for some imap servers 2023-06-06 20:00:31 -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
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
acfa7d633d Creates a mix-in for asserting file system states 2023-02-20 10:25:21 -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
shamoon
3b1f5668f5 Merge pull request #1648 from paperless-ngx/feature-use-celery
Feature: Transition to celery for background tasks
2022-10-10 00:07:55 -07:00
Trenton H
6c269391d5 Fixes handling of gmail label extension to IMAP 2022-10-07 18:28:11 -07:00
Trenton Holmes
09287701ae Transitions the backend to celery and celery beat 2022-09-26 11:25:34 -07:00
Trenton Holmes
5eaae2201e Updates imap_tools and updates to use the new login method for UTF-8 2022-09-01 08:54:44 -07:00
Stefan
87cf215f3e adapt test to respect gmail_label keyword 2022-08-20 13:15:38 -07:00
Stefan
e19021dc11 add test for gmail account tag handling 2022-08-20 13:15:38 -07:00
Stefan
82751e5136 fix mail tests 2022-08-20 13:15:38 -07:00
Oliver Rümpelein
78fa05da9d Clear cache instead of working around it. 2022-05-27 22:51:32 +02:00
Oliver Rümpelein
acd525a9d9 Make test work. 2022-05-26 12:42:20 +02:00
Oliver Rümpelein
164cd19296 Revert all changes to tests, will need a more structured approach. 2022-05-25 20:47:43 +02:00
Oliver Rümpelein
cbb36e8941 Add first draft implementation, test broken. 2022-05-25 19:23:52 +02:00
Trenton Holmes
f62193099c Runs pyupgrade to Python 3.8+ and adds a hook for it 2022-05-06 09:04:08 -07:00
Quinn Casey
81582bb2e7 Merge pull request #725 from paperless-ngx/bugfix-imap-utf8-login
Fixes IMAP UTF8 Authenication
2022-04-29 10:31:38 -07:00
Trenton Holmes
a51edbf2ce Fixes newly added mail tests to account for model change 2022-04-26 10:03:41 -07:00
Trenton Holmes
47191e9690 Adds some logging so we know which login method has failed 2022-04-26 09:41:36 -07:00
Trenton Holmes
402cca2b5f Implements a fallback to AUTH=PLAIN in the event of a UnicodeEncodeError during a normal login 2022-04-26 09:41:36 -07:00
Trenton Holmes
ef3b6d9ec7 Fixes tests with imap-tools 0.54.0 changes to the EmailAddress class 2022-04-26 08:11:25 -07:00
Trenton Holmes
204cdaf175 Fixes backend testing of mail on dev 2022-04-25 11:10:32 -07:00
Michael Shamoon
421a604b92 Merge branch 'main' into dev 2022-04-25 10:33:40 -07:00
Trenton Holmes
5e95f1017b In the event of an error when setting the mail account folder, attempt to list the account's folders to the log 2022-04-19 08:32:34 -07:00
phail
753ef98eab fix Mail actions mixup 2022-04-19 00:59:57 +02:00
jonasc
cf0d3b0615 Save MailRule and MailAccount objects in tests
This fixes the errors in the tests that the new many-to-many
assign_tags property cannot be accessed due to MailRule not having an
id. In one case it it necessary to give additional names to both objects
as several are created.
2022-04-12 10:45:52 +02:00
shamoon
3505a08633 Merge pull request #550 from stumpylog/feature-mail-consume-improve-docs
Feature mail consume improve docs
2022-04-10 08:46:45 -07:00