Trenton Holmes
bd18a57a5d
Updates imap_tools and updates to use the new login method for UTF-8
2022-09-01 08:54:44 -07:00
Stefan
fccea022fa
adapt test to respect gmail_label keyword
2022-08-20 13:15:38 -07:00
Stefan
260b709296
add test for gmail account tag handling
2022-08-20 13:15:38 -07:00
Stefan
9bb762fc8f
fix mail tests
2022-08-20 13:15:38 -07:00
Oliver Rümpelein
ac62bcb7ba
Clear cache instead of working around it.
2022-05-27 22:51:32 +02:00
Oliver Rümpelein
c90129957e
Make test work.
2022-05-26 12:42:20 +02:00
Oliver Rümpelein
104a684514
Revert all changes to tests, will need a more structured approach.
2022-05-25 20:47:43 +02:00
Oliver Rümpelein
5a809d7e31
Add first draft implementation, test broken.
2022-05-25 19:23:52 +02:00
Trenton Holmes
3003bdd507
Runs pyupgrade to Python 3.8+ and adds a hook for it
2022-05-06 09:04:08 -07:00
Quinn Casey
0f1e31643d
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
f5c05e1283
Fixes newly added mail tests to account for model change
2022-04-26 10:03:41 -07:00
Trenton Holmes
330e47f0b7
Adds some logging so we know which login method has failed
2022-04-26 09:41:36 -07:00
Trenton Holmes
1e9378b429
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
816f020cc3
Fixes tests with imap-tools 0.54.0 changes to the EmailAddress class
2022-04-26 08:11:25 -07:00
Trenton Holmes
eb8158673f
Fixes backend testing of mail on dev
2022-04-25 11:10:32 -07:00
Michael Shamoon
654ef06682
Merge branch 'main' into dev
2022-04-25 10:33:40 -07:00
Trenton Holmes
33134d4529
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
616a826b8a
fix Mail actions mixup
2022-04-19 00:59:57 +02:00
jonasc
37f7ef41f2
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
8f98cb4860
Merge pull request #550 from stumpylog/feature-mail-consume-improve-docs
...
Feature mail consume improve docs
2022-04-10 08:46:45 -07:00
Trenton Holmes
8f18b7fd6c
Fixes the matching of attachment files names to patterns
2022-04-08 13:42:42 -07:00
Trenton Holmes
f358eda5c5
Updates the mail db model to use the built-in enum capabilities and runs the migrations
2022-04-08 08:55:40 -07:00
Trenton Holmes
9544e6c757
Improves the mail handling testing to use more of the imap_tools library types instead of internal types
2022-03-15 16:25:51 -07:00
Trenton Holmes
4f287b5ecd
Fixes the EmailAddress which was a dict and is now a class
2022-03-15 14:00:01 -07:00
Trenton Holmes
1771d18a21
Runs the pre-commit hooks over all the Python files
2022-03-11 11:34:28 -08:00
Johannes Schöpp
0925c90047
Switched to flag()
...
Newer versions of imap_tools moved away from `seen()` in favour of
`flag()` and deprecated the former.
This fixes https://github.com/jonaswinkler/paperless-ng/issues/1672
I also remove the mocked `seen()` function and updated the `flag()` mock
2022-03-02 17:48:02 +01:00
kpj
fc695896dd
Format Python code with black
2022-02-27 15:26:41 +01:00
jonaswinkler
e1e11de2b5
mail tests
2021-01-18 22:23:53 +01:00
jonaswinkler
9dd8b7cd88
fix test case
2021-01-11 22:11:01 +01:00
jonaswinkler
e107d5df6f
fixes #153 , adds option for inline attachments and filename filters
2021-01-06 02:40:08 +01:00
jonaswinkler
e528a587cc
fixed some issues with the test cases.
2020-12-16 13:41:02 +01:00
jonaswinkler
ab871d67fc
more tests
2020-12-04 15:56:26 +01:00
jonaswinkler
371745b6dc
mail handling: When exceptions occur during account/rule/message handling, paperless will continue with the next account/rule/message.
...
mail handling: When paperless encounters a very long
fixes #82
2020-12-04 15:42:05 +01:00
jonaswinkler
1ce6466ef8
tests for mail tasks
2020-12-01 14:31:36 +01:00
Jonas Winkler
09acb134b7
updated mail: now uses mime type detection
2020-11-20 18:14:42 +01:00
Jonas Winkler
07e2ff0c2e
fixed a test case
2020-11-18 22:59:27 +01:00
Jonas Winkler
8908bc259e
updated logging, logging for the mail consumer to see whats happening
2020-11-18 13:23:30 +01:00
Jonas Winkler
de1643f0ea
the new mail features is now fully tested.
2020-11-17 22:24:47 +01:00
Jonas Winkler
b366d1b88f
adjustments due to refactor
2020-11-17 17:12:34 +01:00
Jonas Winkler
a7f742825f
more test
2020-11-17 17:00:26 +01:00
Jonas Winkler
7457beface
refactor and testing
2020-11-17 16:42:19 +01:00
Jonas Winkler
e1a3f8cd1b
fixed a couple things.
2020-11-17 01:08:52 +01:00
Jonas Winkler
63444b1ab3
add empty test case
2020-11-17 00:18:40 +01:00